From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50454 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: (: spam-split) doesn't work Date: Fri, 28 Feb 2003 17:55:47 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87vfzyjx2v.fsf@splinter.inka.de> <4nisvxs1j6.fsf@lockgroove.bwh.harvard.edu> <874r7g2f4w.fsf@splinter.inka.de> <4nheb8qazq.fsf@lockgroove.bwh.harvard.edu> <87vfznc21y.fsf@splinter.inka.de> <4nk7g3gdbk.fsf@lockgroove.bwh.harvard.edu> <87vfzm7p2f.fsf@splinter.inka.de> <4nlm0iad77.fsf@lockgroove.bwh.harvard.edu> <877kc26j07.fsf@splinter.inka.de> <87el5talpw.fsf@splinter.inka.de> <4nfzq9k84r.fsf@chubby.bwh.harvard.edu> <87wujl8tj8.fsf@splinter.inka.de> <4nwujlim0o.fsf@chubby.bwh.harvard.edu> <87n0khcwty.fsf@splinter.inka.de> <4n3cm9h27d.fsf@chubby.bwh.harvard.edu> <87isv5crc0.fsf@splinter.inka.de> <4nlm01pdba.fsf@chubby.bwh.harvard.edu> <87d6ldcmok.fsf@splinter.inka.de> <4nznogicec.fsf@chubby.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 1046451405 21833 80.91.224.249 (28 Feb 2003 16:56:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 28 Feb 2003 16:56:45 +0000 (UTC) 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 18onoA-0005fW-00 for ; Fri, 28 Feb 2003 17:56:26 +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 18onny-0005Fh-00; Fri, 28 Feb 2003 10:56:14 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 28 Feb 2003 10:57:12 -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 KAA19816 for ; Fri, 28 Feb 2003 10:56:56 -0600 (CST) Original-Received: (qmail 53240 invoked by alias); 28 Feb 2003 16:55:52 -0000 Original-Received: (qmail 53235 invoked from network); 28 Feb 2003 16:55:52 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by 66.230.238.6 with SMTP; 28 Feb 2003 16:55:52 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.7/8.12.7) with ESMTP id h1SGtmqt018816 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Fri, 28 Feb 2003 17:55:49 +0100 Original-To: ding@gnus.org X-Payment: hashcash 1.1 0:030228:ding@gnus.org:b73f913c9d931fbd X-Hashcash: 0:030228:ding@gnus.org:b73f913c9d931fbd In-Reply-To: <4nznogicec.fsf@chubby.bwh.harvard.edu> (Ted Zlatanov's message of "Fri, 28 Feb 2003 11:43:39 -0500") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50454 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50454 Ted Zlatanov writes: > On Fri, 28 Feb 2003, chris@splinter.inka.de wrote: >> Ted Zlatanov writes: >> >>> On Thu, 27 Feb 2003, chris@splinter.inka.de wrote: >>>> As I had assumed, /tmp/bogofilter.input only contains the header, >>>> whereas the message which is to be classified contains a >>>> non-empty body. >> [...] >>> >>> I see. Try setting nnimap-split-download-body to t. Does that fix >>> it? >> >> As I don't use IMAP, there's no effect. > > I'm pretty sure Simon Josefsson did the necessary work to have the > full message available in nnmail (nnml, specifically) splitting. See > this message on the ding list and the surrounding discussion: > > > > Simon, am I supposed to do something special in spam-split to have the > full message body available? I think (widen) wouldn't work, because > it will remove all narrowing restrictions and I'll be looking at the > full incoming mbox file, is that correct? I had assumed that your fix > left the full message body in the buffer, but according to Chris' > experience he's getting only the header. > > If it's not set up yet, it would be OK to have a variable analogous to > nnimap-split-download-body to trigger that behavior optionally. The behaviour enabled by n-s-d-b for nnmail should be the default. I think Gnus copies the message around, so (widen) should work. Maybe putting (progn (widen) (message (buffer-string))) in the split function will tell for sure, I haven't used nnmail splitting recently.