From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17549 Path: news.gmane.org!not-for-mail From: Steven Arntson Newsgroups: gmane.emacs.gnus.user Subject: Re: newbie spam filtering with gnus Date: Fri, 03 Apr 2015 12:51:16 -0700 Message-ID: <87a8ypc7nv.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> 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 1428090699 29982 80.91.229.3 (3 Apr 2015 19:51:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2015 19:51:39 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Apr 03 21:51:33 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 1Ye7cq-0002vc-1H for gegu-info-gnus-english@m.gmane.org; Fri, 03 Apr 2015 21:51:32 +0200 Original-Received: from localhost ([::1]:35173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye7cp-0003fL-FO for gegu-info-gnus-english@m.gmane.org; Fri, 03 Apr 2015 15:51:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye7cn-0003eJ-C8 for info-gnus-english@gnu.org; Fri, 03 Apr 2015 15:51:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ye7ck-0004nr-6D for info-gnus-english@gnu.org; Fri, 03 Apr 2015 15:51:29 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye7cj-0004nk-Vy for info-gnus-english@gnu.org; Fri, 03 Apr 2015 15:51:26 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ye7cg-0002ok-7j for info-gnus-english@gnu.org; Fri, 03 Apr 2015 21:51:22 +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 ; Fri, 03 Apr 2015 21:51:22 +0200 Original-Received: from steven by 104.244.220.59 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Apr 2015 21:51:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 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:ZYMi/0ZKxfvCimtzgE3hgYLAOXo= 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:17549 Archived-At: 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. I feel like I should be "teaching" the system by feeding it some spam? But am not sure how to send a spam to spamassassin. I know the spam.el package provides the `$' for marking things as spam, but the config we're working with here doesn't use spam.el.