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/providers/pop3/camel-pop3-folder.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'camel/providers') 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