E-mail messages can be though as a series of “MIME-parts”, which are sections of the message. The most prominent is the ’body’, that is the main message your are reading. Many e-mail messages also contains attachments, which MIME-parts that contain files10.
To save such attachments as files on your file systems, mu4e
’s message-view
offers the command mu4e-view-save-attachments
; its default keybinding is
e (think extract).
After invoking the command, you can enter the file names to save, comma-separated, with completion support. Press RET to save the chosen files to your file-system.
mu4e
determines the target directory using the variable
mu4e-attachment-dir
(which can be either file-system path or a function; see
its docstring for details. However, you can manually set the target by calling
mu4e-view-save-attachments
with a prefix argument.
When completing the file names, mu4e-view-completion-minor-mode
is
active, which offers mu4e-view-complete-all
(bound to C-c C-a to
complete all files11.
Not all MIME-parts are message bodies or attachments, and it can be useful to
operate on those other parts as well. For that there is
mu4e-view-mime-part-action
(default key-binding A). You can pass
the number of the MIME-part (as seen in the message view) as a prefix argument;
otherwise you get to get to choose from a completion menu.
After choosing one or more MIME-parts, you can specify an action to apply to
them; see the variable mu4e-view-mime-part-actions
for the possibilities.
You can add your own actions as well, see MIME-part actions for an
example.
Attachments come in two flavors: operating on them; everything that specifies a filename is considered an attachment
Except when using ’Helm’; in that case, use the Helm-mechanism for selecting multiple