aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-14 03:07:14 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-14 03:07:14 +0800
commit906c46112c18cab409eeb06aaaf4616c24e026b5 (patch)
tree97902b4207cf9ebe3aac4841293554ae9025bbab /camel/providers
parentc79e70871b041605c09e53dc2faa4fcc556fc34b (diff)
downloadgsoc2013-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/providers')
-rw-r--r--camel/providers/imap/camel-imap-folder.c6
1 files changed, 6 insertions, 0 deletions
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 "