aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-11-16 10:40:58 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-11-16 10:40:58 +0800
commitbf235820398b643b110e433313392fc9bad35775 (patch)
tree14f7bc7d541b460b95b9c4d8a211ecc432223478
parent408e3a3bbb1c376ed7c184ec72ce8c39aeddc9bc (diff)
downloadgsoc2013-evolution-bf235820398b643b110e433313392fc9bad35775.tar.gz
gsoc2013-evolution-bf235820398b643b110e433313392fc9bad35775.tar.zst
gsoc2013-evolution-bf235820398b643b110e433313392fc9bad35775.zip
Sync here instead. (filter_driver_filter_mbox): And here too.
2000-11-15 Jeffrey Stedfast <fejj@helixcode.com> * filter-driver.c (filter_driver_filter_folder): Sync here instead. (filter_driver_filter_mbox): And here too. (filter_driver_finalise): Don't sync here afterall - it's more preferable to sync right after processing. svn path=/trunk/; revision=6588
-rw-r--r--filter/ChangeLog10
-rw-r--r--filter/filter-driver.c15
2 files changed, 21 insertions, 4 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 8ddc892746..832da213e6 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,7 +1,17 @@
2000-11-15 Jeffrey Stedfast <fejj@helixcode.com>
+ * filter-driver.c (filter_driver_filter_folder): Sync here
+ instead.
+ (filter_driver_filter_mbox): And here too.
+ (filter_driver_finalise): Don't sync here afterall - it's more
+ preferable to sync right after processing.
+
+2000-11-15 Jeffrey Stedfast <fejj@helixcode.com>
+
* filter-driver.c (filter_driver_finalise): Sync the
defaultfolder.
+ (filter_driver_filter_folder): Sync here instead.
+ (filter_driver_filter_mbox): And here too.
2000-11-13 Jeffrey Stedfast <fejj@helixcode.com>
diff --git a/filter/filter-driver.c b/filter/filter-driver.c
index 9385e6f098..fca858d187 100644
--- a/filter/filter-driver.c
+++ b/filter/filter-driver.c
@@ -206,11 +206,9 @@ filter_driver_finalise (GtkObject *obj)
g_hash_table_destroy (p->globals);
gtk_object_unref (GTK_OBJECT (p->eval));
-
- if (p->defaultfolder) {
- camel_folder_sync (p->defaultfolder, FALSE, NULL);
+
+ if (p->defaultfolder)
camel_object_unref (CAMEL_OBJECT (p->defaultfolder));
- }
g_free (p);
@@ -602,6 +600,7 @@ filter_driver_log (FilterDriver *driver, enum filter_log_t status, const char *d
void
filter_driver_filter_mbox (FilterDriver *driver, const char *mbox, const char *source, CamelException *ex)
{
+ struct _FilterDriverPrivate *p = _PRIVATE (driver);
CamelMimeParser *mp = NULL;
char *source_url = NULL;
int fd = -1;
@@ -656,6 +655,10 @@ filter_driver_filter_mbox (FilterDriver *driver, const char *mbox, const char *s
/* skip over the FROM_END state */
camel_mime_parser_step (mp, 0, 0);
}
+
+ if (p->defaultfolder)
+ camel_folder_sync (p->defaultfolder, FALSE, ex);
+
fail:
g_free (source_url);
if (fd != -1)
@@ -669,6 +672,7 @@ void
filter_driver_filter_folder (FilterDriver *driver, CamelFolder *folder, const char *source,
GPtrArray *uids, gboolean remove, CamelException *ex)
{
+ struct _FilterDriverPrivate *p = _PRIVATE (driver);
int i;
int freeuids = FALSE;
CamelMimeMessage *message;
@@ -714,6 +718,9 @@ filter_driver_filter_folder (FilterDriver *driver, CamelFolder *folder, const ch
if (freeuids)
camel_folder_free_uids (folder, uids);
+ if (p->defaultfolder)
+ camel_folder_sync (p->defaultfolder, FALSE, ex);
+
g_free (source_url);
}