Default the have_mlist bit to TRUE so that upgraders from 2.0 won't have
authorJeffrey Stedfast <fejj@novell.com>
Thu, 27 Jan 2005 21:11:04 +0000 (21:11 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Thu, 27 Jan 2005 21:11:04 +0000 (21:11 +0000)
2005-01-27  Jeffrey Stedfast  <fejj@novell.com>

* providers/imap4/camel-imap4-summary.c
(camel_imap4_summary_init): Default the have_mlist bit to TRUE so
that upgraders from 2.0 won't have their summaries rescanned.
(camel_imap4_summary_flush_updates): Always update have_mlist to
reflect reality.

camel/ChangeLog
camel/providers/imap4/camel-imap4-summary.c

index 50e6b16..df9cd4b 100644 (file)
@@ -3,6 +3,8 @@
        * providers/imap4/camel-imap4-summary.c
        (camel_imap4_summary_init): Default the have_mlist bit to TRUE so
        that upgraders from 2.0 won't have their summaries rescanned.
+       (camel_imap4_summary_flush_updates): Always update have_mlist to
+       reflect reality.
 
 2005-01-27  Parthasarathi Susarla <sparthasarathi@novell.com>
        
index 622bac7..c23c46a 100644 (file)
@@ -1454,8 +1454,9 @@ camel_imap4_summary_flush_updates (CamelFolderSummary *summary, CamelException *
        if (imap4_folder->enable_mlist && !imap4_summary->have_mlist) {
                /* need to refetch all summary info to get info->mlist */
                imap4_summary_clear (summary, FALSE);
-       } else
-               imap4_summary->have_mlist = imap4_folder->enable_mlist;
+       }
+       
+       imap4_summary->have_mlist = imap4_folder->enable_mlist;
        
        engine = ((CamelIMAP4Store *) summary->folder->parent_store)->engine;
        scount = camel_folder_summary_count (summary);