diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-06-08 08:12:52 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-06-08 08:12:52 +0800 |
commit | 47326377225c125b5fca37759faacfad1c75f20a (patch) | |
tree | 3171a0603c36399a29d6a527958e02d627ae11c5 /mail/mail-ops.c | |
parent | c754daa1d6d974c0a0b9c6b2496236e429812ab0 (diff) | |
download | gsoc2013-evolution-47326377225c125b5fca37759faacfad1c75f20a.tar.gz gsoc2013-evolution-47326377225c125b5fca37759faacfad1c75f20a.tar.zst gsoc2013-evolution-47326377225c125b5fca37759faacfad1c75f20a.zip |
Added an argument, so that the original source URI of the mbox can be
2001-06-07 Jon Trowbridge <trow@ximian.com>
* camel-filter-driver.c (camel_filter_driver_filter_mbox): Added
an argument, so that the original source URI of the mbox can be
passed in. This is needed because this function is called
post-movemail, so we are never reading from the original mbox
anymore. Without the original mbox URI, the X-Evolution-Source
tag gets set incorrectly and filter-on-source will fail to work.
(camel_filter_driver_filter_message): Also take an extra arg
for the original source URI. It is the original URI, not the
source URI, that is used for filtering and for setting the
X-Evolution-Source tag.
2001-06-07 Jon Trowbridge <trow@ximian.com>
* mail-ops.c (fetch_mail_fetch): Pass the original source URI
to camel_filter_driver_filter_mbox.
(mail_send_message): Pass NULL as the orginal source URI
to camel_filter_driver_filter_message.
svn path=/trunk/; revision=10152
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index ba12baa140..4812f8c110 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -296,7 +296,7 @@ fetch_mail_fetch(struct _mail_msg *mm) if (path && !camel_exception_is_set (&mm->ex)) { camel_folder_freeze(fm->destination); camel_filter_driver_set_default_folder(fm->driver, fm->destination); - camel_filter_driver_filter_mbox(fm->driver, path, &mm->ex); + camel_filter_driver_filter_mbox(fm->driver, path, m->source_uri, &mm->ex); camel_folder_thaw(fm->destination); if (!camel_exception_is_set (&mm->ex)) @@ -549,7 +549,7 @@ mail_send_message(CamelMimeMessage *message, const char *destination, CamelFilte if (driver) camel_filter_driver_filter_message (driver, message, info, - NULL, NULL, "", ex); + NULL, NULL, NULL, "", ex); if (sent_folder_uri) { folder = mail_tool_uri_to_folder (sent_folder_uri, NULL); |