From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51006 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: spam-split with bogofilter Date: Sun, 23 Mar 2003 18:08:28 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: References: <4nznnp918e.fsf@lockgroove.bwh.harvard.edu> <4n3clgtv0e.fsf@lockgroove.bwh.harvard.edu> <4nel504fvd.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048462308 23727 80.91.224.249 (23 Mar 2003 23:31:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2003 23:31:48 +0000 (UTC) Cc: ding@gnus.org Original-X-From: owner-ding@hpc.uh.edu Mon Mar 24 00:31:43 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18xEvw-0006A9-00 for ; Mon, 24 Mar 2003 00:31:20 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18xEvH-0005Mo-00; Sun, 23 Mar 2003 17:30:39 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 23 Mar 2003 17:31:41 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id RAA22629 for ; Sun, 23 Mar 2003 17:31:26 -0600 (CST) Original-Received: (qmail 2430 invoked by alias); 23 Mar 2003 23:30:20 -0000 Original-Received: (qmail 2424 invoked from network); 23 Mar 2003 23:30:20 -0000 Original-Received: from ns3.beld.net (208.229.215.83) by 66.230.238.6 with SMTP; 23 Mar 2003 23:30:20 -0000 Original-Received: from heechee.beld.net (unknown [24.233.82.91]) by ns3.beld.net (Postfix) with ESMTP id 510693B9DC; Sun, 23 Mar 2003 18:30:17 -0500 (EST) Original-To: Karl Eichwalder X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: Karl Eichwalder , ding@gnus.org In-Reply-To: (Karl Eichwalder's message of "Sat, 22 Mar 2003 19:40:29 +0100") User-Agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.2 (gnu/linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:51006 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51006 On Sat, 22 Mar 2003, keichwa@gmx.net wrote: > Now these are my settings: > > (setq spam-use-bogofilter t) > (setq gnus-spam-process-newsgroups > '(("nnml:mail\\..*" > (gnus-group-spam-exit-processor-bogofilter > gnus-group-ham-exit-processor-bogofilter)) > ("nnml:spambox" > (gnus-group-spam-exit-processor-bogofilter > gnus-group-ham-exit-processor-bogofilter))) > gnus-spam-process-destinations '(("nnml:mail\\..*" > "nnml:spambox")) gnus-ham-process-destinations > '(("nnml:spambox" "nnml:mail.rest")) spam-junk-mailgroups > '("spambox") spam-split-group "spambox") > > (setq gnus-spam-newsgroup-contents > '(("nnml:spambox" gnus-group-spam-classification-spam) > ("nnml:mail\\.spambox" gnus-group-spam-classification-spam) > ("nnml:.*" gnus-group-spam-classification-ham))) > > Done. But unmarking a message in "spambox" und quitting this group > is not enough to register the message as ham and move it back to the > mail.rest group. Can you trace through spam-summary-prepare-exit? If you don't know Elisp, try putting (debug "got here") statements in the body to see if a certain point is reached; do C-x e of that function to load the new definition. You should be able to do that in a one window, and try to exit a summary buffer in another. Let me know if any of the above made sense :) > Currently this workaround does the trick for me. > > . Unmark message > . Widen the message (C-u g) > . Go to the article buffer (C-x o) and mark the message (C-x h) > . Call bogofilter on the message to register it as ham > (M-| bogofilter -n RET) > . C-x o > . Respool the message (B r) Yeah, except for respooling, this is exactly what the bogofilter exit processor is supposed to do. > (BTW, I don't use customize because it looks too confusing to me or > -- for simple variables it's overkill.) I don't mind it so much, and it ensures that simple and complex variables alike are correctly set up. But it's your choice, of course :) Ted