changeset 10326 | 03d98646d57c |
parent 9362 | 2f0129d17fa9 |
child 10701 | ca3efd72e854 |
--- a/mail.py Wed Apr 01 15:06:45 2015 +0200 +++ b/mail.py Tue Apr 21 17:12:36 2015 +0200 @@ -25,6 +25,7 @@ from email.mime.text import MIMEText from email.mime.image import MIMEImage from email.header import Header +from email.utils import formatdate from socket import gethostname def header(ustring): @@ -110,6 +111,7 @@ msg['Message-id'] = msgid if references: msg['References'] = ', '.join(references) + msg['Date'] = formatdate() return msg