From 3d04ce4dc1317b22b7dab59dbf9232aa31408d3f Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Mon, 12 Jan 2004 19:57:00 +0000 Subject: use mail_session_get_sa_use_daemon 2004-01-12 Radek Doulik * em-junk-filter.c (em_junk_sa_check_junk): use mail_session_get_sa_use_daemon svn path=/trunk/; revision=24176 --- mail/ChangeLog | 3 +++ mail/em-junk-filter.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 9644d88135..18628947d1 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2004-01-12 Radek Doulik + * em-junk-filter.c (em_junk_sa_check_junk): use + mail_session_get_sa_use_daemon + * mail-session.c: added SA prefs (mail_session_get_sa_local_only): new helper method (mail_session_set_sa_local_only): ditto diff --git a/mail/em-junk-filter.c b/mail/em-junk-filter.c index d81b04feda..0491d58823 100644 --- a/mail/em-junk-filter.c +++ b/mail/em-junk-filter.c @@ -275,7 +275,7 @@ em_junk_sa_check_junk (CamelMimeMessage *msg) if (!em_junk_sa_is_available ()) return FALSE; - args [2] = em_junk_sa_use_spamc + args [2] = (em_junk_sa_use_spamc && mail_session_get_sa_use_daemon ()) ? (em_junk_sa_spamd_port == -1 ? g_strdup ("spamc -c") /* Exit with a non-zero exit code if the tested message was junk */ -- cgit