LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   mutt does not honour mutt.rc 'use_from' entry when accepting piped input (http://www.linuxquestions.org/questions/linux-software-2/mutt-does-not-honour-mutt-rc-use_from-entry-when-accepting-piped-input-947182/)

davidchall 05-28-2012 02:13 AM

mutt does not honour mutt.rc 'use_from' entry when accepting piped input
 
When running run from a shell, and redirecting output to it:
Quote:

testuser@foo.com:~/> cat body.txt |mutt -F test.muttrc -s 'Mutt Pipe Test' dave@foo.com
or
Quote:

mutt -F test.muttrc -s 'Mutt Pipe Test' dave@foo.com < body.txt

The email comes from testuser@foo.com, even though test.muttrc has 'set from="gavinc@foo.com"' as a parameter.

If I process the mail manually, inserting the text file rather than piping it in:
Quote:

testuser@foo.com:~/> mutt -F test.muttrc -s 'Mutt Editor Test' -i body.txt dave@foo.com
The mutt application runs, parsing the parameters correctly, and displaying the header correctly:
Quote:

From: Gavin <foo.com>
To: dave@foo.com
Cc:
Bcc:
Subject: Mutt Pipe Test
Reply-To:
Fcc: ~/sent
Security: Clear
The mail is then received from gavinc@foo.com as expected.

Basically, Mutt appears to be functioning differently using redirected input, than if used as a mail client.

This is not the case on other servers I have worked on, but I am unable to correct this on this particular environment.

Suse Linux Enterprise Server 11 SP1
mutt v1.5.17

Rather than post the contents of every config I have played with and failed to change, if you have any ideas, please let me know what sections of what configs you'd like to see?

I'd appreciate any efforts to help me hold onto the bits of hair I haven't yet pulled out working through this issue!

(As background, the need for this to work is we have database users emailing from a program, and use temporary mutt.rc files to send mail from these users. They do not have shell logins)


All times are GMT -5. The time now is 11:44 PM.