diff options
author | Tom Ritter <tom@ritter.vg> | 2016-01-28 10:15:29 -0500 |
---|---|---|
committer | Tom Ritter <tom@ritter.vg> | 2016-01-28 10:15:29 -0500 |
commit | 1516bb8fe35db2f802519a9c13915d2ddadf174e (patch) | |
tree | 279d34c87d1b525751471131c8e06a47cca2edf1 /jobs/JobBase.py | |
parent | f71a7cf525c53f31c82477aea89a5db92ecfb5ea (diff) |
Add an option to use or bust gmail threading
Diffstat (limited to 'jobs/JobBase.py')
-rwxr-xr-x | jobs/JobBase.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jobs/JobBase.py b/jobs/JobBase.py index 8ecdef4..cdb835d 100755 --- a/jobs/JobBase.py +++ b/jobs/JobBase.py @@ -40,7 +40,9 @@ def sendEmail(config, subject, body, to=""): # Prepare actual message # Avoid gmail threading - subject = "[" + config.get('general', 'servername') + "] " + subject + " " + str(random.random()) + subject = "[" + config.get('general', 'servername') + "] " + subject + " " + if config.get('email', 'bustgmailthreading'): + subject += str(random.random()) message = """\From: %s\nTo: %s\nSubject: %s\n\n%s""" \ % (FROM, ", ".join(to), subject, body) try: |