From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17553 Path: news.gmane.org!not-for-mail From: Steven Arntson Newsgroups: gmane.emacs.gnus.user Subject: Re: newbie spam filtering with gnus Date: Sat, 04 Apr 2015 09:55:39 -0700 Message-ID: <87lhi7hlys.fsf@stevenarntson.com> References: <87ego44m0v.fsf@stevenarntson.com> <87oan8c6js.fsf@enricoschumann.net> <87pp7msc3b.fsf@stevenarntson.com> <878ueapdrx.fsf@enricoschumann.net> <87619eqjq5.fsf@stevenarntson.com> <87zj6ph6cr.fsf@enricoschumann.net> <87a8ypc7nv.fsf@stevenarntson.com> <87384g302u.fsf@enricoschumann.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1428166592 11371 80.91.229.3 (4 Apr 2015 16:56:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Apr 2015 16:56:32 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Apr 04 18:56:27 2015 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YeRMw-0003DG-3S for gegu-info-gnus-english@m.gmane.org; Sat, 04 Apr 2015 18:56:26 +0200 Original-Received: from localhost ([::1]:33803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeRMv-0005GF-LH for gegu-info-gnus-english@m.gmane.org; Sat, 04 Apr 2015 12:56:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeRMs-0005Fz-Oy for info-gnus-english@gnu.org; Sat, 04 Apr 2015 12:56:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YeRMl-0000VV-7d for info-gnus-english@gnu.org; Sat, 04 Apr 2015 12:56:22 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:53913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeRMl-0000VD-1j for info-gnus-english@gnu.org; Sat, 04 Apr 2015 12:56:15 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YeRMh-00034Y-N7 for info-gnus-english@gnu.org; Sat, 04 Apr 2015 18:56:12 +0200 Original-Received: from 104.244.220.59 ([104.244.220.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Apr 2015 18:56:11 +0200 Original-Received: from steven by 104.244.220.59 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Apr 2015 18:56:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 69 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 104.244.220.59 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:0QBVbQbmNeIRxtIcapDKaT2QiD0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17553 Archived-At: Enrico Schumann writes: > On Fri, 03 Apr 2015, Steven Arntson writes: > >> Enrico Schumann writes: >> >>> On Thu, 02 Apr 2015, Steven Arntson 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. I feel I'm on the road now, but is there a way to improve performance? Thank you again. steven arntson