aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/mh/camel-mh-summary.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/mh/camel-mh-summary.c')
-rw-r--r--camel/providers/mh/camel-mh-summary.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/camel/providers/mh/camel-mh-summary.c b/camel/providers/mh/camel-mh-summary.c
index dff025b258..5d304b4a42 100644
--- a/camel/providers/mh/camel-mh-summary.c
+++ b/camel/providers/mh/camel-mh-summary.c
@@ -235,6 +235,13 @@ int camel_mh_summary_check(CamelMhSummary * mhs, int forceindex)
g_hash_table_foreach(left, (GHFunc)remove_summary, mhs);
g_hash_table_destroy(left);
+ /* force a save of the index, just to make sure */
+ /* note this could be expensive so possibly shouldn't be here
+ as such */
+ if (mhs->index) {
+ ibex_save(mhs->index);
+ }
+
return 0;
}
@@ -248,6 +255,9 @@ int camel_mh_summary_sync(CamelMhSummary * mhs, int expunge, CamelException *ex
printf("summary_sync(expunge=%s)\n", expunge?"true":"false");
+ if (mhs->index) {
+ ibex_save(mhs->index);
+ }
if (!expunge)
return 0;