diff options
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/imap4/camel-imap4-store.c | 3 | ||||
-rw-r--r-- | camel/providers/imap4/camel-imap4-summary.c | 2 |
2 files changed, 4 insertions, 1 deletions
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) { |