Article View: gnu.emacs.vm.bug
Article #216Re: Suggested fix to vm-pipe-message-part
From: blueman
Date: Tue, 05 Jan 2010 05:17
Date: Tue, 05 Jan 2010 05:17
41 lines
3081 bytes
3081 bytes
Uday S Reddy <uDOTsDOTreddy@cs.bham.ac.uk> writes: > blueman wrote: > >> 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. > > Boy, you guys are really busy today, aren't you? > > Unfortunately, it looks like 'formail' has let you down. Julian is > right. RFC 2822, which specifies the format of internet messages, > only allows headers and body in the messages. The leading "From " > line and the trailing empty line are *separators* used in the "mbox > database" format, as specified in RFC 4155. These are not part of the > messages themselves. > > Your change will break all users that are trying to interface to > standards-compliant tools. > > You can have either a 4-prefix-argument version or customization > variables to include the separators in the "message". Which would you > prefer? > Please see my other post. To me it seems like the difference is that Julian is using vm-pipe-message-to-command where separators are not needed and in his case at least has caused him confusion and data loss. I am mostly interested in vm-pipe-messages-to-command where separators (whether mbox or otherwise) are pretty essential if you want to preserve any sense of where a message starts or ends. My proposed compromise is to add an optional flag to the respective routines that toggles the inclusion/exclusion of separators with the default be to exclude separators in the single message case and include them in the multiple message case... This "compromise" should result in maximizing the possibility that piping to third party programs will work with both commands.
Technical Details
Message-ID:
<m2pr5p5dwv.fsf@consult.pretender>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!188.40.43.213.MISMATCH!feeder.eternal-september.org!eternal-september.org!not-for-mailReferences:
<m2d41p7sho.fsf@consult.pretender> <hhtivu$b89$1@north.jnrs.ja.net>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!188.40.43.213.MISMATCH!feeder.eternal-september.org!eternal-september.org!not-for-mail From: blueman <NOSPAM@nospam.com> Newsgroups: gnu.emacs.vm.bug Subject: Re: Suggested fix to vm-pipe-message-part Date: Tue, 05 Jan 2010 00:17:04 -0500 Organization: A noiseless patient Spider Message-ID: <m2pr5p5dwv.fsf@consult.pretender> References: <m2d41p7sho.fsf@consult.pretender> <hhtivu$b89$1@north.jnrs.ja.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Tue, 5 Jan 2010 05:17:04 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="o0xooYC/dlyFpPxuXQpbEw"; logging-data="18651"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bcXvKLxLSDRxVNSx/K1fzi5RD5nu+NLw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:gcIYVceW8d4rEdnpx46ERZibqSY= sha1:/SXQi3o/Rkr/NYHXDHHPJ6yZh5Q=