summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Algarvio <ufs@ufsoft.org>2011-04-14 09:29:40 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2011-11-30 00:05:13 +0000
commit1a8aa4b9202cf5421cc52f3c73b4fa6f75819016 (patch)
treed6ff917db27d23eec6dde371a97e030bb5a9bb7f
parent1c8327034d4904ef61466850c2e87cb94203d411 (diff)
downloaddeluge-1a8aa4b9202cf5421cc52f3c73b4fa6f75819016.zip
deluge-1a8aa4b9202cf5421cc52f3c73b4fa6f75819016.tar.gz
deluge-1a8aa4b9202cf5421cc52f3c73b4fa6f75819016.tar.bz2
Fix #1898 : Email notifications do not include date/time they were sent
-rw-r--r--deluge/plugins/notifications/notifications/core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/deluge/plugins/notifications/notifications/core.py b/deluge/plugins/notifications/notifications/core.py
index 4e01e00..a672f0c 100644
--- a/deluge/plugins/notifications/notifications/core.py
+++ b/deluge/plugins/notifications/notifications/core.py
@@ -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())