* crypto: update mu-cmd-extract for mu-msg-part api change

This commit is contained in:
djcb
2012-07-17 19:18:16 +03:00
parent bf2585b50e
commit b16823d500
2 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
.TH MU EXTRACT 1 "May 2012" "User Manuals" .TH MU EXTRACT 1 "July 2012" "User Manuals"
.SH NAME .SH NAME
@ -13,8 +13,8 @@ other tools.
.SH DESCRIPTION .SH DESCRIPTION
\fBmu extract\fR is the \fBmu\fR sub-command for extracting MIME-parts (e.g., \fBmu extract\fR is the \fBmu\fR sub-command for extracting MIME-parts (e.g.,
attachments) from mail messages. It works on message files, and does not attachments) from mail messages. The sub-command works on message files, and
require the message to be indexed in the database. does not require the message to be indexed in the database.
For attachments, the file name used when saving it, is the name of the For attachments, the file name used when saving it, is the name of the
attachment in the message. If there is no such name, or when saving attachment in the message. If there is no such name, or when saving

View File

@ -242,9 +242,9 @@ save_certain_parts (MuMsg *msg, gboolean attachments_only,
sd.targetdir = targetdir; sd.targetdir = targetdir;
sd.play = play; sd.play = play;
mu_msg_part_foreach (msg, FALSE, mu_msg_part_foreach (msg,
(MuMsgPartForeachFunc)save_part_if, (MuMsgPartForeachFunc)save_part_if,
&sd); &sd, MU_MSG_PART_OPTION_NONE);
if (sd.saved_num == 0) { if (sd.saved_num == 0) {
g_warning ("no %s extracted from this message", g_warning ("no %s extracted from this message",
@ -345,8 +345,9 @@ show_parts (const char* path, MuConfig *opts, GError **err)
g_print ("MIME-parts in this message:\n"); g_print ("MIME-parts in this message:\n");
mu_msg_part_foreach mu_msg_part_foreach
(msg, FALSE, (MuMsgPartForeachFunc)each_part_show, (msg, (MuMsgPartForeachFunc)each_part_show,
GUINT_TO_POINTER(!opts->nocolor)); GUINT_TO_POINTER(!opts->nocolor),
MU_MSG_PART_OPTION_NONE);
mu_msg_unref (msg); mu_msg_unref (msg);