diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-06-27 17:04:32 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-06-27 17:04:32 +0800 |
commit | ca9dfde2c30a211d8760064c541f368def4f1fe6 (patch) | |
tree | 6175a7e402579599dce3fdc150a85180ba1d8d7d /em-format | |
parent | 5f0c5122552e19a4989f5961151b52cd72daf047 (diff) | |
download | gsoc2013-evolution-ca9dfde2c30a211d8760064c541f368def4f1fe6.tar.gz gsoc2013-evolution-ca9dfde2c30a211d8760064c541f368def4f1fe6.tar.zst gsoc2013-evolution-ca9dfde2c30a211d8760064c541f368def4f1fe6.zip |
Add CamelDebug to e_mail_parser_parse_sync
Diffstat (limited to 'em-format')
-rw-r--r-- | em-format/e-mail-parser.c | 17 |
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; } |