From aa85963848a6244c2c92a7bef0ddcbd9faf7f536 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Mon, 26 Jan 2004 16:00:48 +0000 Subject: translate DEMAND to INCOMING to get the right rules 2004-01-26 Radek Doulik * mail-session.c (main_get_filter_driver): translate DEMAND to INCOMING to get the right rules * mail-ops.c (mail_filter_on_demand): use FILTER_SOURCE_DEMAND Fixes #53266 svn path=/trunk/; revision=24436 --- mail/mail-session.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mail/mail-session.c') diff --git a/mail/mail-session.c b/mail/mail-session.c index c51a1f7aaf..f9e22a739f 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -646,6 +646,9 @@ main_get_filter_driver (CamelSession *session, const char *type, CamelException fsearch = g_string_new (""); faction = g_string_new (""); + if (!strcmp (type, FILTER_SOURCE_DEMAND)) + type = FILTER_SOURCE_INCOMING; + /* add the user-defined rules next */ while ((rule = rule_context_next_rule (fc, rule, type))) { g_string_truncate (fsearch, 0); -- cgit v1.2.3