aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-vfolder.c
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2001-02-23 08:31:23 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-23 08:31:23 +0800
commit5c9c2f33b943c9996eac380d5534b80ce5402360 (patch)
tree37ef566693cd72537b0109d35df2974df9901033 /mail/mail-vfolder.c
parente761e875b2e79d5ec37c2e6d0ea09d8ed284389c (diff)
downloadgsoc2013-evolution-5c9c2f33b943c9996eac380d5534b80ce5402360.tar.gz
gsoc2013-evolution-5c9c2f33b943c9996eac380d5534b80ce5402360.tar.zst
gsoc2013-evolution-5c9c2f33b943c9996eac380d5534b80ce5402360.zip
vfolder/filter on mailing list. Doesn't acutally work right yet.
* mail-vfolder.c (vfolder_gui_add_from_mlist): Rule to add mlist vfolder. * mail-autofilter.c (filter_gui_add_for_mailing_list): Removed. (rule_from_mlist): Build a generic match rule from an mlist. (vfolder_rule_from_mlist): Setup the vfolder rule for an mlist. (filter_rule_from_mlist): Setup a filter rule fro an mlist. (filter_gui_add_from_mlist): GUI thingy to do the work. * folder-browser.c (on_right_click): Added vfolder on mailing list to filter menu. (on_right_click): Use header_raw_check_mailign_list instead of mlist magic to get the mailing list name. (filter_mlist): Changed to use new add_from_mlist() call. (vfolder_mlist): New function for vfolder from mlist. svn path=/trunk/; revision=8358
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r--mail/mail-vfolder.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index 6426979f36..cb5be64207 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -344,6 +344,17 @@ vfolder_gui_add_from_message(CamelMimeMessage *msg, int flags, const char *sourc
vfolder_gui_add_rule(rule);
}
+void
+vfolder_gui_add_from_mlist(CamelMimeMessage *msg, const char *mlist, const char *source)
+{
+ VfolderRule *rule;
+
+ g_return_if_fail (msg != NULL);
+
+ rule = (VfolderRule*)vfolder_rule_from_mlist(context, mlist, source);
+ vfolder_gui_add_rule(rule);
+}
+
EvolutionStorage *
mail_vfolder_get_vfolder_storage (void)
{