Added more kludge to an existing Exchange IMAP 5.5 kludge to work around
authorJeffrey Stedfast <fejj@ximian.com>
Tue, 29 Jan 2002 23:13:36 +0000 (23:13 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Tue, 29 Jan 2002 23:13:36 +0000 (23:13 +0000)
2002-01-29  Jeffrey Stedfast  <fejj@ximian.com>

* providers/imap/camel-imap-folder.c (imap_update_summary): Added
more kludge to an existing Exchange IMAP 5.5 kludge to work around
it returning multiple messages with the same UIDs.

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

index baa50d4..29be96a 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-29  Jeffrey Stedfast  <fejj@ximian.com>
+
+       * providers/imap/camel-imap-folder.c (imap_update_summary): Added
+       more kludge to an existing Exchange IMAP 5.5 kludge to work around
+       it returning multiple messages with the same UIDs.
+
 2002-01-28  Jeffrey Stedfast  <fejj@ximian.com>
 
        * camel-mime-message.c (process_header): Handle Resent headers
index e3888ec..5db154a 100644 (file)
@@ -1931,7 +1931,11 @@ imap_update_summary (CamelFolder *folder, int exists,
                                        break;
                        }
                        
-                       g_assert (pmi);
+                       if (pmi == NULL) {
+                               /* Server response is *really* fucked up,
+                                  I guess we just pretend it never happened? */
+                               continue;
+                       }
                        
                        mi = camel_message_info_new ();
                        camel_message_info_dup_to (pmi, mi);