diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-07-13 13:50:20 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-07-13 13:50:20 +0800 |
commit | 5ad92b1723fdf09bb663a24687cd884c5658fba6 (patch) | |
tree | 3f6f6eb5b8915917e0a1dac7c395aa8d55313c8d | |
parent | 2ffef2c837bd2febd4c4011b4ffd03cc3d86b609 (diff) | |
download | gsoc2013-evolution-5ad92b1723fdf09bb663a24687cd884c5658fba6.tar.gz gsoc2013-evolution-5ad92b1723fdf09bb663a24687cd884c5658fba6.tar.zst gsoc2013-evolution-5ad92b1723fdf09bb663a24687cd884c5658fba6.zip |
Don't fetch the entire RFC822 header, just fetch the fields we want.
2000-07-13 Jeffrey Stedfast <fejj@helixcode.com>
* 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
-rw-r--r-- | camel/ChangeLog | 8 | ||||
-rw-r--r-- | 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 <fejj@helixcode.com> + + * 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 <NotZed@HelixCode.com> * 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 <fejj@helixcode.com> 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); |