diff options
author | Thorsten Behrens <thb@documentfoundation.org> | 2013-12-11 00:21:06 +0100 |
---|---|---|
committer | Thorsten Behrens <thb@documentfoundation.org> | 2013-12-11 00:21:06 +0100 |
commit | 32a715e199e6021a3c706f95fb008bd7a87f1421 (patch) | |
tree | 2a7ff9c106e2675d51fc290d9376a9db7b2984cd | |
parent | 5197a78305a8cf64fa0cdbd396bd3dbd2bc79b78 (diff) |
Add Date: header to token emails.
That _really_ helps to get spam scores down...
-rwxr-xr-x | bin/mail-instructions.py | 2 |
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() |