I'm getting different results between sending mail from the command line and using mutt manually. I can use mutt directly to send mail with the desired "From" and "Reply-to" headers. But when I use the command line, the From header gets changed on me somewhere.
>From the command line: echo "message" | mutt -e 'set from = supp...@example.com' -e 'my_hdr Reply-to: supp...@example.com' -F ~/.mutt/plainrc -s "subject" w...@example.com This gets delivered as: Return-Path: <wricha...@example.com> Delivered-To: w...@example.com X-Envelope-To: w...@example.com X-Virus-Check-By: mailwash47.pair.com X-Spam-Check-By: mailwash47.pair.com X-Spam-Status: No, hits=-3.4 required=4.0 tests=ALL_TRUSTED,IP_WHITELIST autolearn=disabled version=3.002005 X-Spam-Flag: NO X-Spam-Level: X-Spam-Filtered: c215c0f552dab31fbec67e44f7049c53 X-Greylisting: 209.68.5.0/24 is whitelisted X-pair-Authenticated: 76.31.160.40 Date: Tue, 24 Nov 2009 14:59:34 -0600 From: Wayne Richards <wricha...@example.com> To: w...@example.com Subject: subject Message-ID: <20091124205934.ga5...@example.com> Reply-To: supp...@example.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Content-Length: 8 message ----------------------------- The problem line is "From: Wayne Richards <wricha...@example.com>", what I want is "From: supp...@example.com". Here's ~/.mutt/plainrc: # scripts should use -F option with this as the initialization file set spoolfile = =Inbox set editor = mcedit set sort = reverse-date set record = =INBOX.Sent set delete=ask-yes set quit=yes # skip exit prompt set reply_to=no set use_envelope_from=yes set auto_tag set move=no set pipe_sep = "\n_email_separator_\n" set index_format = "%3C %Z %[%D] %-20.20t %-20.20F %s" hdr_order to from subject date unset wait_key # make headers readable: ignore * unignore from to cc subject date X-label Any thoughts on why the "From" header isn't matching the -e 'set from = supp...@example.com' option I'm using? Wayne