* Re: spam assassin filtering
[not found] <874r7vclji.fsf@ibook.optushome.com.au>
@ 2003-01-27 15:19 ` Jay Belanger
[not found] ` <87ptqiodvb.fsf@unix.home>
1 sibling, 0 replies; 5+ messages in thread
From: Jay Belanger @ 2003-01-27 15:19 UTC (permalink / raw)
Alain Picard <apicard+die-spammer-die@optushome.com.au> writes:
> Hello all,
>
> Does anyone have a working setup of GNUS/spam assassin working?
> The setup described in the manual (Oort v.7) doesn't seem to
> work for me.
The method in the cvs manual is to use fancy splitting with
(setq nnmail-split-fancy '(| (: kevin-spamassassin)
...))
(defun kevin-spamassassin ()
(save-excursion
(let ((buf (or (get-buffer " *nnmail incoming*")
(get-buffer " *nnml move*"))))
(if (not buf)
(progn (message "Oops, cannot find message buffer") nil)
(set-buffer buf)
(if (eq 1 (call-process-region (point-min) (point-max)
"spamc" nil nil nil "-c"))
"spam")))))
This didn't work for me either. The output of spamc with the -c
switch is 1 if the article is spam, but the function above seems to
assume that the value of 'call-process-region' is the same as the
output of spamc. I don't think that's the case, particularly here.
If I'm right, this should probably be changed in the manual.
> Any example of a configuration known to work in real life
> would be helpful.
There are a couple of ways of doing it in the lisp files on
http://my.gnus.org/Lisp
I have it set up the following way (with help from the above function,
and the functions on my.gnus.org); it works for me.
==== from my .gnus =======
(setq nnmail-split-methods 'nnmail-split-fancy)
(defun jpb-spamassassin ()
(with-temp-buffer
(if (get-buffer " *nnmail incoming*")
(insert-buffer " *nnmail incoming*")
(insert-buffer gnus-original-article-buffer))
(call-process-region (point-min) (point-max)
"spamc" t t nil "-f")
(goto-char (point-min))
(when (re-search-forward "^X-Spam-Status: Yes" nil t)
"Spam")))
(setq nnmail-split-fancy
'(|
<... a bunch of splits ...>
(: jpb-spamassassin)
"Misc"))
==========================
Jay
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <87ptqiodvb.fsf@unix.home>]
* Re: spam assassin filtering
[not found] ` <87ptqiodvb.fsf@unix.home>
@ 2003-01-29 11:06 ` Alain Picard
2003-01-29 15:35 ` Michael Below
0 siblings, 1 reply; 5+ messages in thread
From: Alain Picard @ 2003-01-29 11:06 UTC (permalink / raw)
deskpot@despammed.com (Vasily Korytov) writes:
> Yep, it works here. It's very simple here: I have procmail as MDA and I
> call spamc (spamd is run at startup) from my ~/.procmailrc. Then I have
> ("junk.spam" "^X-Spam-Status: Yes") entry in my nnmail-split-methods.
I was hoping for a procmail-free solution, as this is on a laptop
system, and I prefer to get the mail "on demand", rather than
from a procmail daemon.
But thanks for the tip, I may have to use it nonetheless.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: spam assassin filtering
2003-01-29 11:06 ` Alain Picard
@ 2003-01-29 15:35 ` Michael Below
[not found] ` <87u1fr7lwn.fsf@jan.korger>
0 siblings, 1 reply; 5+ messages in thread
From: Michael Below @ 2003-01-29 15:35 UTC (permalink / raw)
Alain Picard <apicard+die-spammer-die@optushome.com.au> writes:
> deskpot@despammed.com (Vasily Korytov) writes:
>
>> Yep, it works here. It's very simple here: I have procmail as MDA
>> and I call spamc (spamd is run at startup) from my
>> ~/.procmailrc. Then I have ("junk.spam" "^X-Spam-Status: Yes")
>> entry in my nnmail-split-methods.
>
> I was hoping for a procmail-free solution, as this is on a laptop
> system, and I prefer to get the mail "on demand", rather than from a
> procmail daemon.
I didn't even know that procmail can be used as a daemon. Just start
fetchmail on each IP-up, and make fetchmail hand the mail over to
procmail (using procmail as a MDA). Then procmail pipes the mail
through spamassassin (you don't have to use spamd/spamc) and does some
sorting. No need for daemons.
Michael
--
_Agricultural activity_ is the management by an enterprise of the
biological transformation of biological assets for sale, into
agricultural produce, or into additional biological assets. IAS 41,5
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-01-29 21:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <874r7vclji.fsf@ibook.optushome.com.au>
2003-01-27 15:19 ` spam assassin filtering Jay Belanger
[not found] ` <87ptqiodvb.fsf@unix.home>
2003-01-29 11:06 ` Alain Picard
2003-01-29 15:35 ` Michael Below
[not found] ` <87u1fr7lwn.fsf@jan.korger>
2003-01-29 21:14 ` Vasily Korytov
2003-01-29 21:52 ` Tim Haynes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).