aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-15 16:32:08 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-15 16:32:08 +0800
commit1043413b4066785b4ee0ba8c38a71c3567e89b8d (patch)
tree33dd9e68cbc55b4496e719c8665f022feaaa6844 /camel/camel-folder.c
parentf2a8b1d3388127f9040b17137273a27333361235 (diff)
downloadgsoc2013-evolution-1043413b4066785b4ee0ba8c38a71c3567e89b8d.tar
gsoc2013-evolution-1043413b4066785b4ee0ba8c38a71c3567e89b8d.tar.gz
gsoc2013-evolution-1043413b4066785b4ee0ba8c38a71c3567e89b8d.tar.bz2
gsoc2013-evolution-1043413b4066785b4ee0ba8c38a71c3567e89b8d.tar.lz
gsoc2013-evolution-1043413b4066785b4ee0ba8c38a71c3567e89b8d.tar.xz
gsoc2013-evolution-1043413b4066785b4ee0ba8c38a71c3567e89b8d.tar.zst
gsoc2013-evolution-1043413b4066785b4ee0ba8c38a71c3567e89b8d.zip
set the mime-type field on the content the same way as
2004-03-15 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-folder.c (get_content, get_message): set the mime-type field on the content the same way as construct_from_stream does. Bug #55472. * camel-mime-message.c (camel_mime_message_dump): utility function to dump message content to stdout. (camel_mime_message_init): default mime type to message/rfc822. * camel.c (camel_init): change camel verbose debug to be an int, a bitmask of debug options. svn path=/trunk/; revision=25064
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index bf9bd13763..5e971667c4 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -46,6 +46,8 @@
#define d(x)
#define w(x)
+extern int camel_verbose_debug;
+
static CamelObjectClass *parent_class = NULL;
/* Returns the class for a CamelFolder */
@@ -1015,6 +1017,12 @@ camel_folder_get_message (CamelFolder *folder, const gchar *uid, CamelException
CAMEL_FOLDER_UNLOCK(folder, lock);
+ /* FIXME: need a better verbose debug framework */
+ if (ret && (camel_verbose_debug & 2)) {
+ printf("CamelFolder:get_message('%s', '%s') =\n", folder->full_name, uid);
+ camel_mime_message_dump(ret, FALSE);
+ }
+
return ret;
}