Hi,
I didn't find the answer on this question anywhere...
I'm running mutt from a shell script and need to investigate a return value.
It looks like mutt is always returning 0.
For example,
echo "hi!" | mutt -s "hello" -a "$ATTACHMENT" "[EMAIL PROTECTED]" 2>&1
1>$OUTFILE
$?=0.
No errors will be reported even if I'll put a wrong e-mail address, like
[EMAIL PROTECTED]
Only if I'll put something very bad like zzzzzzzzzzz it will return an error
but $? will still be =0.
So, how can I work with a mutt's return value? I've understand that I can
redirect an output and
investigate an error file. Is this the only possibility? What if, as I've
mentioned above",
I've just misspell the 1 letter and no error message appear?
Thanks,
Oleg