mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix #1898 : Email notifications do not include date/time they were sent
This commit is contained in:
parent
1c8327034d
commit
1a8aa4b920
1 changed files with 4 additions and 1 deletions
|
@ -38,6 +38,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
import smtplib
|
import smtplib
|
||||||
|
from email.utils import formatdate
|
||||||
from twisted.internet import defer, threads
|
from twisted.internet import defer, threads
|
||||||
from deluge import component
|
from deluge import component
|
||||||
from deluge.event import known_events
|
from deluge.event import known_events
|
||||||
|
@ -121,7 +122,9 @@ Subject: %(subject)s
|
||||||
|
|
||||||
""" % {'smtp_from': self.config['smtp_from'],
|
""" % {'smtp_from': self.config['smtp_from'],
|
||||||
'subject': subject,
|
'subject': subject,
|
||||||
'smtp_recipients': to_addrs_str}
|
'smtp_recipients': to_addrs_str,
|
||||||
|
'date': formatdate()
|
||||||
|
}
|
||||||
|
|
||||||
message = '\r\n'.join((headers + message).splitlines())
|
message = '\r\n'.join((headers + message).splitlines())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue