19

Open the directory in dired with C-x 4 d and type M-x turn-on-gnus-dired-mode. Then mark the required files with m (or whatever) and type C-c RET C-a. The files can now be attached to an already opened message buffer or assigned to a new one.


6

Use e: e runs the command mu4e-view-save-attachment Offer to save attachment(s). If MULTI (prefix-argument) is nil, save a single one, otherwise, offer to save a range of attachments. Alternatively, with point on an attachment name, you can use S-RET: S-return runs the command mu4e~view-save-attach-from-binding Save the attachement at ...


5

I know nothing about mail in Emacs, but running C-h k C-x m tells me that C-x m runs the command compose-mail, which is different from mail. This is presumably why they behave differently. You can find out more with C-h f compose-mail and C-h f mail.


3

I found the solution hidden in a closed issue on GitHub (thanks to @mankoff): (defun my-remove-attachment (msg num) "Remove attachment." (let* ((attach (mu4e~view-get-attach msg num)) (path (mu4e-msg-field msg :path)) (filename (and attach (plist-get attach :name))) (cmd (format "altermime --input='%s' --remove='%s'" path ...


2

Org-mode files are plain text, by design, and Org therefore has no native facilities for attaching binary files. (The org-attach family of commands copy the attachment into a subdirectory of the current directory, and are therefore unrelated to what you are asking.) Of course, there's nothing preventing you from encoding your binary file as plain text (...


1

In elisp: defines URL + destination domain settings run the <select file> emacs process exec the file upload using cadaver/lftp/netrc/... grab/build the destination file-link (may need to use the ownCloud Share API) paste URL at emacs under cursor Or alternatively start with a simple alias which, for a given file (or directory) uploads it and ...


1

[Capturing and summarizing the comments as an answer.] Although org-attach does not provide an automatic way to add the list of files in the attachment directory of a headline node to that node explicitly, it does provide some mechanisms which could be used to do so. There is no problem about getting the current list: (org-attach-file-list (org-attach-dir)) ...


1

Maybe you can try auto-answer. I don't use mu4e, so the following snippet is just a pseudo-code. (defun my/mu4e-save-all-attachments (fpath) (interactive "D") (let ((auto-answer '(("<prompt-regex>" fpath)) (<mu4e-save-attachement>))) Each prompt from mu4e will be answered by the first prompted fpath.


1

If you don't want to compile altermime yourself, you could install it from macports then follow @mankoff recipe.


1

My solution (at your link) involved manually installing altermime back when I used OS X. I don't think it was hard. Perhaps only make was required when I tried?


1

Ok, nevermind, it's o. Or gnus-mime-save-part


1

Just to summarize the exchange in the comments: org-attach-attach used to add an Attachments property up to, and including Org mode version 9.2.4. Since version 9.2.5 (more specifically, since commit ae9cd437) this is no longer the case. Here are the details of the relevant commit (but note that there is no mention of the specific change that is the subject ...


1

I wrote this to paste images into mu4e buffers on Linux. (defun my/clip-to-PNG () (interactive) (let ((image-file (concat default-directory "tmp/attach/" (format-time-string "tmp_%Y%m%d_%H%M%S.png")))) (shell-command-to-string (concat "xclip -o -selection clipboard -t image/png > " image-file)) image-file)) ...


1

Turns out C-c RET C p: mml-secure-encrypt-pgpmime is the right tool for that.


1

I briefly Googled, but did not find an example of a multiple file extract function that I thought I had once read somewhere. I only found a multiple attach example. Here is a simplified version of what I use in my own-setup -- I like to check for an existing file with the same name as I extract all files from a single message, and if there is none, then I ...


Only top voted, non community-wiki answers of a minimum length are eligible