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 /camel/providers/imap | |
parent | 2ffef2c837bd2febd4c4011b4ffd03cc3d86b609 (diff) | |
download | gsoc2013-evolution-5ad92b1723fdf09bb663a24687cd884c5658fba6.tar gsoc2013-evolution-5ad92b1723fdf09bb663a24687cd884c5658fba6.tar.gz gsoc2013-evolution-5ad92b1723fdf09bb663a24687cd884c5658fba6.tar.bz2 gsoc2013-evolution-5ad92b1723fdf09bb663a24687cd884c5658fba6.tar.lz gsoc2013-evolution-5ad92b1723fdf09bb663a24687cd884c5658fba6.tar.xz 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
Diffstat (limited to 'camel/providers/imap')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 9 |
1 files changed, 6 insertions, 3 deletions
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); |