From 906c46112c18cab409eeb06aaaf4616c24e026b5 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 13 Jul 2000 19:07:14 +0000 Subject: Oops. If the number of messages in the folder is 0, don't fetch summaries 2000-07-13 Jeffrey Stedfast * 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 --- camel/ChangeLog | 6 ++++++ camel/providers/imap/camel-imap-folder.c | 6 ++++++ 2 files changed, 12 insertions(+) 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 + + * 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 * 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 " -- cgit v1.2.3