From f57a11828d09193be8fc327ae48b59e93242cc63 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 23 Oct 2010 12:04:14 +0300 Subject: [PATCH] * update documentation for extract --- man/mu-extract.1 | 25 ++++++++++++++++++------- src/mu-config.c | 2 +- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/man/mu-extract.1 b/man/mu-extract.1 index 5dd09a18..fa5b96c9 100644 --- a/man/mu-extract.1 +++ b/man/mu-extract.1 @@ -1,4 +1,4 @@ -.TH MU EXTRACT 1 "September 2010" "User Manuals" +.TH MU EXTRACT 1 "October 2010" "User Manuals" .SH NAME @@ -14,8 +14,9 @@ mu extract\- display and save message parts (attachments) attachments) from mail messages. It works on message files, and does not require the message to be indexed. -For attachments, the name specified in the message is used; when saving -mime-parts, a name is used, derived from the message-id of the message. Thus, +For attachments, the file name specified in the mail message is used (if +any). If there is no name, or when saving other mime-parts, a name is used +derived from the message-id of the message. .SH OPTIONS @@ -23,18 +24,28 @@ mime-parts, a name is used, derived from the message-id of the message. Thus, \fB\-a\fR, \fB\-\-save\-attachments\fR save all MIME-parts that look like attachments. -\fB\-\-save\-all-parts\fR +.TP +\fB\-\-save\-all\fR save all non-multipart MIME-parts. -\fB\-\-target\-dir\fR= -save the parts in the target directory rather than the current one. +.TP +\fB\-\-parts\fR= +only consider the following numbered parts +(comma-separated list).The numbers for the parts can be seen from running +\fBmu extract\fR without any options but only the message file. +.TP +\fB\-\-target\-dir\fR= +save the parts in the target directory rather than +the current working directory. + +.TP \fB\-\-overwrite\fR overwrite existing files with the same name. .SH BUGS - Please report bugs if you find them: + .BR http://code.google.com/p/mu0/issues/list .SH AUTHOR diff --git a/src/mu-config.c b/src/mu-config.c index b3def75b..55f42598 100644 --- a/src/mu-config.c +++ b/src/mu-config.c @@ -222,7 +222,7 @@ config_options_group_extract (MuConfigOptions *opts) "save all attachments", NULL}, {"save-all", 0, 0, G_OPTION_ARG_NONE, &opts->save_all, "save all parts (incl. non-attachments)", NULL}, - {"parts", 0, 0, G_OPTION_ARG_STRING, &opts->parts, + {"parts ", 0, 0, G_OPTION_ARG_STRING, &opts->parts, "save specific parts", NULL}, {"target-dir", 0, 0, G_OPTION_ARG_FILENAME, &opts->targetdir, "target directory for saving", NULL},