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: Adam Funk
Subject: Re: How to pipe text or load a file directly into mail-mode?
Date: Fri, 5 May 2006 14:54:06 +0100
User-agent: slrn/0.9.8.1pl1 (Debian)

On 2006-05-04, Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:

>> That external program I want to be a Perl script that puts some stuff
>> at the beginning of the article, prefaces it with my custom headers,
>> and then opens it in Emacs in mail-mode (so I can use my ~/.mailrc
>> aliases and all the other great stuff that Emacs does).  Maybe I need
>> to store the article in a /tmp file then load it into the Perl
>> program, instead of piping it into the program's STDIN.
>
> You don't need Perl for that, I guess.  It's fairly easy to write a
> function in Elisp that does all you need and call it at Emacs startup,
> i.e. a _very_ simplistic one could be:

This would require the input to be stored in a /tmp file (not being
piped in), right?


> No need for Perl if you have the full Elisp languaeg at your hands :)

There's not much elisp in my brain, however!


reply via email to

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