From 9f197c605b64fb2ac740df9445897c5d3bb62447 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 14 Jun 2000 05:10:54 +0000 Subject: 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 --- camel/providers/mbox/camel-mbox-summary.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'camel/providers/mbox/camel-mbox-summary.h') diff --git a/camel/providers/mbox/camel-mbox-summary.h b/camel/providers/mbox/camel-mbox-summary.h index 6d98fd051d..ad7af33e91 100644 --- a/camel/providers/mbox/camel-mbox-summary.h +++ b/camel/providers/mbox/camel-mbox-summary.h @@ -35,8 +35,7 @@ typedef struct _CamelMboxSummaryClass CamelMboxSummaryClass; /* extra summary flags */ enum { - CAMEL_MESSAGE_FOLDER_NOXEV = 1<<16, -/* CAMEL_MESSAGE_FOLDER_FLAGGED = 1<<17,*/ + CAMEL_MESSAGE_FOLDER_NOXEV = 1<<17, }; typedef struct _CamelMboxMessageContentInfo { @@ -72,7 +71,7 @@ CamelMboxSummary *camel_mbox_summary_new (const char *filename, const char int camel_mbox_summary_load(CamelMboxSummary *mbs, int forceindex); /* incremental update */ int camel_mbox_summary_update(CamelMboxSummary *mbs, off_t offset); -/* perform a folder expunge */ -int camel_mbox_summary_expunge(CamelMboxSummary *mbs); +/* perform a folder sync or expunge, if needed */ +int camel_mbox_summary_sync (CamelMboxSummary *mbs, gboolean expunge); #endif /* ! _CAMEL_MBOX_SUMMARY_H */ -- cgit v1.2.3