Q: how can I attach multiple files to an outbound email with a minimum amount of fuss?
mu4e (which reuses
message-mode, if that helps) to work with email. I often need to send emails with multiple attachments.
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
PS: I'm aware of How to attach multiple files in
message-mode, but there's no answer there.
dired-modebuffer from the the email message in
recursive-edit, then marking the files in
recursive-editwhile throwing the result of
dired-get-marked-files, which is then used by a
mapcarto attach each file in one fell swoop? (2) Or, do you like the idea of starting in
dired-mode, marking your files, and then pressing an email generate button that creates the message and attaches all marked files using
mapcarto run down the list and attach all files in one fell swoop?