diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-04 02:07:50 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-04 02:07:50 +0800 |
commit | 76280e456d8d9789e9a9d2186926fc5607bd8967 (patch) | |
tree | 36625829ef5c079b42ac753f11913e82f8d8be08 /mail/mail-vfolder.c | |
parent | 06411bdbbb3e6877c679007c269c84b05713f895 (diff) | |
download | gsoc2013-evolution-76280e456d8d9789e9a9d2186926fc5607bd8967.tar gsoc2013-evolution-76280e456d8d9789e9a9d2186926fc5607bd8967.tar.gz gsoc2013-evolution-76280e456d8d9789e9a9d2186926fc5607bd8967.tar.bz2 gsoc2013-evolution-76280e456d8d9789e9a9d2186926fc5607bd8967.tar.lz gsoc2013-evolution-76280e456d8d9789e9a9d2186926fc5607bd8967.tar.xz gsoc2013-evolution-76280e456d8d9789e9a9d2186926fc5607bd8967.tar.zst gsoc2013-evolution-76280e456d8d9789e9a9d2186926fc5607bd8967.zip |
Build vfolder rules with CamelFolders instead of folder URIs.
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r-- | mail/mail-vfolder.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c index 0f98528d16..6958e82f62 100644 --- a/mail/mail-vfolder.c +++ b/mail/mail-vfolder.c @@ -1448,15 +1448,16 @@ vfolder_gui_add_rule (EMVFolderRule *rule) void vfolder_gui_add_from_message (EMailSession *session, - CamelMimeMessage *msg, + CamelMimeMessage *message, gint flags, - const gchar *source) + CamelFolder *folder) { EMVFolderRule *rule; - g_return_if_fail (msg != NULL); + g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message)); - rule = (EMVFolderRule*)em_vfolder_rule_from_message (context, msg, flags, source); + rule = (EMVFolderRule*) em_vfolder_rule_from_message ( + context, message, flags, folder); vfolder_gui_add_rule (rule); } @@ -1464,13 +1465,14 @@ void vfolder_gui_add_from_address (EMailSession *session, CamelInternetAddress *addr, gint flags, - const gchar *source) + CamelFolder *folder) { EMVFolderRule *rule; g_return_if_fail (addr != NULL); - rule = (EMVFolderRule*)em_vfolder_rule_from_address (context, addr, flags, source); + rule = (EMVFolderRule*)em_vfolder_rule_from_address ( + context, addr, flags, folder); vfolder_gui_add_rule (rule); } |