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-maildir-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-maildir-summary.c')
-rw-r--r-- | camel/providers/local/camel-maildir-summary.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/camel/providers/local/camel-maildir-summary.c b/camel/providers/local/camel-maildir-summary.c index 39726566bc..6cc44a6772 100644 --- a/camel/providers/local/camel-maildir-summary.c +++ b/camel/providers/local/camel-maildir-summary.c @@ -661,15 +661,6 @@ maildir_summary_check(CamelLocalSummary *cls, CamelFolderChangeInfo *changes, Ca qsort(s->messages->pdata, s->messages->len, sizeof(CamelMessageInfo *), sort_receive_cmp); CAMEL_SUMMARY_UNLOCK(s, summary_lock); - /* FIXME: move this up a class? */ - - /* force a save of the index, just to make sure */ - /* note this could be expensive so possibly shouldn't be here - as such */ - if (cls->index) { - ibex_save(cls->index); - } - return 0; } @@ -691,10 +682,6 @@ maildir_summary_sync(CamelLocalSummary *cls, gboolean expunge, CamelFolderChange if (camel_local_summary_check(cls, changes, ex) == -1) return -1; - if (cls->index) { - ibex_save(cls->index); - } - count = camel_folder_summary_count((CamelFolderSummary *)cls); for (i=count-1;i>=0;i--) { info = camel_folder_summary_index((CamelFolderSummary *)cls, i); @@ -760,6 +747,7 @@ maildir_summary_sync(CamelLocalSummary *cls, gboolean expunge, CamelFolderChange } camel_folder_summary_info_free((CamelFolderSummary *)cls, info); } - return 0; + + return ((CamelLocalSummaryClass *)parent_class)->sync(cls, expunge, changes, ex); } |