Q: how can I attach multiple files to an outbound email with a minimum amount of fuss?
I'm using mu4e
(which reuses message-mode
, if that helps) to work with email. I often need to send emails with multiple attachments. mu4e
uses mml-attach-file
to handle attachments.
So far so good. However: it's an unpleasant task to use multiple attachments. mml-attach-file
prompts for each file anew, which is time-consuming when the file is buried deep in a subtree.
It is almost always the case that, when I need to attach multiple files, they are all in the same directory. In this situation, how can I convince mml-attach-file
to detect an attachment in the existing message buffer and, if it finds one, use that attachment's directory as the default for the next file I attempt to attach?
NB: If one digs into the source code, mml-attach-file
relies on mml-minibuffer-read-file
, which in turn uses either mml-default-directory
or default-directory
.
PS: I'm aware of How to attach multiple files in message-mode
, but there's no answer there.
dired-mode
buffer from the the email message inrecursive-edit
, then marking the files indired-mode
and exitingrecursive-edit
while throwing the result ofdired-get-marked-files
, which is then used by amapcar
to attach each file in one fell swoop? (2) Or, do you like the idea of starting indired-mode
, marking your files, and then pressing an email generate button that creates the message and attaches all marked files usingdired-get-marked-files
and amapcar
to run down the list and attach all files in one fell swoop?