diff options
-rw-r--r-- | pym/elog_modules/mod_mail.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/elog_modules/mod_mail.py b/pym/elog_modules/mod_mail.py index cc67015f7..e9863e6c9 100644 --- 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) |