help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: start emacs in mail mode?


From: Katsumi Yamaoka
Subject: Re: start emacs in mail mode?
Date: Tue, 21 Feb 2006 16:32:35 +0900
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

>>>>> In <mailman.1015.1140504979.2856.help-gnu-emacs@gnu.org> wdn wrote:

> I would like to open emacs in mail-mode on a preformated mail message, ready
> to edit as necessary and then send.  (This is from a perl script that
> gathers the necessary data for the email and composes a draft of the email
> to potential authors of a journal I edit.)

> My only idea was to try "emacs -f mail-mode tempmail"

> It does not do it. It opens the file tempmail in one buffer and starts
> mail-mode in a separate background buffer.  So I still have to do "M-x
> mail-mode" and then respond to a prompt whether I really want to send the
> current buffer when I try to send the email.

> Any help appreciated.

emacs -f mail -eval '(goto-char (point-max))' --insert tempmail

If tempmail has headers and a separator,

emacs -f mail -eval '(erase-buffer)' --insert tempmail


reply via email to

[Prev in Thread] Current Thread [Next in Thread]