diff options
Diffstat (limited to 'camel/providers/local/camel-mbox-summary.c')
-rw-r--r-- | camel/providers/local/camel-mbox-summary.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c index 89cc831b4a..008b5d6026 100644 --- a/camel/providers/local/camel-mbox-summary.c +++ b/camel/providers/local/camel-mbox-summary.c @@ -399,8 +399,7 @@ mbox_summary_check(CamelLocalSummary *cls, CamelFolderChangeInfo *changes, Camel /* FIXME: move upstream? */ if (ret != -1) { - if (mbs->folder_size != st.st_size - || s->time != st.st_mtime) { + if (mbs->folder_size != st.st_size || s->time != st.st_mtime) { mbs->folder_size = st.st_size; s->time = st.st_mtime; camel_folder_summary_touch(s); @@ -876,9 +875,11 @@ mbox_summary_sync(CamelLocalSummary *cls, gboolean expunge, CamelFolderChangeInf return -1; } - camel_folder_summary_touch(s); - s->time = st.st_mtime; - mbs->folder_size = st.st_size; + if (mbs->folder_size != st.st_size || s->time != st.st_mtime) { + s->time = st.st_mtime; + mbs->folder_size = st.st_size; + camel_folder_summary_touch(s); + } return ((CamelLocalSummaryClass *)camel_mbox_summary_parent)->sync(cls, expunge, changeinfo, ex); } |