Article View: gnu.emacs.vm.bug
Article #271Re: mbox format problem
From: Julian Bradfield
Date: Tue, 15 Feb 2011 08:47
Date: Tue, 15 Feb 2011 08:47
18 lines
2249 bytes
2249 bytes
On 2011-02-15, Kurt Hackenberg <kh@pnnnnx.kom> wrote: > Julian Bradfield <jcb@inf.ed.ac.uk> wrote: >>A sensible format would use content-length... > No, because content-length is number of bytes in the message body, > which includes end-of-line characters and such, so it varies across > systems. If you move the file from one system to another, it breaks. Er, it's up to the MTA/MUA to maintain the Content-Length correctly if they do anything other than make a perfect binary copy. The format already exists, and VM already supports it. > I've had an idea to use the dot-stuffing algorithm used by SMTP: a > message is terminated by a line containing nothing but '.'; any such > line in the message gets another '.' added at the front. You also need to stuff any line containing only dots, of course.That's what From-stuffing is like, and it's evil. It should not be necessary to mangle a message in order to store it.
Technical Details
Message-ID:
<slrnilkfcs.pm1.jcb@krk.inf.ed.ac.uk>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!163.1.2.201.MISMATCH!feeds.news.ox.ac.uk!news.ox.ac.uk!usenet.inf.ed.ac.uk!.POSTED!not-for-mailReferences:
<8739nuxoil.fsf@cervantes.cervantes.es> <slrnilcn2u.jcq.jcb@krk.inf.ed.ac.uk> <87mxm0x5il.fsf@cervantes.cervantes.es> <slrnile2c1.q00.jcb@krk.inf.ed.ac.uk> <ijchgd$7u1$1@reader1.panix.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f6829,681143edebf5735e X-Google-NewGroupId: yes X-Google-Attributes: gida16957f451,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!163.1.2.201.MISMATCH!feeds.news.ox.ac.uk!news.ox.ac.uk!usenet.inf.ed.ac.uk!.POSTED!not-for-mail From: Julian Bradfield <jcb@inf.ed.ac.uk> Newsgroups: gnu.emacs.vm.bug Subject: Re: mbox format problem Date: Tue, 15 Feb 2011 08:47:24 +0000 (UTC) Organization: School of Informatics, The University of Edinburgh Lines: 19 Message-ID: <slrnilkfcs.pm1.jcb@krk.inf.ed.ac.uk> References: <8739nuxoil.fsf@cervantes.cervantes.es> <slrnilcn2u.jcq.jcb@krk.inf.ed.ac.uk> <87mxm0x5il.fsf@cervantes.cervantes.es> <slrnile2c1.q00.jcb@krk.inf.ed.ac.uk> <ijchgd$7u1$1@reader1.panix.com> 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: automatic.inf.ed.ac.uk 1297759644 45074 129.215.25.119 (15 Feb 2011 08:47:24 GMT) X-Complaints-To: usenet@automatic.inf.ed.ac.uk NNTP-Posting-Date: Tue, 15 Feb 2011 08:47:24 +0000 (UTC) User-Agent: slrn/0.9.9p1 (Linux)