* crypto: update other mu-msg-part users for api changes

This commit is contained in:
djcb
2012-07-17 19:17:09 +03:00
parent c7cf0c6655
commit 9e59b1f29b
4 changed files with 10 additions and 7 deletions

View File

@ -356,9 +356,9 @@ SCM_DEFINE (get_parts, "mu:c:get-parts", 1, 1, 0,
attinfo.attachments_only = ATTS_ONLY == SCM_BOOL_T ? TRUE : FALSE; attinfo.attachments_only = ATTS_ONLY == SCM_BOOL_T ? TRUE : FALSE;
msgwrap = (MuMsgWrapper*) SCM_CDR(MSG); msgwrap = (MuMsgWrapper*) SCM_CDR(MSG);
mu_msg_part_foreach (msgwrap->_msg, FALSE, mu_msg_part_foreach (msgwrap->_msg,
(MuMsgPartForeachFunc)each_part, (MuMsgPartForeachFunc)each_part,
&attinfo); &attinfo, MU_MSG_PART_OPTION_NONE);
/* explicitly close the file backend, so we won't run of fds */ /* explicitly close the file backend, so we won't run of fds */
mu_msg_unload_msg_file (msgwrap->_msg); mu_msg_unload_msg_file (msgwrap->_msg);

View File

@ -287,8 +287,8 @@ append_sexp_parts (GString *gstr, MuMsg *msg, gboolean want_images)
pinfo.parts = NULL; pinfo.parts = NULL;
pinfo.want_images = want_images; pinfo.want_images = want_images;
mu_msg_part_foreach (msg, FALSE, mu_msg_part_foreach (msg, (MuMsgPartForeachFunc)each_part,
(MuMsgPartForeachFunc)each_part, &pinfo); &pinfo, MU_MSG_PART_OPTION_CHECK_SIGNATURES);
if (pinfo.parts) { if (pinfo.parts) {
g_string_append_printf (gstr, "\t:parts (%s)\n", pinfo.parts); g_string_append_printf (gstr, "\t:parts (%s)\n", pinfo.parts);

View File

@ -471,8 +471,9 @@ add_terms_values_attach (Xapian::Document& doc, MuMsg *msg,
MuMsgFieldId mfid, GStringChunk *strchunk) MuMsgFieldId mfid, GStringChunk *strchunk)
{ {
PartData pdata (doc, mfid, strchunk); PartData pdata (doc, mfid, strchunk);
mu_msg_part_foreach (msg, TRUE, mu_msg_part_foreach (msg,
(MuMsgPartForeachFunc)each_part, &pdata); (MuMsgPartForeachFunc)each_part, &pdata,
MU_MSG_PART_OPTION_RECURSE_RFC822);
} }

View File

@ -1,3 +1,4 @@
/* /*
** Copyright (C) 2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> ** Copyright (C) 2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
** **
@ -286,7 +287,8 @@ mu_msg_attach_view_set_message (MuMsgAttachView *self, MuMsg *msg)
cbdata.store = store; cbdata.store = store;
cbdata.count = 0; cbdata.count = 0;
mu_msg_part_foreach (msg, FALSE, (MuMsgPartForeachFunc)each_part, &cbdata); mu_msg_part_foreach (msg, (MuMsgPartForeachFunc)each_part, &cbdata,
MU_MSG_PART_OPTION_NONE);
return cbdata.count; return cbdata.count;
} }