aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-09-08 04:39:11 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-09-08 04:39:11 +0800
commitc8b89a700bd419f235c3e93041ed4eb638c2a2e3 (patch)
tree698aba883c7bbb81504266395ff4786cdccb58a5 /mail
parent58eb7bf31c146cb0fcf3a08062d9920f92c04674 (diff)
downloadgsoc2013-evolution-c8b89a700bd419f235c3e93041ed4eb638c2a2e3.tar.gz
gsoc2013-evolution-c8b89a700bd419f235c3e93041ed4eb638c2a2e3.tar.zst
gsoc2013-evolution-c8b89a700bd419f235c3e93041ed4eb638c2a2e3.zip
Updated to pass an exception to filter_driver_run and also check the
2000-09-07 Jeffrey Stedfast <fejj@helixcode.com> * mail-ops.c (do_fetch_mail): Updated to pass an exception to filter_driver_run and also check the exception before deleting the message from the source folder. (do_filter_ondemand): Updated to pass an exception to filter_driver_run svn path=/trunk/; revision=5242
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/mail-ops.c12
2 files changed, 16 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 51f632dc78..2ff36d37e6 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2000-09-07 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * mail-ops.c (do_fetch_mail): Updated to pass an exception to
+ filter_driver_run and also check the exception before deleting the
+ message from the source folder.
+ (do_filter_ondemand): Updated to pass an exception to
+ filter_driver_run
+
2000-09-07 Dan Winship <danw@helixcode.com>
* session.c (session_init): Pass a storage dir to
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 1bec67ebbf..0042a21872 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -166,11 +166,12 @@ do_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex)
message = camel_folder_get_message (folder, uids->pdata[i], ex);
fprintf (stderr, "about to run the filter\n");
filter_driver_run (filter, message, input->destination,
- FILTER_SOURCE_INCOMING, TRUE,
- input->hook_func, input->hook_data);
+ FILTER_SOURCE_INCOMING,
+ input->hook_func, input->hook_data,
+ TRUE, ex);
mail_tool_camel_lock_down ();
- if (!input->keep_on_server) {
+ if (!input->keep_on_server && !camel_exception_is_set (ex)) {
guint32 flags;
flags = camel_folder_get_message_flags (folder, uids->pdata[i]);
@@ -180,6 +181,7 @@ do_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex)
}
camel_object_unref (CAMEL_OBJECT (message));
}
+ camel_folder_sync (folder, ex);
camel_folder_free_uids (folder, uids);
data->empty = FALSE;
@@ -324,7 +326,9 @@ do_filter_ondemand (gpointer in_data, gpointer op_data, CamelException *ex)
message = camel_folder_get_message (input->source, uids->pdata[i], ex);
filter_driver_run (input->driver, message, input->destination,
- FILTER_SOURCE_DEMAND, TRUE, NULL, NULL);
+ FILTER_SOURCE_DEMAND, NULL, NULL, TRUE, ex);
+
+ /* FIXME: should we delete the message from the source mailbox? */
camel_object_unref (CAMEL_OBJECT (message));
g_free (uids->pdata[i]);
269'>269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340