From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45551 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.gnus.general Subject: Re: [ANNOUNCE] contrib/hashcash.el spam fighter Date: Sat, 06 Jul 2002 08:14:11 +1000 Sender: owner-ding@hpc.uh.edu Message-ID: <87ofdloma4.fsf@zip.com.au> References: <02Jun24.115740edt.119250@gateway.intersystems.com> <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> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025907424 11877 127.0.0.1 (5 Jul 2002 22:17:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2002 22:17:04 +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 17QbNv-00035S-00 for ; Sat, 06 Jul 2002 00:17:03 +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 17QbMc-0001v3-00; Fri, 05 Jul 2002 17:15:42 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 05 Jul 2002 17:16:05 -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 RAA15050 for ; Fri, 5 Jul 2002 17:15:50 -0500 (CDT) Original-Received: (qmail 17052 invoked by alias); 5 Jul 2002 22:15:17 -0000 Original-Received: (qmail 17047 invoked from network); 5 Jul 2002 22:15:16 -0000 Original-Received: from sunny.pacific.net.au (203.25.148.40) by gnus.org with SMTP; 5 Jul 2002 22:15:16 -0000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id g65MFDSs020920 for ; Sat, 6 Jul 2002 08:15:13 +1000 (EST) Original-Received: from localhost (ppp56.dyn228.pacific.net.au [203.143.228.56]) by wisma.pacific.net.au with ESMTP id IAA10728 for ; Sat, 6 Jul 2002 08:15:11 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.31 #1 (Debian)) id 17QbLA-0000hx-00; Sat, 06 Jul 2002 08:14:12 +1000 Original-To: ding@gnus.org Mail-Copies-To: never In-Reply-To: (Simon Josefsson's message of "Tue, 02 Jul 2002 20:50:15 +0200") Original-Lines: 27 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45551 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45551 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. 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 know the manual shows *nnmail incoming*, but for a respool it seems to be *nnml move*. 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.