mu extract- display and save message parts (attachments)
mu extract [options] <file> [<parts-to-save>]
mu extact is the mu sub-command for extracting MIME-parts (e.g.,
attachments) from mail messages. It works on message files, and does not
require the message to be indexed.
For attachments, the file name used for saving is the name of the attachment
in the message. If there is no such name, or when saving other mime-parts, a
name derived from the message-id of the message.
Without any options, mu extract simply outputs the list of MIME-parts in
save all MIME-parts that look like attachments.
save all non-multipart MIME-parts.
only consider the following numbered parts
(comma-separated list).The numbers for the parts can be seen from running
mu extract without any options but only the message file.
save the parts in the target directory rather than
the current working directory.
overwrite existing files with the same name; by default overwriting is not
--play Try to 'play' (open) the attachment with the default
application for the particular file type. Depends on the xdg-open