diff options
Diffstat (limited to 'camel/providers/pop3/camel-pop3-folder.c')
-rw-r--r-- | camel/providers/pop3/camel-pop3-folder.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c index bb6b0f9171..f9f53c7e57 100644 --- a/camel/providers/pop3/camel-pop3-folder.c +++ b/camel/providers/pop3/camel-pop3-folder.c @@ -144,10 +144,6 @@ camel_pop3_folder_new (CamelStore *parent, CamelException *ex) static GPtrArray * pop3_generate_uids (CamelFolder *folder, int count, CamelException *ex) { - /* FIXME: This is extremely inefficient but there's no way - around it. Because of that, perhaps we should have some way - of caching these messages so we don't have to download them - a second time for this session? */ GPtrArray *uids; int i; @@ -167,7 +163,8 @@ pop3_generate_uids (CamelFolder *folder, int count, CamelException *ex) camel_object_unref (CAMEL_OBJECT (stream)); uid = base64_encode_simple (digest, 16); - g_ptr_array_add (uids, uid); + if (uid && *uid) + g_ptr_array_add (uids, uid); } return uids; |