info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie spam filtering with gnus


From: Steven Arntson
Subject: Re: newbie spam filtering with gnus
Date: Sat, 04 Apr 2015 10:08:53 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Steven Arntson <steven@stevenarntson.com> writes:

> Enrico Schumann <es@enricoschumann.net> writes:
>
>> On Fri, 03 Apr 2015, Steven Arntson <steven@stevenarntson.com> writes:
>>
>>> Enrico Schumann <es@enricoschumann.net> writes:
>>>
>>>> On Thu, 02 Apr 2015, Steven Arntson <steven@stevenarntson.com> writes:
>>>>
>>>> [...]
>>>>
>>>>> Spamc -V does give me a version number, so that seems to be working. I
>>>>> added the code you recommended, so the full splitting/spam-oriented
>>>>> lines of my .gnus are:
>>>>>
>>>>> | (setq nnmail-split-methods 'nnmail-split-fancy
>>>>> |       nnmail-split-fancy '(| (: kevin-spamassassin)
>>>>> |                              "mail.misc"))
>>>>> |  
>>>>> | (defun kevin-spamassassin ()
>>>>> |   (save-excursion
>>>>> |     (save-restriction
>>>>> |       (widen)
>>>>> |       (if (eq 1 (call-process-region (point-min) (point-max)
>>>>> |                                      "spamc" nil nil nil "-c"))
>>>>> |           "spam"))))
>>>>>
>>>>> I can receive mail still---all seems to be working, but no spams have
>>>>> yet been filtered. Are there steps I need to take directly with
>>>>> Spamassassin to get it working?
>>>>
>>>> spamc requires that spamd is running (see 'man spamassassin'). In a
>>>> terminal, try
>>>>
>>>>     echo something | spamc -r
>>>>
>>>> If SpamAssassin works, it should tell you that the message ('something')
>>>> is spam because it is missing headers etc.
>>>
>>> I entered `sudo spamd' on terminal, and that seemed to start spamd. I
>>> followed with the input you recommended:
>>>
>>>     echo something | spamc -r
>>>
>>> And the system told me it looked like spam---so it's all working!
>>>
>>> However, nothing's getting filtered yet.
>>
>> The function 'kevin-spamassassin' sends the message to spamc. There is
>> no need for teaching; it should work 'out of the box'. Well, ... :-)
>>
>> Random thoughts:
>>
>> 1. Just to be sure: you did evaluate the code above, for instance by
>>    reloading your .gnus.el or restarting Gnus?
>>
> I'm embarrassed, but this was indeed part of the issue. Having
> restarted, I received 3 spam mails. One was correctly filtered to "spam"
> (victory!) but the other two still went to "inbox."
>
> Checking the message headers, I see that the correctly filed spam
> message had an "X-Spam Level" of "****". The unidentified spams were
> logged as level "***". Yet, to my eye, they are all obvious spams.


Reading again through the page you originally referenced, I find this:

|  As some spam is likely to get through anyway, you might want to have a
|  nifty function to call when you happen to read spam. And here is the
|  nifty function:
|       
|  
| (defun my-gnus-raze-spam ()
|   "Submit SPAM to Vipul's Razor, then mark it as expirable."
|   (interactive)
|   (gnus-summary-save-in-pipe "razor-report -f -d" t)
|   (gnus-summary-mark-as-expirable 1))

Unfortunately, my elisp skills are too weak to understand what this
does.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]