aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-03-09 01:53:37 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-03-09 01:53:37 +0800
commit96dccdb6959e4277c6262710b27984b0a1ed45e4 (patch)
tree285b8245428a386b0baaf6cf0877aa6b4d11837a /mail/mail-ops.c
parentc8e7f54abd96a4e5e166f8d840cd2b71b19a7d20 (diff)
downloadgsoc2013-evolution-96dccdb6959e4277c6262710b27984b0a1ed45e4.tar
gsoc2013-evolution-96dccdb6959e4277c6262710b27984b0a1ed45e4.tar.gz
gsoc2013-evolution-96dccdb6959e4277c6262710b27984b0a1ed45e4.tar.bz2
gsoc2013-evolution-96dccdb6959e4277c6262710b27984b0a1ed45e4.tar.lz
gsoc2013-evolution-96dccdb6959e4277c6262710b27984b0a1ed45e4.tar.xz
gsoc2013-evolution-96dccdb6959e4277c6262710b27984b0a1ed45e4.tar.zst
gsoc2013-evolution-96dccdb6959e4277c6262710b27984b0a1ed45e4.zip
new method, filter folder with FILTER_SOURCE_JUNKTEST type filter
2004-03-08 Radek Doulik <rodo@ximian.com> * mail-ops.c (mail_filter_junk): new method, filter folder with FILTER_SOURCE_JUNKTEST type filter * em-folder-view.c: added Filter Junk command and junk icons to menus, added apply filters icon to popup menu (emfv_popup_filter_junk): new helper method, calls mail_filter_junk svn path=/trunk/; revision=24991
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 372d4c2280..d72423b3e9 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -207,13 +207,19 @@ mail_filter_folder (CamelFolder *source_folder, GPtrArray *uids,
e_thread_put (mail_thread_new, (EMsg *)m);
}
-/* convenience function for it */
+/* convenience functions for it */
void
mail_filter_on_demand (CamelFolder *folder, GPtrArray *uids)
{
mail_filter_folder (folder, uids, FILTER_SOURCE_DEMAND, FALSE, NULL);
}
+void
+mail_filter_junk (CamelFolder *folder, GPtrArray *uids)
+{
+ mail_filter_folder (folder, uids, FILTER_SOURCE_JUNKTEST, FALSE, NULL);
+}
+
/* ********************************************************************** */
/* Temporary workaround for various issues. Gone before 0.11 */