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

[ale] multi-line echo?



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