fix a bug. (don't expunge deleted messages if called with expunge ==
authorDan Winship <danw@src.gnome.org>
Thu, 15 Jun 2000 22:18:48 +0000 (22:18 +0000)
committerDan Winship <danw@src.gnome.org>
Thu, 15 Jun 2000 22:18:48 +0000 (22:18 +0000)
* providers/mbox/camel-mbox-summary.c: fix a bug. (don't expunge
deleted messages if called with expunge == FALSE)

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

index e6d3fa4..fbe956b 100644 (file)
@@ -1,5 +1,8 @@
 2000-06-15  Dan Winship  <danw@helixcode.com>
 
+       * providers/mbox/camel-mbox-summary.c: fix a bug. (don't expunge
+       deleted messages if called with expunge == FALSE)
+       
        * providers/pop3/camel-pop3-store.c (connect_to_server): Check
        server for various interesting extensions.
 
index 03f2f2f..17af8b3 100644 (file)
@@ -608,7 +608,7 @@ camel_mbox_summary_sync(CamelMboxSummary *mbs, gboolean expunge)
 
                d(printf("Looking at message %s\n", info->info.uid));
 
-               if (info->info.flags & CAMEL_MESSAGE_DELETED) {
+               if (expunge && info->info.flags & CAMEL_MESSAGE_DELETED) {
                        d(printf("Deleting %s\n", info->info.uid));
 
                        g_assert(!quick);