From 3ced16bfa226cdc03aa6e38552a78976d05ff171 Mon Sep 17 00:00:00 2001 From: 7 Date: Wed, 17 Oct 2001 20:38:15 +0000 Subject: Patch from Danw, Use unread count of -1 to mark unflagged messages. Make 2001-10-17 * providers/imap/camel-imap-store.c (get_folder_info_online): (parse_list_response_as_folder_info): Patch from Danw, Use unread count of -1 to mark unflagged messages. Make sure any folder we dont lookup explicitly is marked as -1. Should fix #9947 and friends. * providers/local/camel-mbox-summary.c (mbox_summary_sync): Only touch the summary if the timestamp or size changed. svn path=/trunk/; revision=13731 --- camel/providers/local/camel-mbox-summary.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'camel/providers/local/camel-mbox-summary.c') 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); } -- cgit v1.2.3