From 7bad37e711be4c31e8880f28f067f046ac40aa33 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 10 Aug 2001 18:16:47 +0000 Subject: Set the total bytes expected to 0 if the response is empty too. 2001-08-10 Jeffrey Stedfast * providers/pop3/camel-pop3-folder.c (pop3_get_message_stream): Set the total bytes expected to 0 if the response is empty too. (pop3_refresh_info): Return of there was an error generating pop3 uids. svn path=/trunk/; revision=11886 --- camel/ChangeLog | 2 ++ camel/providers/pop3/camel-pop3-folder.c | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index ce8fbb2673..662881695b 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -2,6 +2,8 @@ * providers/pop3/camel-pop3-folder.c (pop3_get_message_stream): Set the total bytes expected to 0 if the response is empty too. + (pop3_refresh_info): Return of there was an error generating pop3 + uids. * camel-mime-utils.c (header_raw_check_mailing_list): regfree the pattern before continue'ing. This was showing up quite a bit under diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c index 8258114585..bb6b0f9171 100644 --- a/camel/providers/pop3/camel-pop3-folder.c +++ b/camel/providers/pop3/camel-pop3-folder.c @@ -222,12 +222,13 @@ pop3_refresh_info (CamelFolder *folder, CamelException *ex) if (pop3_store->supports_uidl == FALSE) { uids = pop3_generate_uids (folder, count, ex); - camel_operation_end (NULL); + if (!uids || camel_exception_is_set (ex)) + return; } else { data = camel_pop3_command_get_additional_data (pop3_store, 0, ex); - camel_operation_end(NULL); - if (camel_exception_is_set (ex)) + camel_operation_end (NULL); + if (!data || camel_exception_is_set (ex)) return; uids = parse_listing (count, data); -- cgit