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, the mu4e
message-view offers the command mu4e-view-save-attachments
; default
keybinding is e (think extract). After invoking the command, you
can enter the file names to save, comma-separated, and using the completion
support. Press RET to save the chosen files to your file-system.
With a prefix argument, you get to choose the target-directory, otherwise,
mu4e
determines it following the variable mu4e-attachment-dir
(which can
be file-system path or a function; see its docstring for details.
While completing, 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 the function
mu4e-view-mime-part-action
(default key-binding A). You can pass
the number of the MIME-pars (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 are asked for an action to apply to
them; see the variable mu4e-view-mime-part-actions
for the possibilities;
and you can add your own actions as well, see MIME-part actions for some
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