Re: send using command-line changes From header

2009-12-02 Thread Monte Stevens
On Tue, Dec 01, 2009 at 04:04:36PM -0600, Wayne Richards wrote:
 I eliminated the spaces, yet still get the same result (the
 command-line method doesn't get the proper From value).  Any other
 thoughts?

Well, I've attempted to do what you're doing and I can make it work
here (I guess).  What I'm doing is the following.

1. I used the muttrc file you provided and commented out anything that
didn't seem relevant to a command line send operation.  (This left only
the use_envelope_from line.)

2. I used the command line string you provided and modified it slightly.
This is what it ended up looking like:

echo message | mutt -e 'set from=Support Guy supp...@example.com'
-e 'my_hdr Reply-to: supp...@example.com' -F ~/.mutt/plainrc -s
subject mo...@downstairs.invalid


The message I received had these headers:

From: Support Guy supp...@example.com
Subject: subject
To: mo...@downstairs.invalid
Reply-To: supp...@example.com
User-Agent: Mutt/1.5.20 (2009-06-14)


So, I guess you could try what I'm doing -- although all I'm doing
differently is simplifying the muttrc and fancying up the from variable.
One thing you could look at is your system muttrc file.  Some trouble
spots might be:

envelope_from_address
use_envelope_from
from
use_from
realname

The system muttrc file can be disabled by using '-n'.  You could try that
first to eliminate it entirely.


-- 
Monte


Re: send using command-line changes From header

2009-12-02 Thread Wayne Richards
I'm not sure why, but I finally got the results I wanted by adding
-e 'set realname=supp...@example.com' to the mix.  Thanks for the
assistance.

Wayne
On Wed, Dec 02, 2009 at 01:36:54PM -0400, Monte Stevens wrote:
 On Tue, Dec 01, 2009 at 04:04:36PM -0600, Wayne Richards wrote:
  I eliminated the spaces, yet still get the same result (the
  command-line method doesn't get the proper From value).  Any other
  thoughts?
 
 Well, I've attempted to do what you're doing and I can make it work
 here (I guess).  What I'm doing is the following.
 
 1. I used the muttrc file you provided and commented out anything that
 didn't seem relevant to a command line send operation.  (This left only
 the use_envelope_from line.)
 
 2. I used the command line string you provided and modified it slightly.
 This is what it ended up looking like:
 
 echo message | mutt -e 'set from=Support Guy supp...@example.com'
 -e 'my_hdr Reply-to: supp...@example.com' -F ~/.mutt/plainrc -s
 subject mo...@downstairs.invalid
 
 
 The message I received had these headers:
 
 From: Support Guy supp...@example.com
 Subject: subject
 To: mo...@downstairs.invalid
 Reply-To: supp...@example.com
 User-Agent: Mutt/1.5.20 (2009-06-14)
 
 
 So, I guess you could try what I'm doing -- although all I'm doing
 differently is simplifying the muttrc and fancying up the from variable.
 One thing you could look at is your system muttrc file.  Some trouble
 spots might be:
 
 envelope_from_address
 use_envelope_from
 from
 use_from
 realname
 
 The system muttrc file can be disabled by using '-n'.  You could try that
 first to eliminate it entirely.
 
 
 -- 
 Monte


Re: send using command-line changes From header

2009-12-01 Thread Wayne Richards
I eliminated the spaces, yet still get the same result (the command-line method
doesn't get the proper From value).  Any other thoughts?

Wayne
On Wed, Nov 25, 2009 at 01:07:37PM -0600, Wayne Richards wrote:
 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


My first thought is that you have spaces on either side of the equals
sign in your first -e argument.


-- 
Monte


Re: send using command-line changes From header

2009-11-25 Thread Monte Stevens
On Wed, Nov 25, 2009 at 01:07:37PM -0600, Wayne Richards wrote:
 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


My first thought is that you have spaces on either side of the equals
sign in your first -e argument.


-- 
Monte