From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45558 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: [ANNOUNCE] contrib/hashcash.el spam fighter Date: Sun, 07 Jul 2002 20:40:00 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <02Jun24.151839edt.119751@gateway.intersystems.com> <02Jun25.104630edt.119271@gateway.intersystems.com> <02Jun28.122222edt.119118@gateway.intersystems.com> <02Jun28.172137edt.119392@gateway.intersystems.com> <87sn346jjb.fsf@home.lan> <02Jul1.111151edt.119355@gateway.intersystems.com> <87sn332wie.fsf@doohan.bang.priv.no> <02Jul1.142847edt.119166@gateway.intersystems.com> <87ofdq76ll.fsf@home.lan> <02Jul2.112452edt.119459@gateway.intersystems.com> <87ofdloma4.fsf@zip.com.au> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1026067346 10881 127.0.0.1 (7 Jul 2002 18:42:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 7 Jul 2002 18:42:26 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17RGzK-0002pO-00 for ; Sun, 07 Jul 2002 20:42:26 +0200 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 17RGxM-0005dr-00; Sun, 07 Jul 2002 13:40:24 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 07 Jul 2002 13:40:46 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA19125 for ; Sun, 7 Jul 2002 13:40:31 -0500 (CDT) Original-Received: (qmail 24887 invoked by alias); 7 Jul 2002 18:40:04 -0000 Original-Received: (qmail 24882 invoked from network); 7 Jul 2002 18:40:04 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 7 Jul 2002 18:40:04 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.5/8.12.5) with ESMTP id g67Ie0wF029637 for ; Sun, 7 Jul 2002 20:40:00 +0200 Original-To: ding@gnus.org Mail-Copies-To: nobody X-Hashcash: 020707:ding@gnus.org:34441246aa7ba02e In-Reply-To: <87ofdloma4.fsf@zip.com.au> (Kevin Ryde's message of "Sat, 06 Jul 2002 08:14:11 +1000") Original-Lines: 45 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) X-Spam-Status: No, hits=-4.4 required=5.0 tests=IN_REP_TO version=2.20 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45558 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45558 Kevin Ryde writes: > Simon Josefsson writes: >> >> The only thing I dislike is that SpamAssassin-Milter rewrites message >> bodies, but I'll contribute a patch to fixes that as soon as I've >> written it. Btw, the patch is written. I've been using it for 4-5 days and it seems to work. http://savannah.gnu.org/patch/?func=detailpatch&patch_id=385&group_id=1083 > I get a bit nervous about modifying mail, so I've just been doing a > straightforward fancy-split on what spamc says, > > (defun my-spamassassin () > (save-excursion > (let ((buf (or (get-buffer " *nnmail incoming*") > (get-buffer " *nnml move*")))) > (if (not buf) > (progn (message "Oops, cannot find message buffer") nil) > (set-buffer buf) > (if (eq 1 (call-process-region (point-min) (point-max) > "spamc" nil nil nil "-c")) > "spam"))))) > > Is there a kosher way to look at the whole message? I think this was discussed earlier, and the answer was no. > I know the manual shows *nnmail incoming*, but for a respool it > seems to be *nnml move*. Respooling is a bit ad-hoc, yes. > This isn't very fast, but I don't know where the hold-up is. Maybe > having emacs speak down a pipe to a Mail::SpamAssassin script would be > an improvement, or more likely it's just spamassassin itself taking > the time. Disabling the DNS based spam checks improves speed as well. Thanks for your code snippet, I'm working on extending the spam chapter in the manual and I'll include it unless you object.