diff options
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r-- | mail/mail-vfolder.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c index cd613040b1..fab59ef991 100644 --- a/mail/mail-vfolder.c +++ b/mail/mail-vfolder.c @@ -19,6 +19,7 @@ #include "evolution-shell-component.h" #include "folder-browser.h" #include "mail-vfolder.h" +#include "mail-autofilter.h" #include "camel/camel.h" @@ -304,3 +305,13 @@ vfolder_gui_add_rule(VfolderRule *rule) gtk_signal_connect((GtkObject *)gd, "clicked", new_rule_clicked, NULL); gtk_widget_show((GtkWidget *)gd); } + +void +vfolder_gui_add_from_message(CamelMimeMessage *msg, int flags, const char *source) +{ + VfolderRule *rule; + + rule = (VfolderRule*)vfolder_rule_from_message(context, msg, flags, source); + vfolder_gui_add_rule(rule); +} + |