summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <thb@documentfoundation.org>2013-12-11 00:21:06 +0100
committerThorsten Behrens <thb@documentfoundation.org>2013-12-11 00:21:06 +0100
commit32a715e199e6021a3c706f95fb008bd7a87f1421 (patch)
tree2a7ff9c106e2675d51fc290d9376a9db7b2984cd
parent5197a78305a8cf64fa0cdbd396bd3dbd2bc79b78 (diff)
Add Date: header to token emails.
That _really_ helps to get spam scores down...
-rwxr-xr-xbin/mail-instructions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/mail-instructions.py b/bin/mail-instructions.py
index fe8bcfd..a677cad 100755
--- a/bin/mail-instructions.py
+++ b/bin/mail-instructions.py
@@ -35,6 +35,7 @@ import string
import re
import getpass
import socket
+import datetime
try:
from email.mime.text import MIMEText
from email.mime.nonmultipart import MIMENonMultipart
@@ -90,6 +91,7 @@ def email_it(recipients_file, instructions_file):
msg['From'] = from_mail
msg['Reply-To'] = mc_mail
msg['Errors-To'] = from_mail
+ msg['Date'] = datetime.datetime.now().strftime( "%a, %d %b %Y %H:%M:%S +0000 (UTC)" )
msg['Subject'] = subject_header
msgstr = msg.as_string()