Fix #1898 : Email notifications do not include date/time they were sent

This commit is contained in:
Pedro Algarvio 2011-04-14 09:29:40 +01:00 committed by Calum Lind
parent 1c8327034d
commit 1a8aa4b920

View File

@ -38,6 +38,7 @@
#
import smtplib
from email.utils import formatdate
from twisted.internet import defer, threads
from deluge import component
from deluge.event import known_events
@ -121,7 +122,9 @@ Subject: %(subject)s
""" % {'smtp_from': self.config['smtp_from'],
'subject': subject,
'smtp_recipients': to_addrs_str}
'smtp_recipients': to_addrs_str,
'date': formatdate()
}
message = '\r\n'.join((headers + message).splitlines())