From 8daf9d8d2c50fc6659efe3a711e7c2a8b770858d Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 1 Oct 2001 13:52:24 +0000 Subject: if STAT returns 0, don't bother sending UIDL. Speeds things up slightly * 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). svn path=/trunk/; revision=13257 --- camel/ChangeLog | 7 +++++++ camel/providers/pop3/camel-pop3-folder.c | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index fffedf63d9..4df568aec7 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2001-10-01 Dan Winship + + * 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 * camel-pgp-context.c (pgp_sign): Add --no-secmem-warning and 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) { -- cgit v1.2.3