diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-09-08 04:39:11 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-09-08 04:39:11 +0800 |
commit | c8b89a700bd419f235c3e93041ed4eb638c2a2e3 (patch) | |
tree | 698aba883c7bbb81504266395ff4786cdccb58a5 /mail | |
parent | 58eb7bf31c146cb0fcf3a08062d9920f92c04674 (diff) | |
download | gsoc2013-evolution-c8b89a700bd419f235c3e93041ed4eb638c2a2e3.tar gsoc2013-evolution-c8b89a700bd419f235c3e93041ed4eb638c2a2e3.tar.gz gsoc2013-evolution-c8b89a700bd419f235c3e93041ed4eb638c2a2e3.tar.bz2 gsoc2013-evolution-c8b89a700bd419f235c3e93041ed4eb638c2a2e3.tar.lz gsoc2013-evolution-c8b89a700bd419f235c3e93041ed4eb638c2a2e3.tar.xz 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/ChangeLog | 8 | ||||
-rw-r--r-- | mail/mail-ops.c | 12 |
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]); |