🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #740

rmail-get-new-mail doesn't separate the messages in mbox

#740
From: Jason Eisner
Date: Thu, 03 Sep 1992 20:27
70 lines
2546 bytes
M-x emacs-version reports:
   GNU Emacs 18.58.1 of Fri May 15 1992 on mariah (berkeley-unix)

Info's description of the intended performance:
      The file you read with `i' does not have to be in Rmail file format. 
   It could also be Unix mail format, or mmdf format; or it could be a
   mixture of all three, as long as each message belongs to one of the
   three formats.  Rmail recognizes all three and converts all the
   messages to proper Rmail format before showing you the file.

The actual performance:
   rmail-get-new-mail reads a two-message mbox file as if it contained
   one long message.  It's very inconvenient to separate the messages
   again.

Reproducing the bug:
   This bug is very easy to reproduce on my machine.  I use xemacs -q
   to start emacs.  Then I start rmail.  The following mbox file shows
   the problem.  (This mbox file is correctly scanned as 2 messages by
   mail -f.)

/home/jason/mbox (indented 3 spaces, with --- before and after):
   ---

   From jason Thu Sep  3 16:08:46 1992 EDT
   To: jason
   Subject: blah 1

   blah blah blah (one)


   From jason Thu Sep  3 16:09:02 1992 EDT
   To: jason
   Subject: blah 2

   blah blah blah (two)

   ---

How the mbox file was produced:
   I sent the following two messages to myself using C-x m.

   ---
   To: jason
   Subject: blah 1
   FCC: /home/jason/mbox
   --text follows this line--
   blah blah blah (one)
   ---
   To: jason
   Subject: blah 2
   FCC: /home/jason/mbox
   --text follows this line--
   blah blah blah (two)
   ---

A dribble file for the session in which I reproduced the bug
(in od format).  bug.send1 and bug.send2 are the two message
files shown above.
   ---
   0000000  014155 015474 015476 013430 064542 072547 027163 062556
   0000020  062061 006403 001430 066401 015476 013430 064542 072547
   0000040  027163 062556 062062 006403 001433 074162 066541 064554
   0000060  006430 001571
   0000064
   ---

Have fun.  Let me know if you need any more information.  

regards, jason eisner.           <jason@research.att.com>
Technical Details
Message-ID: <m0mQNlj-00000fC@mjones.research.att.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!research.att.com!jason

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!research.att.com!jason
From: jason@research.att.com (Jason Eisner)
Subject: rmail-get-new-mail doesn't separate the messages in mbox
Message-ID: <m0mQNlj-00000fC@mjones.research.att.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 3 Sep 1992 20:27:00 GMT
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 73