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

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

Re: How to pipe text or load a file directly into mail-mode?


From: Reiner Steib
Subject: Re: How to pipe text or load a file directly into mail-mode?
Date: Fri, 05 May 2006 13:17:25 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

On Thu, May 04 2006, Giorgos Keramidas wrote:

> | (defun slrn-setup-post (&optional filename)
> |   "Load a file and set things up for posting it as a `mail'
> |   message through Emacs."
> |     (interactive)
> |       (if filename
> |           (insert-filename))
> |       (beginning-of-buffer)
> |       (insert-string "From: foo@bar.example.net\n\n")
> |       (mail-mode))

I'd suggest to set the buffer in mail mode first and then use the
predefined functions like `mail-insert-from-field', `mail-to', ...

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

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