aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-autofilter.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-08-09 15:20:37 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-08-09 15:20:37 +0800
commit443b5a82a99f5b3ea9e82d7c05508c0140ee87a1 (patch)
tree1b896f8c95557569e4cc93fddff1f66e942c7d5f /mail/mail-autofilter.h
parent2f6003c9ed5291b6feb4694bbf5f88084adeded6 (diff)
downloadgsoc2013-evolution-443b5a82a99f5b3ea9e82d7c05508c0140ee87a1.tar.gz
gsoc2013-evolution-443b5a82a99f5b3ea9e82d7c05508c0140ee87a1.tar.zst
gsoc2013-evolution-443b5a82a99f5b3ea9e82d7c05508c0140ee87a1.zip
Helper function to add with confirm.
2000-08-09 Not Zed <NotZed@HelixCode.com> * mail-autofilter.c (filter_gui_add_from_message): Helper function to add with confirm. * message-list.c (on_right_click): Added menu to install vfolders/filters from message. svn path=/trunk/; revision=4646
Diffstat (limited to 'mail/mail-autofilter.h')
-rw-r--r--mail/mail-autofilter.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/mail/mail-autofilter.h b/mail/mail-autofilter.h
new file mode 100644
index 0000000000..61df9273fd
--- /dev/null
+++ b/mail/mail-autofilter.h
@@ -0,0 +1,21 @@
+#ifndef _MAIL_AUTOFILTER_H
+#define _MAIL_AUTOFILTER_H
+
+#include "filter/filter-rule.h"
+#include "filter/filter-context.h"
+#include "filter/vfolder-context.h"
+#include "camel/camel-mime-message.h"
+
+enum {
+ AUTO_SUBJECT = 1,
+ AUTO_FROM = 2,
+ AUTO_TO = 4
+};
+
+FilterRule *vfolder_rule_from_message(VfolderContext *context, CamelMimeMessage *msg, int flags, const char *source);
+FilterRule *filter_rule_from_message(FilterContext *context, CamelMimeMessage *msg, int flags);
+
+/* easiest place to put this */
+void filter_gui_add_from_message(CamelMimeMessage *msg, int flags);
+
+#endif