🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #2192

How to have OUTGOING mail in an RMAIL file

#2192
From: Lawrence R. Dodd
Date: Mon, 25 Jan 1993 13:10
44 lines
2810 bytes
>>>>> "Christopher" == Christopher J Biggs <cjb@cs.uq.oz.au> writes:

  Christopher>   How do I get the emacs mail routine to put copies of outgoing mail
  Christopher> in a file that i can read with RMAIL.  The FCC header is (I presume)
  Christopher> processed by sendmail, and sendmail doesn't include enough headers 
  Christopher> in the saved message for rmail to be able to split my outbox file into
  Christopher> separate message.  Thus if I use FCC: ~/outbox, and I read outbox
  Christopher> into RMAIL, It just appears as one big message, no matter how many
  Christopher> letters I send.   

  Christopher>   Has somebody got a function that will append a buffer to the end
  Christopher> of an RMAIL file, or something, or is there an improved version of mail?

I believe that is a bug in emacs.  Here is an excerpt from the info pages for
the FAQ.

.........
File: efaq.info,  Node: Question 155,  Next: Question 156,  Prev: Question 154,  Up: Chapter 6

Why does RMAIL think all my saved messages are one big message?
===============================================================

        There is a bug for FCC-ed messages in Emacs 18.58 where it adds
a timezone on the "From " line after the year instead of before the
year.  (Before it didn't add the timezone at all.)  This is
incompatible with the standard format for the "From " line, and RMAIL
in particular can no longer distinguish between the messages.  Karl
Berry <karl@cs.umb.edu>, Felix Lee <flee@cs.psu.edu>, Nick Gianniotis
<nico@japan.sbi.com> and many others have all posted patches for this. 
Karl's is the simplest and just stops Emacs from adding the timezone:

            >*** ./ORIG/sendmail.el        Tue Jan 28 16:22:56 1992
            >--- ./sendmail.el        Thu May 14 18:23:48 1992
            >***************
            >*** 285,287 ****
            >        (insert "\nFrom " (user-login-name) " "
            >!               (current-time-string) " " timezone "\n")
            >        (insert-buffer-substring rmailbuf)
            >--- 285,287 ----
            >        (insert "\nFrom " (user-login-name) " "
            >!               (current-time-string) "\n")
            >        (insert-buffer-substring rmailbuf)

.........
Technical Details
Message-ID: <9301251307.AA15050@roebling.poly.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!roebling.poly.edu!dodd

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!roebling.poly.edu!dodd
From: dodd@roebling.poly.edu (Lawrence R. Dodd)
Newsgroups: gnu.emacs.help
Subject: How to have OUTGOING mail in an RMAIL file
Date: 25 Jan 1993 08:10:23 -0500
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Lines: 44
Sender: daemon@cis.ohio-state.edu
Distribution: world
Message-ID: <9301251307.AA15050@roebling.poly.edu>
Reply-To: dodd@roebling.poly.edu