From 5ad92b1723fdf09bb663a24687cd884c5658fba6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 13 Jul 2000 05:50:20 +0000 Subject: Don't fetch the entire RFC822 header, just fetch the fields we want. 2000-07-13 Jeffrey Stedfast * providers/imap/camel-imap-folder.c (imap_get_summary): Don't fetch the entire RFC822 header, just fetch the fields we want. (imap_get_message_info): Same. svn path=/trunk/; revision=4140 --- camel/ChangeLog | 8 +++++++- camel/providers/imap/camel-imap-folder.c | 9 ++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 6f01dbbd19..61d9eb8261 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-07-13 Jeffrey Stedfast + + * providers/imap/camel-imap-folder.c (imap_get_summary): Don't + fetch the entire RFC822 header, just fetch the fields we want. + (imap_get_message_info): Same. + 2000-07-13 Not Zed * camel-mime-filter-basic.c (camel_mime_filter_basic_new_type): @@ -8,7 +14,7 @@ * camel-mime-utils.c (quoted_encode_step): Actually count the characters output sofar (it never counted any). Bunch of other fixes. - (quoted_encode_close): Also flush out final character, if ther's + (quoted_encode_close): Also flush out final character, if there's one. 2000-07-12 Jeffrey Stedfast diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index da426ed6f3..1964b91799 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -1015,7 +1015,9 @@ imap_get_summary (CamelFolder *folder, CamelException *ex) for (i = 1; i <= num; i++) { status = camel_imap_command_extended (CAMEL_IMAP_STORE (folder->parent_store), folder, - &result, "FETCH %d BODY.PEEK[HEADER]", i); + &result, "FETCH %d BODY[HEADER.FIELDS " + "(SUBJECT FROM TO CC DATE MESSAGE-ID " + "REFERENCES IN-REPLY-TO)]", i); if (status != CAMEL_IMAP_OK) { CamelService *service = CAMEL_SERVICE (folder->parent_store); @@ -1263,9 +1265,10 @@ imap_get_message_info (CamelFolder *folder, const char *uid) } /* we don't have a cached copy, so fetch it */ - status = camel_imap_command_extended (CAMEL_IMAP_STORE (folder->parent_store), folder, - &result, "UID FETCH %s BODY.PEEK[HEADER]", uid); + &result, "UID FETCH %s BODY[HEADER.FIELDS " + "(SUBJECT FROM TO CC DATE MESSAGE-ID " + "REFERENCES IN-REPLY-TO)]", uid); if (status != CAMEL_IMAP_OK) { g_free (result); -- cgit v1.2.3