From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17539 Path: news.gmane.org!not-for-mail From: Enrico Schumann Newsgroups: gmane.emacs.gnus.user Subject: Re: newbie spam filtering with gnus Date: Thu, 02 Apr 2015 20:48:34 +0200 Message-ID: <878ueapdrx.fsf@enricoschumann.net> References: <87ego44m0v.fsf@stevenarntson.com> <87oan8c6js.fsf@enricoschumann.net> <87pp7msc3b.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 1428000545 15333 80.91.229.3 (2 Apr 2015 18:49:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2015 18:49:05 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Steven Arntson Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Apr 02 20:48:55 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 1YdkAg-0004UW-IN for gegu-info-gnus-english@m.gmane.org; Thu, 02 Apr 2015 20:48:54 +0200 Original-Received: from localhost ([::1]:59835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdkAg-0005ui-1u for gegu-info-gnus-english@m.gmane.org; Thu, 02 Apr 2015 14:48:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdkAd-0005uQ-3i for info-gnus-english@gnu.org; Thu, 02 Apr 2015 14:48:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdkAZ-0005bo-G2 for info-gnus-english@gnu.org; Thu, 02 Apr 2015 14:48:51 -0400 Original-Received: from www231.your-server.de ([188.40.28.11]:34878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdkAZ-0005bZ-AK for info-gnus-english@gnu.org; Thu, 02 Apr 2015 14:48:47 -0400 Original-Received: from [88.198.220.131] (helo=sslproxy02.your-server.de) by www231.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1) (envelope-from ) id 1YdkAT-00038W-SW; Thu, 02 Apr 2015 20:48:41 +0200 Original-Received: from [188.61.221.110] (helo=radiance.enricoschumann.net) by sslproxy02.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1YdkAQ-0007IE-Hy; Thu, 02 Apr 2015 20:48:38 +0200 In-Reply-To: <87pp7msc3b.fsf@stevenarntson.com> (Steven Arntson's message of "Thu, 02 Apr 2015 09:56:40 -0700") X-Authenticated-Sender: es@enricoschumann.net X-Virus-Scanned: Clear (ClamAV 0.98.5/20279/Thu Apr 2 18:49:14 2015) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 188.40.28.11 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:17539 Archived-At: On Thu, 02 Apr 2015, Steven Arntson writes: > Enrico Schumann writes: > >> On Wed, 01 Apr 2015, Steven Arntson writes: >>> Is there any sort of simple "starter kit" for newcomers getting going on >>> filtering out spam? >>> >>> Thank you for any advice aimed at a not-very-technical person! >>> -steven >>> >> >> When I used POP some years ago, what worked out of the box for me was >> using SpamAssassin as an external programme (spamc) during splitting, as >> described in the manual: >> >> http://www.gnu.org/software/emacs/manual/html_node/gnus/SpamAssassin.html >> >> To quote from the relevant section: >> >> ,---- >> | [A] solution is to call the external tools during splitting. Example >> | fancy split method: >> | >> | (setq nnmail-split-fancy '(| (: kevin-spamassassin) >> | ...)) >> | >> | (defun kevin-spamassassin () >> | (save-excursion >> | (save-restriction >> | (widen) >> | (if (eq 1 (call-process-region (point-min) (point-max) >> | "spamc" nil nil nil "-c")) >> | "spam")))) >> `---- >> >> >> >> Kind regards, >> Enrico > > Thank you for this---I've read, or tried to, the page you've referenced, > though it's far over my head. I put the code above into my .gnus.el > file. However, I really am in the dark! For instance, is the `...' in > the second line of that code an ellipsis telling me to put my own items > in there, or is it active code that should be preserved? Do I really use > "kevin-spamassassin" or am I to change that to something that has to do > with my own system? At present, the code isn't doing anything as far as > I can tell. [Caveat: I cannot test what I describe below since I do not use this setup any more.] First, make sure that SpamAssassin is installed on your system. For instance, open a terminal and type 'spamc -V', and it should tell you the installed version. Then, in your .gnus.el, add something like this: (setq nnmail-split-methods 'nnmail-split-fancy nnmail-split-fancy '(| (: kevin-spamassassin) "catchall.inbox")) In which "catchall.inbox" is the group to which all non-spam mails go. Also add the function kevin-spamassassin, as given in the manual (and above). The "spam" in the last line of the function is the group to which spam emails go. Good luck. [And you may rename 'kevin-spamassassin' as you wish, as long as you also use that name with 'nnmail-split-fancy'.] -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net