From 8d12ac008514e581df5e6aeaf2c44f87831f48f7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 21 Jun 2006 01:31:54 +0000 Subject: [PATCH] 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 --- pym/elog_modules/mod_mail.py | 1 + 1 file changed, 1 insertion(+) 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) -- 2.26.2