Article View: gnu.emacs.vm.bug
Article #9461Re: dead.letter capability in VM
From: Piet van Oostrum
Date: Tue, 20 Aug 1991 09:33
Date: Tue, 20 Aug 1991 09:33
29 lines
2027 bytes
2027 bytes
>>>>> jbw@maverick.uswest.com (Joe Wells) (JW) writes:
JW> In article <9108121800.AA05212@wendy-fate.UU.NET> kyle@uunet.UU.NET (Kyle Jones) writes:
JW> Is there a command to resend a message like this? That is, a command
JW> which sets up a mail buffer, inserts the body of the viewed message as the
JW> body of the message to be sent, and inserts the headers of the viewed
JW> message as the headers of the message to be sent?
JW> None of the existing commands seem to do quite what is wanted here.
I use a command like this:
(defun remail ()
(interactive)
(let ((cur-buf (current-buffer)))
(vm-mail)
(erase-buffer)
(insert-buffer cur-buf)
(if (re-search-forward "^ *$" nil 1)
(replace-match mail-header-separator)
(insert mail-header-separator "\n"))
(if (and mail-archive-file-name (not (mail-position-on-field "FCC")))
(insert mail-archive-file-name))))
--
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31 30 531806 Uucp: uunet!mcsun!ruuinf!piet
Telefax: +31 30 513791 Internet: piet@cs.ruu.nl (*`Pete')
Technical Details
Message-ID:
<1991Aug20.093319.16043@cs.ruu.nl>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!hp4nl!alchemy!pietReferences:
<9108110410.AA03013@maverick.uswest.com> <9108112319.AA01174@wren.acs.csulb.edu> <9108112333.AA11081@maverick.uswest.com> <9108121800.AA05212@wendy-fate.UU.NET> <JBW.91Aug13163021@maverick.uswest.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6829,32d8982dad751f51 X-Google-Attributes: gidf6829,public X-Google-ArrivalTime: 1991-08-20 05:38:42 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!hp4nl!alchemy!piet From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: gnu.emacs.vm.bug Subject: Re: dead.letter capability in VM Message-ID: <1991Aug20.093319.16043@cs.ruu.nl> Date: 20 Aug 91 09:33:19 GMT References: <9108110410.AA03013@maverick.uswest.com> <9108112319.AA01174@wren.acs.csulb.edu> <9108112333.AA11081@maverick.uswest.com> <9108121800.AA05212@wendy-fate.UU.NET> <JBW.91Aug13163021@maverick.uswest.com> Sender: piet@cs.ruu.nl (Piet van Oostrum) Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Organization: Dept of Computer Science, Utrecht University, The Netherlands Lines: 29 In-Reply-To: jbw@maverick.uswest.com (Joe Wells)