<<< Date Index >>>     <<< Thread Index >>>

Re: Pipe attachements to mutt?



Bill Moseley wrote:
> I can't remember if I forgot how to do this, or if I forgot to figure
> this out back when I needed this before:
> 
> I know I can specify an attachment with -a, but isn't there a way to
> simply pipe an attachment?  Maybe it isn't with mutt -- something
> like makemime maybe.  You know, for that quick:
> 
>   convert coolsunset.jpg -resize 320x - | mutt -s 'Sunsite' -a - <address>

Use a bash-ism?

  mutt -s 'Sunsite' -a <(convert coolsunset.jpg -resize 320x -) <address>

But it is not standard POSIX shell.  That would require building all
of the pipe plumbing explicitly.

Bob