diff options
author | Dan Winship <danw@src.gnome.org> | 2000-06-14 13:10:54 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-06-14 13:10:54 +0800 |
commit | 9f197c605b64fb2ac740df9445897c5d3bb62447 (patch) | |
tree | 723d16a197aac2683b666bb54fb4d6ddbc28da5a /camel/providers/mbox/camel-mbox-folder.c | |
parent | a18691c17e9d49d75775d32a4d25dab9147b2ead (diff) | |
download | gsoc2013-evolution-9f197c605b64fb2ac740df9445897c5d3bb62447.tar gsoc2013-evolution-9f197c605b64fb2ac740df9445897c5d3bb62447.tar.gz gsoc2013-evolution-9f197c605b64fb2ac740df9445897c5d3bb62447.tar.bz2 gsoc2013-evolution-9f197c605b64fb2ac740df9445897c5d3bb62447.tar.lz gsoc2013-evolution-9f197c605b64fb2ac740df9445897c5d3bb62447.tar.xz gsoc2013-evolution-9f197c605b64fb2ac740df9445897c5d3bb62447.tar.zst gsoc2013-evolution-9f197c605b64fb2ac740df9445897c5d3bb62447.zip |
Renamed from camel_mbox_summary_expunge. Takes a gboolean saying whether
* providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync):
Renamed from camel_mbox_summary_expunge. Takes a gboolean saying
whether to expunge or just sync the mbox file. Change some
g_errors to g_warning so we don't abort. Make the quick
X-Evolution updating code lseek around correctly. Update the
mbox mtime in the summary file even in the quick case.
* providers/mbox/camel-mbox-summary.h: make
CAMEL_MESSAGE_FOLDER_NOXEV not conflict with
CAMEL_MESSAGE_FOLDER_FLAGGED defined in camel-mime-message.h
* providers/mbox/camel-mbox-folder.c (mbox_close): call
camel_mbox_summary_sync to save flag state if not expunging.
(mbox_expunge): Update for camel_mbox_summary_expunge rename.
svn path=/trunk/; revision=3558
Diffstat (limited to 'camel/providers/mbox/camel-mbox-folder.c')
-rw-r--r-- | camel/providers/mbox/camel-mbox-folder.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index 305935fcdd..07accc5a35 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -243,9 +243,10 @@ mbox_close (CamelFolder *folder, gboolean expunge, CamelException *ex) /* call parent implementation */ parent_class->close (folder, expunge, ex); - if (expunge) { + if (expunge) mbox_expunge(folder, ex); - } + else + camel_mbox_summary_sync(mbox_folder->summary, FALSE); /* save index */ if (mbox_folder->index) { @@ -268,7 +269,7 @@ mbox_expunge (CamelFolder *folder, CamelException *ex) { CamelMboxFolder *mbox = (CamelMboxFolder *)folder; - if (camel_mbox_summary_expunge(mbox->summary) == -1) { + if (camel_mbox_summary_sync(mbox->summary, TRUE) == -1) { camel_exception_setv (ex, CAMEL_EXCEPTION_FOLDER_INVALID, /* FIXME: right error code */ "Could not expunge: %s", strerror(errno)); } |