Make elog mail module always set the 'From' header for rfc2822 compliance. This...
authorZac Medico <zmedico@gentoo.org>
Wed, 21 Jun 2006 01:31:54 +0000 (01:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 21 Jun 2006 01:31:54 +0000 (01:31 -0000)
svn path=/main/branches/2.1/; revision=3552

pym/elog_modules/mod_mail.py

index 68771ba516b90068c6680dc741a9ec9a0e38816d..cc67015f7ca761449e47322dd0033b4f034651c7 100644 (file)
@@ -37,6 +37,7 @@ def process(mysettings, cpv, logentries, fulltext):
                mymessage.set_unixfrom(myfrom)
                mymessage.set_payload(fulltext)
                mymessage["To"] = myrecipient
+               mymessage["From"] = myfrom
                
                mysubject = mysettings["PORTAGE_ELOG_MAILSUBJECT"]
                mysubject = mysubject.replace("${PACKAGE}", cpv)