The mutt.1 man page for mutt-1.5.20 says in the synopsis,

    mutt [-nx] [-e cmd] [-a file] [-F file] [-H file] [-i file] [-s subj] [-b 
addr] [-c addr] addr [...]

That says to me that an 'addr' is required when using the -H option,
which implies that mutt uses that 'addr' when sending the message.
Experiments show, however, that mutt ignores any addresses on the
command line when the -H option is present.  It takes all the
destination addresses instead from the "To:" line.

This behavior is not discussed anywhere that I could find in either
the man page or the manual.  Since I haven't contributed to the
documentation, I'm not going to complain about the omission, but the
synopsis seems at best misleading if not erroneous.

The experiment I did was to construct a draft message with two
addresses in the "To:" line and sent it using

    mutt -d 2 -H - address3 address4 < draft

The resulting ~/.muttdebug0 file showed the message being sent via
SMTP to both of the addresses in the draft but to neither of the
addresses on the command line.

What I'm really trying to do is to use mutt to replace /bin/mail in
a script on a system where sendmail has been disabled and the only
supported outgoing mail service is SMTP to an Exchange server.  I'm
in the process of discovering the differences in behavior between
/bin/mail and mutt.

Regards,
Gary


Reply via email to