From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/3551 Path: news.gmane.org!not-for-mail From: Adrian Lanz Newsgroups: gmane.emacs.gnus.user Subject: Re: Spam setup help Date: Wed, 25 Feb 2004 11:45:33 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669626 19376 80.91.229.2 (31 Jan 2006 01:07:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:07:06 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:32:23 2006 Original-Path: quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: 193.134.205.252 Original-X-Trace: quimby.gnus.org 1077705937 325 193.134.205.252 (25 Feb 2004 10:45:37 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 25 Feb 2004 10:45:37 +0000 (UTC) User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (usg-unix-v) Cancel-Lock: sha1:hsApV4da6juUfV6t4DJVo/mm9QI= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:3692 Original-Lines: 105 X-Gnus-Article-Number: 3692 Tue Jan 17 17:32:23 2006 Xref: news.gmane.org gmane.emacs.gnus.user:3551 Archived-At: On 25 Feb 2004, bkhl@elektrubadur.se wrote: > I've been asking about this before, but never got a satisfying > answer. Now that I've updated to 5.10.6, I thought it would be a > good occasion to try again. > > Below is my gnus/bogofilter spam setup. > > This does nicely move all spam marked mails into nnfolder:spam and > processes them with bogofilter. > > What I miss is the ability to unmark spam in nnfolder:spam, and > then, when I exit the group, get them automatically processed as ham > with bogofilter, and resplitted. > > I was hoping that setting gnus-ham-process-destinations would help > with that, but apparently it's not enough. Seems the configuration has changed. Try ;; (setq spam-use-stat t) ;; if needed ;; initialize the system (spam-initialize) ;; prevent multiple registration of articles (gnus-registry-initialize) (setq spam-log-to-registry t) ;; declare processsor for splitting incoming mail (setq spam-use-bogofilter t) ;; where we split incoming spam to (setq spam-split-group "spam") ;; declare spam and ham groups PROBLEM/QUESTION [1] (setq spam-junk-mailgroups nil) (setq gnus-spam-newsgroup-contents '(("^nnfolder:spam" gnus-group-spam-classification-spam) ("^nnfolder:.*" gnus-group-spam-classification-ham))) ;; training spam detection tools (setq spam-process-ham-in-spam-groups t) (setq gnus-spam-process-newsgroups '( ("^nntp\\+news\\.gmane\\.org:" ((spam spam-use-gmane) (spam spam-use-bogofilter))) ("^nnfolder:.*" ((spam spam-use-bogofilter) (ham spam-use-bogofilter))))) ;; moving processed spam (setq spam-move-spam-nonspam-groups-only t) (setq spam-mark-only-unseen-as-spam t) (setq gnus-spam-process-destinations '( ("^nntp\\+news\\.gmane\\.org:" "nnfolder:spam") ("^nnfolder:.*" "nnfolder:spam"))) ;; moving processed ham (setq spam-mark-ham-unread-before-move-from-spam-group t) (setq gnus-ham-process-destinations '(("^nnfolder:spam" "nnfolder:reclassify"))) [1] Ted and others: What is the corret/working solution here. We do not have a "not matching regexp" syntax in Elisp. How to declare all groups in nnfolder as ham except the nnfolder:spam group? a) (setq spam-junk-mailgroups '("nnfolder:spam")) (setq gnus-spam-newsgroup-contents '(("^nnfolder:.*" gnus-group-spam-classification-ham))) But in the code it says, that variable spam-junk-mailgroups is depricated. b) (setq spam-junk-mailgroups nil) (setq gnus-spam-newsgroup-contents '(("^nnfolder:spam" gnus-group-spam-classification-spam) ("^nnfolder:.*" gnus-group-spam-classification-ham))) c) (setq spam-junk-mailgroups nil) (setq gnus-spam-newsgroup-contents '(("^nnfolder:.*" gnus-group-spam-classification-ham) ("^nnfolder:spam" gnus-group-spam-classification-spam))) Any difference between b) and c)? Do one of b) and c) do what we expect it to do, that is decalre all groups in nnfolder as ham except the group nnfolder:spam? Similar questions may arise for declarations in gnus-spam-process-newsgroups, gnus-ham-process-destinations and gnus-spam-process-destinations. A nice solution was if we could declare things like: (setq spam-junk-mailgroups nil) (setq gnus-spam-newsgroup-contents '(('(not "^nnfolder:spam") gnus-group-spam-classification-ham) ("^nnfolder:spam" gnus-group-spam-classification-spam))) Thanks, Adrian.