If mi is NULL, don't bother updating it. Should fix bug #17694.
authorJeffrey Stedfast <fejj@ximian.com>
Thu, 10 Jan 2002 23:15:45 +0000 (23:15 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Thu, 10 Jan 2002 23:15:45 +0000 (23:15 +0000)
2002-01-10  Jeffrey Stedfast  <fejj@ximian.com>

* providers/imap/camel-imap-folder.c (imap_update_summary): If mi
is NULL, don't bother updating it. Should fix bug #17694.

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

index 135b47f..96eab12 100644 (file)
@@ -1,5 +1,10 @@
 2002-01-10  Jeffrey Stedfast  <fejj@ximian.com>
 
+       * providers/imap/camel-imap-folder.c (imap_update_summary): If mi
+       is NULL, don't bother updating it. Should fix bug #17694.
+
+2002-01-10  Jeffrey Stedfast  <fejj@ximian.com>
+
        * camel.h: #include camel-mime-filter-tohtml.h
 
        * providers/imap/camel-imap-folder.c (imap_update_summary): Kludge
index d1b29a8..89082fd 100644 (file)
@@ -1850,7 +1850,12 @@ imap_update_summary (CamelFolder *folder, int exists,
                        g_datalist_clear (&data);
                        continue;
                }
+               
                mi = messages->pdata[seq - first];
+               if (mi == NULL) {
+                       g_datalist_clear (&data);
+                       continue;
+               }
                
                uid = g_datalist_get_data (&data, "UID");
                if (uid)