diff options
author | 3 <NotZed@Ximian.com> | 2001-10-04 07:05:06 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-10-04 07:05:06 +0800 |
commit | a39364e258908a69c25dc890788203b2663263f6 (patch) | |
tree | 7b2eca4adb86d98f7db1fbd9ae93a4ec5629c104 /camel/providers/local/camel-mbox-summary.c | |
parent | e1b24ec26abf19d4c9bd40258b5157c5f4d7f691 (diff) | |
download | gsoc2013-evolution-a39364e258908a69c25dc890788203b2663263f6.tar gsoc2013-evolution-a39364e258908a69c25dc890788203b2663263f6.tar.gz gsoc2013-evolution-a39364e258908a69c25dc890788203b2663263f6.tar.bz2 gsoc2013-evolution-a39364e258908a69c25dc890788203b2663263f6.tar.lz gsoc2013-evolution-a39364e258908a69c25dc890788203b2663263f6.tar.xz gsoc2013-evolution-a39364e258908a69c25dc890788203b2663263f6.tar.zst gsoc2013-evolution-a39364e258908a69c25dc890788203b2663263f6.zip |
Dont explicitly save metadata, its saved in summary_sync.
2001-10-03 <NotZed@Ximian.com>
* providers/local/camel-local-folder.c (local_sync): Dont
explicitly save metadata, its saved in summary_sync.
* providers/local/camel-mh-summary.c: Call superclass.
(mh_summary_check): Dont save ibex.
* providers/local/camel-maildir-summary.c: Call superclass method.
(maildir_summary_check): Dont save ibex explictly.
* providers/local/camel-mbox-summary.c: Call super-class sync when
done, saves summary/ibex, etc.
(mbox_summary_check): Dont save ibex.
(mbox_summary_sync): Call summary_check rather than trying to
update from our known position.
* providers/local/camel-local-summary.c
(camel_local_summary_check): Dont save the summary or index here.
(local_summary_sync): Save the summary/index here.
svn path=/trunk/; revision=13397
Diffstat (limited to 'camel/providers/local/camel-mbox-summary.c')
-rw-r--r-- | camel/providers/local/camel-mbox-summary.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c index 3d6dfc5378..89cc831b4a 100644 --- a/camel/providers/local/camel-mbox-summary.c +++ b/camel/providers/local/camel-mbox-summary.c @@ -399,15 +399,12 @@ mbox_summary_check(CamelLocalSummary *cls, CamelFolderChangeInfo *changes, Camel /* FIXME: move upstream? */ if (ret != -1) { - mbs->folder_size = st.st_size; - s->time = st.st_mtime; -#if 0 - /* this failing is not a fatal event */ - if (camel_folder_summary_save(s) == -1) - g_warning("Could not save summary: %s", strerror(errno)); - if (cls->index) - ibex_save(cls->index); -#endif + 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); + } } return ret; @@ -836,7 +833,7 @@ mbox_summary_sync(CamelLocalSummary *cls, gboolean expunge, CamelFolderChangeInf int ret; /* first, sync ourselves up, just to make sure */ - if (summary_update(cls, mbs->folder_size, changeinfo, ex) == -1) + if (camel_local_summary_check(cls, changeinfo, ex) == -1) return -1; count = camel_folder_summary_count(s); @@ -882,7 +879,6 @@ mbox_summary_sync(CamelLocalSummary *cls, gboolean expunge, CamelFolderChangeInf camel_folder_summary_touch(s); s->time = st.st_mtime; mbs->folder_size = st.st_size; - camel_folder_summary_save(s); - return 0; + return ((CamelLocalSummaryClass *)camel_mbox_summary_parent)->sync(cls, expunge, changeinfo, ex); } |