Section: User Manuals (EXTRACT)Updated: 1Local indexUp
NAME
mu extract- display and save message parts (attachments)
SYNOPSIS
mu extract [options] <file> [<parts-to-save>]
DESCRIPTION
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
the message.
OPTIONS
-a, --save-attachments
save all MIME-parts that look like attachments.
--save-all
save all non-multipart MIME-parts.
--parts=<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.
--target-dir=<dir>
save the parts in the target directory rather than
the current working directory.
--overwrite
overwrite existing files with the same name; by default overwriting is not
allowed.
--play Try to 'play' (open) the attachment with the default
application for the particular file type. Depends on the xdg-open
utility.