🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #210

Re: Suggested fix to vm-pipe-message-part

#210
From: Julian Bradfield
Date: Mon, 04 Jan 2010 16:41
33 lines
2814 bytes
On 2010-01-04, blueman <NOSPAM@nospam.com> wrote:
> HOWEVER, vm-pipe-message-part is skipping the initial 'From' line since
> it is using (vm-headers-of m) as the start rather than (vm-start-of m).
> Similarly, it uses (vm-text-end-of m) rather than (vm-end-of m)
>
> Since the usual reason for splitting/piping messages to an external
> shell command is to pass the message to some standard 3rd program, it
> would be helpful to use standard conventions -- by which I mean
> something relatively consistent with 'formail' or better yet the RFC's.
> In particular, when you ask for the "entire message", I at least expect
> the entire message.

VM is behaving correctly. The initial From line is NOT part of the RFC
standard, nor is it part of the message. It's an obsolete Unix mbox hack
that should have been killed off decades ago - the mbox format is
patently unsuitable, leading to abominations like From-stuffing.
I've had immense trouble with very broken mail systems (procmail) that
insist on putting the From in where it has no business - it caused
standards-compliant mail filters to break, because they saw a From
instead of a proper message.

> In my case, spamassassin thinks a collection of messages is just one big
> message since it doesn't see the 'From' line.
>
> I would suggest making the following change so that the default "entire
> message" truly includes the entire message and perhaps add an option
> with four universal arguments that gives the current default behavior.

Bad idea. If you want to have a command that does
"take bunch of messages, concatenate them into given (mbox in your case)
mailbox format, pipe resulting mbox to program"
then write a command to do that - don't break an existing well
specified command.
Technical Details
Message-ID: <hht5o0$9pd$1@scotsman.ed.ac.uk>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feeds.phibee-telecom.net!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!feed4.jnfs.ja.net!jnfs.ja.net!newsfeed.ed.ac.uk!not-for-mail
References: <m2d41p7sho.fsf@consult.pretender>

Show Full Headers
Complete Article Headers
X-Google-Thread: a16957f451,747cd7667796b3e3
X-Google-Attributes: gida16957f451,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feeds.phibee-telecom.net!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!feed4.jnfs.ja.net!jnfs.ja.net!newsfeed.ed.ac.uk!not-for-mail
From: Julian Bradfield <jcb@inf.ed.ac.uk>
Newsgroups: gnu.emacs.vm.bug
Subject: Re: Suggested fix to vm-pipe-message-part
Date: Mon, 4 Jan 2010 16:41:36 +0000 (UTC)
Organization: Edinburgh University
Lines: 33
Message-ID: <hht5o0$9pd$1@scotsman.ed.ac.uk>
References: <m2d41p7sho.fsf@consult.pretender>
NNTP-Posting-Host: krk.inf.ed.ac.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: scotsman.ed.ac.uk 1262623296 10029 129.215.25.119 (4 Jan 2010 16:41:36 GMT)
X-Complaints-To: usenet@scotsman.ed.ac.uk
NNTP-Posting-Date: Mon, 4 Jan 2010 16:41:36 +0000 (UTC)
User-Agent: slrn/0.9.9p1 (Linux)