aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index d18680dddd..e5cca11cff 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -204,6 +204,13 @@ pop3_refresh_info (CamelFolder *folder, CamelException *ex)
count = atoi (data);
g_free (data);
+ if (count == 0) {
+ camel_operation_end (NULL);
+ pop3_folder->uids = g_ptr_array_new ();
+ pop3_folder->flags = g_new0 (guint32, 0);
+ return;
+ }
+
if (pop3_store->supports_uidl != FALSE) {
status = camel_pop3_command (pop3_store, NULL, ex, "UIDL");
switch (status) {