From: Zac Medico Date: Wed, 21 Jun 2006 01:31:54 +0000 (-0000) Subject: Make elog mail module always set the 'From' header for rfc2822 compliance. This... X-Git-Tag: v2.1-r1~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8d12ac008514e581df5e6aeaf2c44f87831f48f7;p=portage.git Make elog mail module always set the 'From' header for rfc2822 compliance. This patch is from trunk r3483. svn path=/main/branches/2.1/; revision=3552 --- diff --git a/pym/elog_modules/mod_mail.py b/pym/elog_modules/mod_mail.py index 68771ba51..cc67015f7 100644 --- a/pym/elog_modules/mod_mail.py +++ b/pym/elog_modules/mod_mail.py @@ -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)