From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54600 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: can gnus-unread-mark be a ham mark? Date: Fri, 31 Oct 2003 11:47:04 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4nr80t8id3.fsf@lockgroove.bwh.harvard.edu> References: <764qxr3356.fsf@newjersey.ppllc.com> <4n4qxqwxjm.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067618892 23352 80.91.224.253 (31 Oct 2003 16:48:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2003 16:48:12 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M3141@lists.math.uh.edu Fri Oct 31 17:48:10 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AFcRV-0000Bc-00 for ; Fri, 31 Oct 2003 17:48:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AFcRM-0007AE-00; Fri, 31 Oct 2003 10:48:00 -0600 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AFcRH-0007A9-00 for ding@lists.math.uh.edu; Fri, 31 Oct 2003 10:47:55 -0600 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id B077C3A004C for ; Fri, 31 Oct 2003 10:47:54 -0600 (CST) Original-Received: from lockgroove.bwh.harvard.edu (lockgroove [134.174.9.133]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h9VGlR712645; Fri, 31 Oct 2003 11:47:27 -0500 (EST) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h9VGl4k12567; Fri, 31 Oct 2003 11:47:04 -0500 (EST) Original-To: Bill White 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: Bill White , ding@gnus.org In-Reply-To: (Bill White's message of "Fri, 31 Oct 2003 08:00:57 -0600") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54600 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54600 On Fri, 31 Oct 2003, billw@wolfram.com wrote: > When I find ham in my spam group, I have a long-standing habit of > unmarking it with M-u (gnus-summary-clear-mark-forward), then moving > it somewhere useful to be acted on. According to gnus-sum.el, it > looks as though M-u marks the message with gnus-unread-mark. > I suspect spam.el could move the message for me when I exit the > group if only it recognized gnus-unread-mark as one of the ham > marks. However, since spam.el doesn't currently notice > gnus-unread-mark, my newly-unmarked ham isn't handled by spam.el > when I exit the group. > So I have a few questions: > > - Does it make sense to consider these unmarked messages (messages > marked with gnus-unread-mark) as ham when exiting a spam group? > It sure does to me, but maybe I'm weird. You can, by just adding the 'unread' mark to the list of ham marks without using the customization interface. That would be all that was needed. I have made a conscious effort to keep the 'unread' mark out of the ham marks' available choices, because I want unread messages to be considered unclassified. Read below for my own solution to this. > - What's a good way to make gnus-unread-mark one of the recognized > ham marks? I hesitate to copy (gnus-define-group-parameter > ham-marks... from gnus.el and redefine it in one of my startup > files. Here's what I do: I have the ! (ticked) mark as a ham mark. I also have the ham-process-destination parameter of my spam group set to "mail" (my default mail group), and the spam-mark-ham-unread-before-move-from-spam-group variable set to t. Also I have my spam group's spam-process-destination set to "train" (which is used for SpamAssassin training on my IMAP server), but you don't need to do that. That way, I go into my spam group, mark ham with `!', and just exit the group. All new articles were marked as spam when I entered the spam group, so now the ones still marked as spam are all moving to the "train" (spam-process-destination) folder. There is no spam-exit-processor because the training is done on the IMAP server. The ham-marked articles, namely the ticked ones, get moved to "mail" and *unmarked* (this is the part I think you want), so they look fresh and new. I don't use a ham-exit-processor on them currently. > - Should gnus-unread-mark be added to the default value of > gnus-parameter-ham-marks-alist? No, I think we need an 'unclassified' mark, which 'unread' is right now implicitly. But it can be added to the customize choices. > Thanks for this magnificent spam-fighting machinery, Ted! It feels more like a swiss army knife with a saw blade attachment, but thanks :) I'm working on the promised integration with the registry so articles won't get registered as spam/ham twice; after that I may redo a lot of the spam.el code to be more generic and flexible. Also, some "wizards" (heh, "angels") for configuring novice users' setups would be nice. All in all, I think spam.el is approaching a stable 1.0 point, but it can be a lot better. Ted