[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: |
Thu, 4 May 2006 20:46:32 +0100 |
User-agent: |
slrn/0.9.8.1pl1 (Debian) |
On 2006-05-04, Ralf Fassel <ralfixx@gmx.de> wrote:
> Well, via '-nw' you tell emacs to use the tty as input, but the tty is
> already used by perl. Do you really need '-nw'? If you really need
> -nw, you could try something along the lines of
>
> system("emacs -nw $tempfile -f mail-mode </dev/tty");
>
> I.e. use shell input redirection to the controlling tty. I have no
> idea how robust that would be, and would rather get rid of the '-nw'.
Maybe it would help if I explained what I'm *really* trying to do. I
get usenet access by opening an xterm, logging into a server and
running slrn. I really like like slrn except that I can't customize
forwarding articles by e-mail the way I'd like, so I want to bind a
slrn key to a command that just pipes the current article to an
external program.
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.
- Re: How to pipe text or load a file directly into mail-mode?, (continued)
Re: How to pipe text or load a file directly into mail-mode?, Ralf Fassel, 2006/05/03
- Re: How to pipe text or load a file directly into mail-mode?, Giorgos Keramidas, 2006/05/04
- Re: How to pipe text or load a file directly into mail-mode?, Ralf Fassel, 2006/05/04
- Re: How to pipe text or load a file directly into mail-mode?,
Adam Funk <=
- Re: How to pipe text or load a file directly into mail-mode?, Giorgos Keramidas, 2006/05/04
- Re: How to pipe text or load a file directly into mail-mode?, Adam Funk, 2006/05/05
- Re: How to pipe text or load a file directly into mail-mode?, Giorgos Keramidas, 2006/05/05
Re: How to pipe text or load a file directly into mail-mode?, Reiner Steib, 2006/05/05
Re: How to pipe text or load a file directly into mail-mode?, Adam Funk, 2006/05/05
Re: How to pipe text or load a file directly into mail-mode?, Ralf Fassel, 2006/05/05
Re: How to pipe text or load a file directly into mail-mode?, John Sullivan, 2006/05/06
Re: How to pipe text or load a file directly into mail-mode?, Adam Funk, 2006/05/09