diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-08-01 11:24:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-08-01 11:24:22 +0800 |
commit | 99c51c5a8cc66694ca5f65f27ae8d1fc7b067c29 (patch) | |
tree | 7ab43755436e093c3144e6d5a2c21a62ae152bc4 /camel/providers/imap | |
parent | 7f6f1b6844e4e317d348965289f2ee12a09d8e41 (diff) | |
download | gsoc2013-evolution-99c51c5a8cc66694ca5f65f27ae8d1fc7b067c29.tar gsoc2013-evolution-99c51c5a8cc66694ca5f65f27ae8d1fc7b067c29.tar.gz gsoc2013-evolution-99c51c5a8cc66694ca5f65f27ae8d1fc7b067c29.tar.bz2 gsoc2013-evolution-99c51c5a8cc66694ca5f65f27ae8d1fc7b067c29.tar.lz gsoc2013-evolution-99c51c5a8cc66694ca5f65f27ae8d1fc7b067c29.tar.xz gsoc2013-evolution-99c51c5a8cc66694ca5f65f27ae8d1fc7b067c29.tar.zst gsoc2013-evolution-99c51c5a8cc66694ca5f65f27ae8d1fc7b067c29.zip |
Disable my fix to not cache headers as it means that each time we load the
2002-07-31 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'camel/providers/imap')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 14 |
1 files changed, 8 insertions, 6 deletions
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; |