aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-06-27 17:04:32 +0800
committerDan Vrátil <dvratil@redhat.com>2012-06-27 17:04:32 +0800
commitca9dfde2c30a211d8760064c541f368def4f1fe6 (patch)
tree6175a7e402579599dce3fdc150a85180ba1d8d7d
parent5f0c5122552e19a4989f5961151b52cd72daf047 (diff)
downloadgsoc2013-evolution-ca9dfde2c30a211d8760064c541f368def4f1fe6.tar
gsoc2013-evolution-ca9dfde2c30a211d8760064c541f368def4f1fe6.tar.gz
gsoc2013-evolution-ca9dfde2c30a211d8760064c541f368def4f1fe6.tar.bz2
gsoc2013-evolution-ca9dfde2c30a211d8760064c541f368def4f1fe6.tar.lz
gsoc2013-evolution-ca9dfde2c30a211d8760064c541f368def4f1fe6.tar.xz
gsoc2013-evolution-ca9dfde2c30a211d8760064c541f368def4f1fe6.tar.zst
gsoc2013-evolution-ca9dfde2c30a211d8760064c541f368def4f1fe6.zip
Add CamelDebug to e_mail_parser_parse_sync
-rw-r--r--em-format/e-mail-parser.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/em-format/e-mail-parser.c b/em-format/e-mail-parser.c
index 5af3d61b32..d173503c9e 100644
--- a/em-format/e-mail-parser.c
+++ b/em-format/e-mail-parser.c
@@ -308,6 +308,23 @@ e_mail_parser_parse_sync (EMailParser *parser,
parts_list->list = mail_parser_run (parser, message, cancellable);
+ if (camel_debug_start ("emformat:parser")) {
+ GSList *iter;
+
+ printf("%s finished with EMailPartList:\n",
+ G_OBJECT_TYPE_NAME (parser));
+
+ for (iter = parts_list->list; iter; iter = iter->next) {
+ EMailPart *part = iter->data;
+ if (!part) continue;
+ printf(" id: %s | cid: %s | mime_type: %s | is_hidden: %d | is_attachment: %d\n",
+ part->id, part->cid, part->mime_type,
+ part->is_hidden ? 1 : 0, part->is_attachment ? 1 : 0);
+ }
+
+ camel_debug_end ();
+ }
+
return parts_list;
}