if STAT returns 0, don't bother sending UIDL. Speeds things up slightly
authorDan Winship <danw@src.gnome.org>
Mon, 1 Oct 2001 13:52:24 +0000 (13:52 +0000)
committerDan Winship <danw@src.gnome.org>
Mon, 1 Oct 2001 13:52:24 +0000 (13:52 +0000)
* providers/pop3/camel-pop3-folder.c (pop3_refresh_info): if STAT
returns 0, don't bother sending UIDL. Speeds things up slightly
and also works around a bug in a particular random POP server.
(ximian bug 11369).

camel/ChangeLog
camel/providers/pop3/camel-pop3-folder.c

index fffedf6..4df568a 100644 (file)
@@ -1,3 +1,10 @@
+2001-10-01  Dan Winship  <danw@ximian.com>
+
+       * providers/pop3/camel-pop3-folder.c (pop3_refresh_info): if STAT
+       returns 0, don't bother sending UIDL. Speeds things up slightly
+       and also works around a bug in a particular random POP server.
+       (ximian bug 11369).
+
 2001-09-29  Jeffrey Stedfast  <fejj@ximian.com>
 
        * camel-pgp-context.c (pgp_sign): Add --no-secmem-warning and
index d18680d..e5cca11 100644 (file)
@@ -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) {