Re: Better piped text support
Hi Tamotsu,
On Fri, May 14, 2004 at 19:04:20 +0900, TAKAHASHI Tamotsu wrote:
> On Fri, May 14, 2004 at 12:35:13AM +0200, Jens Paulus wrote:
> > The command $mutt -s <subject> -i - add@ress < textfile.txt
> > should make mutt open the editor with the piped text in the buffer or
> > open the compose menu with the content of textfile.txt as first
> > attachment. If there is a patch for that, please let me know.
>
> No patch.
> "mutt -i /dev/stdin < text.txt" works here (FreeBSD and zsh).
this does not work here with Solaris and csh. This works just like
piping the text to mutt without the -i option, that means the message is
sent directly.
> If /dev/stdin does not work, you use a wrapper script
> (cat>tmpfile;mutt -i tmpfile).
This is possible but I think it should work directly.
> If you don't want to edit the file, do "mutt -e 'set editor=true'"
Thanks, this should be written in the manual.
Best regards
Jens