diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-07-14 03:07:14 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-07-14 03:07:14 +0800 |
commit | 906c46112c18cab409eeb06aaaf4616c24e026b5 (patch) | |
tree | 97902b4207cf9ebe3aac4841293554ae9025bbab /camel | |
parent | c79e70871b041605c09e53dc2faa4fcc556fc34b (diff) | |
download | gsoc2013-evolution-906c46112c18cab409eeb06aaaf4616c24e026b5.tar.gz gsoc2013-evolution-906c46112c18cab409eeb06aaaf4616c24e026b5.tar.zst gsoc2013-evolution-906c46112c18cab409eeb06aaaf4616c24e026b5.zip |
Oops. If the number of messages in the folder is 0, don't fetch summaries
2000-07-13 Jeffrey Stedfast <fejj@helixcode.com>
* providers/imap/camel-imap-folder.c (imap_get_summary): Oops.
If the number of messages in the folder is 0, don't fetch
summaries 1 thru 0, just return an empty summary.
svn path=/trunk/; revision=4150
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 819b9b8dd4..1d29919f08 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): Oops. + If the number of messages in the folder is 0, don't fetch + summaries 1 thru 0, just return an empty summary. + 2000-07-13 Dan Winship <danw@helixcode.com> * camel-service.h: define a set of CAMEL_SERVICE_URL_ALLOW_* flags diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index e19a172bb2..21b421232b 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -1031,6 +1031,12 @@ imap_get_summary (CamelFolder *folder, CamelException *ex) summary = g_ptr_array_new (); + if (num == 0) { + imap_folder->summary = summary; + + return summary; + } + status = camel_imap_command_extended (CAMEL_IMAP_STORE (folder->parent_store), folder, &result, "FETCH 1:%d (UID FLAGS BODY[HEADER.FIELDS " "(SUBJECT FROM TO CC DATE MESSAGE-ID " |