home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / bug / 1244 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.9 KB  |  57 lines

  1. Newsgroups: gnu.emacs.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!ams.sunysb.edu!hanche
  3. From: hanche@ams.sunysb.edu (Harald Hanche-Olsen)
  4. Subject: rmail/sendmail bug
  5. Message-ID: <9209092336.AA25413@ams.sunysb.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Wed, 9 Sep 1992 23:36:34 GMT
  10. Approved: bug-gnu-emacs@prep.ai.mit.edu
  11. Lines: 44
  12.  
  13. The following bug manifests itself when emacs tries to convert a file
  14. from mbox format to Babyl format.  Here is how to reproduce it:
  15.  
  16. Send a couple of mail messages, saving the messages in a file using a
  17. header line like
  18.  
  19. FCC: ~/M/OUTBOX
  20.  
  21. Then say C-u M-x rmail ~/M/OUTBOX <RET>.  One sees the message about
  22. converting to Babyl format, but then the two messages show up as one
  23. message, concatenated together.
  24.  
  25. I am 99% sure I understand why this happens.  The problem is in the
  26. functions
  27.  
  28. mail-do-fcc            (in sendmail.el)
  29. rmail-convert-to-babyl-format    (in rmail.el)
  30. rmail-nuke-pinhead-header    (in rmail.el)
  31.  
  32. When saving the message, mail-do-fcc creates a header line like this:
  33.  
  34.    From hanche Wed Sep  9 13:10:44 1992 EDT
  35.  
  36. but rmail-convert-to-babyl-format uses a regexp to look for the start
  37. of the next message which expects the time zone to be BEFORE the year,
  38. not after - like
  39.  
  40.    From hanche Wed Sep  9 13:10:44 EDT 1992
  41.  
  42. I tried correcting it to allow either variant, only to discover that
  43. rmail-nuke-pinhead-header does the same.  And fixing it would be a tad
  44. more complicated, due to the replace-match using the regexp.  Rather
  45. than waste more time trying to correct this, I decided to report the
  46. bug.  I am not quite sure where is the "right" place to correct it -
  47. in mail-do-fcc or the other places.
  48.  
  49. Also, I would be very surprised if this bug has not already been
  50. reported and corrected, so maybe you have a fix ready?
  51.  
  52. - Harald
  53.  
  54. PS.  (emacs-version)
  55. "GNU Emacs 18.58.1 of Thu Sep  3 1992 on fermat (berkeley-unix)"
  56.  
  57.