projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2120567
)
Add date header for rfc2822 compliance. This patch is from trunk r3497.
author
Zac Medico
<zmedico@gentoo.org>
Wed, 21 Jun 2006 03:04:25 +0000
(
03:04
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 21 Jun 2006 03:04:25 +0000
(
03:04
-0000)
svn path=/main/branches/2.1/; revision=3573
pym/elog_modules/mod_mail.py
patch
|
blob
|
history
diff --git
a/pym/elog_modules/mod_mail.py
b/pym/elog_modules/mod_mail.py
index cc67015f7ca761449e47322dd0033b4f034651c7..e9863e6c949058c1e30ccec25afa5244dd314ee8 100644
(file)
--- a/
pym/elog_modules/mod_mail.py
+++ b/
pym/elog_modules/mod_mail.py
@@
-1,4
+1,4
@@
-import smtplib, email.Message, socket, portage_exception
+import smtplib, email.Message, socket,
time,
portage_exception
def process(mysettings, cpv, logentries, fulltext):
mymailhost = "localhost"
@@
-44,6
+44,7
@@
def process(mysettings, cpv, logentries, fulltext):
mysubject = mysubject.replace("${HOST}", socket.getfqdn())
mymessage["Subject"] = mysubject
+ mymessage["Date"] = time.strftime("%a, %d %b %Y %H:%M:%S %z")
if int(mymailport) > 100000:
myconn = smtplib.SMTP(mymailhost, int(mymailport) - 100000)