From 99c51c5a8cc66694ca5f65f27ae8d1fc7b067c29 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 1 Aug 2002 03:24:22 +0000 Subject: Disable my fix to not cache headers as it means that each time we load the 2002-07-31 Jeffrey Stedfast * providers/imap/camel-imap-folder.c (parse_fetch_response): Disable my fix to not cache headers as it means that each time we load the message, we've got to re-fecth the headers. svn path=/trunk/; revision=17665 --- camel/providers/imap/camel-imap-folder.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'camel/providers') diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 917f8e1bb0..9a060a4736 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -124,7 +124,7 @@ static void imap_thaw (CamelFolder *folder); static CamelObjectClass *parent_class; -GData *parse_fetch_response (CamelImapFolder *imap_folder, char *msg_att); +static GData *parse_fetch_response (CamelImapFolder *imap_folder, char *msg_att); static void camel_imap_folder_class_init (CamelImapFolderClass *camel_imap_folder_class) @@ -2425,7 +2425,7 @@ camel_imap_folder_fetch_data (CamelImapFolder *imap_folder, const char *uid, return stream; } -GData * +static GData * parse_fetch_response (CamelImapFolder *imap_folder, char *response) { GData *data = NULL; @@ -2527,17 +2527,19 @@ parse_fetch_response (CamelImapFolder *imap_folder, char *response) if (uid && body) { CamelStream *stream; - if (!header) { + if (FALSE /*header*/) { + g_free (part_spec); + stream = camel_stream_mem_new_with_buffer (body, body_len); + } else { CAMEL_IMAP_FOLDER_LOCK (imap_folder, cache_lock); stream = camel_imap_message_cache_insert (imap_folder->cache, uid, part_spec, body, body_len, NULL); CAMEL_IMAP_FOLDER_UNLOCK (imap_folder, cache_lock); - } else { - stream = camel_stream_mem_new_with_buffer (body, body_len); } + g_datalist_set_data_full (&data, "BODY_PART_STREAM", stream, - (GDestroyNotify)camel_object_unref); + (GDestroyNotify) camel_object_unref); } return data; -- cgit