From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52659 Path: main.gmane.org!not-for-mail From: Piers Cawley Newsgroups: gmane.emacs.gnus.general Subject: Adding a spam processor Date: Wed, 14 May 2003 09:07:32 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052899723 5524 80.91.224.249 (14 May 2003 08:08:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 14 May 2003 08:08:43 +0000 (UTC) Original-X-From: ding-owner+M1203@lists.math.uh.edu Wed May 14 10:08:42 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 19FrJZ-0001Qr-00 for ; Wed, 14 May 2003 10:08:42 +0200 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 19FrKy-0006Pw-00; Wed, 14 May 2003 03:10:08 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19FrKu-0006Pr-00 for ding@lists.math.uh.edu; Wed, 14 May 2003 03:10:04 -0500 Original-Received: (qmail 74116 invoked by alias); 14 May 2003 08:10:03 -0000 Original-Received: (qmail 74111 invoked from network); 14 May 2003 08:10:03 -0000 Original-Received: from pc1.bofhadsl.ftech.co.uk (HELO localhost) (212.32.59.214) by sclp3.sclp.com with SMTP; 14 May 2003 08:10:03 -0000 Original-Received: from localhost ([127.0.0.1] helo=huge.bofh.org.uk) by localhost with esmtp (Exim 4.12) id HEVAKN-000E4B-00 for ding@gnus.org; Wed, 14 May 2003 09:07:35 +0100 Original-Received: by huge.bofh.org.uk (8.12.9/8.12.6/Submit) id h4E87XOE018298; Wed, 14 May 2003 09:07:33 +0100 (BST) X-Authentication-Warning: huge.bofh.org.uk: pdcawley set sender to pdcawley-ding@bofh.org.uk using -f Original-To: ding@gnus.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.5 (carrot, darwin) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52659 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52659 So, I started work on a Spamassassin spam processor now that Spamassassin has its own rather lovely Bayesian system. What I'd hoped to do was to have a spam-spamassassin.el which would have all the spamassassin related code, without having to alter any of the main gnus distribution files (mostly because I want to be able to distribute the resulting code without having to fart about signing papers). But, of course, I can't. In an ideal world, I want to be able to do (spam-add-post-processor "spamassassin") and have that magically insert the appropriate entries into the spam-process gnus-group parameter definition, tweak spam-summary-prepare-exit, etc. But on looking at the code, everything appears to be hardwired. So would there be an interest in adding things like: (gnus-group-param-add-choices (PARAM &rest CHOICES)) and modifying spam-summary-prepare-exit to be rather more dynamic? Also, on a Spamassassin specific note, Spamassassin currently does a quite dramatic modification of messages that it thinks are spam, hiding the original message away in a MIME part. This can be stripped away with 'spamassassin -d'. It occurs to me that this could be dealt with rather neatly by adding a 'filter' parameter to gnus-summary-move-article (or adding a new function), which would filter the message through an arbitrary command before inserting it in the destination mailbox. -- Piers