Article View: gnu.emacs.vm.bug
Article #193Re: not all mail in a mail file is shown?
From: Uday Reddy
Date: Fri, 02 Oct 2009 15:34
Date: Fri, 02 Oct 2009 15:34
32 lines
2840 bytes
2840 bytes
"tyler" <tyler.smith@mail.mcgill.ca> wrote in message news:87zlf7urk0.fsf@blackbart.sedgenet... > Ok, just noticed that the messages that don't display have something > wrong with the line-endings - they all have '^M' at the ends of the > lines. Prior to having this problem, I have never opened this file for > direct editing, so somewhere along the line something switched encoding > or something? Deleting these line-endings (carriage-return/linefeed > thing) makes all the messages visible again. > > So where did the ^M come from? I don't notice it in other mailboxes > created from vm. Sorry that I am getting into this thread kind of late. ^M is the carriage return character (CR). Windows text files use CR-LF to denote the end of line whereas Unix files use just LF. Emacs can deal with both formats. But if the two formats are intermixed within the *same* text file (like a VM mail file), then Emacs doesn't know what to do with it. Why does this happen? Emacs and VM use a program called 'movemail' to append new mail to an existing mail file. This program is supposed to find out what format the existing mail file is in and convert the new mail to the same format before appending it. There is some amount of guess work involved in this and 'movemail' is not perfect in guessing. You can clean up the file by deleting all the useless ^M characters. Visit the mail file as a text file and type something like M-x replace string RET ^Q^M RET RET. Then save the file, kill the buffer, and revisit it in VM. Cheers, Uday
Technical Details
Message-ID:
<ha56h8$8hq$1@north.jnrs.ja.net>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!news.clara.net!wagner.news.clara.net!zen.net.uk!hamilton.zen.co.uk!feed4.jnfs.ja.net!jnfs.ja.net!times.reader.netnews.ja.net!not-for-mailReferences:
<878wmywy9z.fsf@blackbart.sedgenet> <m2fxh0juum.fsf@cs.uu.nl> <87zlf7urk0.fsf@blackbart.sedgenet>Show Full Headers
Complete Article Headers
X-Google-Thread: a16957f451,e2205ef768c62571 X-Google-Attributes: gida16957f451,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!news.clara.net!wagner.news.clara.net!zen.net.uk!hamilton.zen.co.uk!feed4.jnfs.ja.net!jnfs.ja.net!times.reader.netnews.ja.net!not-for-mail From: "Uday Reddy" <U.S.Reddy@cs.bham.ac.uk> Newsgroups: gnu.emacs.vm.bug Subject: Re: not all mail in a mail file is shown? Date: Fri, 2 Oct 2009 16:34:15 +0100 Organization: Janet Usenet Reading Service. Lines: 33 Message-ID: <ha56h8$8hq$1@north.jnrs.ja.net> References: <878wmywy9z.fsf@blackbart.sedgenet> <m2fxh0juum.fsf@cs.uu.nl> <87zlf7urk0.fsf@blackbart.sedgenet> NNTP-Posting-Host: acws-0065.cs.bham.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: north.jnrs.ja.net 1254497640 8762 147.188.194.53 (2 Oct 2009 15:34:00 GMT) X-Complaints-To: usenet@north.jnrs.ja.net NNTP-Posting-Date: Fri, 2 Oct 2009 15:34:00 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1983 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1983