aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-autofilter.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-16 15:14:15 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-16 15:14:15 +0800
commit7ab4ccfe7670d38a00fa2a9c06dcc7a60a4c2726 (patch)
tree54f571c328e4070bdcd96799d048a88596e6b9c8 /mail/mail-autofilter.c
parent21d0e891e218511c00b8f71769eaee998f61edfd (diff)
downloadgsoc2013-evolution-7ab4ccfe7670d38a00fa2a9c06dcc7a60a4c2726.tar.gz
gsoc2013-evolution-7ab4ccfe7670d38a00fa2a9c06dcc7a60a4c2726.tar.zst
gsoc2013-evolution-7ab4ccfe7670d38a00fa2a9c06dcc7a60a4c2726.zip
change this to check the store using the provider url_cmp and just lookup
2004-01-16 Not Zed <NotZed@Ximian.com> * mail-folder-cache.c (storeinfo_find_folder_info): change this to check the store using the provider url_cmp and just lookup the folder name directly. folder_compare can't be used for uri's, this stuff was so broken, my fault :( ** See bug #52467. * em-folder-tree-model.c (sort_cb): handle null path (root?). * mail-vfolder.c (mail_vfolder_add_uri): map uri to euri before processing. (rule_changed): map uri to camel uri before looking up. (mail_vfolder_delete_uri): handle as euri internally. (mail_vfolder_rename_uri): " * mail-autofilter.c (vfolder_rule_from_message): map camel uri to euri before setting as vfolder source. svn path=/trunk/; revision=24266
Diffstat (limited to 'mail/mail-autofilter.c')
-rw-r--r--mail/mail-autofilter.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/mail-autofilter.c b/mail/mail-autofilter.c
index 79ab30f5dd..5d8de5fcad 100644
--- a/mail/mail-autofilter.c
+++ b/mail/mail-autofilter.c
@@ -326,11 +326,13 @@ FilterRule *
vfolder_rule_from_message (VfolderContext *context, CamelMimeMessage *msg, int flags, const char *source)
{
VfolderRule *rule;
-
+ char *euri = em_uri_from_camel(source);
+
rule = vfolder_rule_new ();
- vfolder_rule_add_source (rule, source);
+ vfolder_rule_add_source (rule, euri);
rule_from_message ((FilterRule *)rule, (RuleContext *)context, msg, flags);
-
+ g_free(euri);
+
return (FilterRule *)rule;
}