[ale] multi-line echo?

Geoffrey esoteric at 3times25.net
Tue Nov 9 16:01:14 EST 2004


Keith Morris wrote:
> Sorry, I guess I was a little vague. Specifically, what I would like to 
> do is send quick emails with attachments and a quick message like:
> 
> echo "Here is the file you wanted" | mutt -s "File Attached" -a 
> /home/keith/somefile.tgz you at example.com
> 
> But I would rather edit the text in a vi type of environment and when I 
> :wq! it would send the buffer to <stdout> and be piped through mutt.

I don't know if mutt does this but mail will allow you to invoke a vi 
editor as follows:

mail foo at domain.net

When you do the above, you'll be prompted for a subject then you'll be 
creating the email.  enter '~e' on the line and you'll be thrown into 
your editor.

-- 
Until later, Geoffrey



More information about the Ale mailing list