aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/providers/imap4/camel-imap4-store.c3
-rw-r--r--camel/providers/imap4/camel-imap4-summary.c2
3 files changed, 7 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index a8d7400850..3fa2d5bfbd 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2004-06-12 Jeffrey Stedfast <fejj@ximian.com>
+ * providers/imap4/camel-imap4-store.c (imap4_noop): Flush summary
+ updates for the currently selected folder.
+
* providers/imap4/camel-imap4-summary.c
(camel_imap4_summary_set_exists): Don't bother with
exists_changed. We don't need it afterall.
diff --git a/camel/providers/imap4/camel-imap4-store.c b/camel/providers/imap4/camel-imap4-store.c
index 333914123a..e9dcd66288 100644
--- a/camel/providers/imap4/camel-imap4-store.c
+++ b/camel/providers/imap4/camel-imap4-store.c
@@ -1315,5 +1315,8 @@ imap4_noop (CamelStore *store, CamelException *ex)
camel_imap4_command_unref (ic);
+ if (engine->folder && !camel_exception_is_set (ex))
+ camel_imap4_summary_flush_updates (((CamelFolder *) engine->folder)->summary, ex);
+
CAMEL_SERVICE_UNLOCK (store, connect_lock);
}
diff --git a/camel/providers/imap4/camel-imap4-summary.c b/camel/providers/imap4/camel-imap4-summary.c
index ef08974572..d43df2e3e7 100644
--- a/camel/providers/imap4/camel-imap4-summary.c
+++ b/camel/providers/imap4/camel-imap4-summary.c
@@ -1151,7 +1151,7 @@ camel_imap4_summary_flush_updates (CamelFolderSummary *summary, CamelException *
camel_imap4_command_unref (ic);
} else {
- first = scount;
+ first = scount + 1;
}
if (first != 0 && imap4_summary->exists > 0) {