On Wed, Oct 11, 2000 at 04:44:56PM -0400, Jean-Paul Laberge wrote:
> I'd like to know how to use 'mutt' in batch mode, without a user
> intervention. I use the following command:
>
> mutt -a attached.txt -s "Test from MUTT" jplaberge@.aircanada.ca
>
> but I'm always going in the user interface.
>
> Is it possible to do it? And, if yes, do you know how to do it?
You're very close. Just redirect stdin from a file or a pipe as such:
mutt -a attached.txt -s "Test from MUTT" jplaberge@.aircanada.ca < /dev/null
or
cat prepared-file | mutt -a attached.txt -s "Test from MUTT" jplaberge@.aircanada.ca
me
PGP signature