From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17554 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 10:08:53 -0700 Message-ID: <87egnzhlcq.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> <87lhi7hlys.fsf@stevenarntson.com> 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 1428167362 23160 80.91.229.3 (4 Apr 2015 17:09:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Apr 2015 17:09:22 +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 19:09:14 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 1YeRZK-0003id-5R for gegu-info-gnus-english@m.gmane.org; Sat, 04 Apr 2015 19:09:14 +0200 Original-Received: from localhost ([::1]:33827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeRZJ-0000kv-F1 for gegu-info-gnus-english@m.gmane.org; Sat, 04 Apr 2015 13:09:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeRZH-0000kq-3W for info-gnus-english@gnu.org; Sat, 04 Apr 2015 13:09:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YeRZD-00043h-OU for info-gnus-english@gnu.org; Sat, 04 Apr 2015 13:09:11 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeRZD-00043C-H5 for info-gnus-english@gnu.org; Sat, 04 Apr 2015 13:09:07 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YeRZA-0003dM-KH for info-gnus-english@gnu.org; Sat, 04 Apr 2015 19:09:04 +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 19:09:04 +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 19:09:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 81 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:ZrIBQvXfS61n6fhCSQMxZUkkAmk= 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:17554 Archived-At: Steven Arntson writes: > 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. 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.