mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 16:13:41 +00:00
Fix #1898 : Email notifications do not include date/time they were sent
This commit is contained in:
parent
1c8327034d
commit
1a8aa4b920
@ -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())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user