From 1516bb8fe35db2f802519a9c13915d2ddadf174e Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Thu, 28 Jan 2016 10:15:29 -0500 Subject: Add an option to use or bust gmail threading --- jobs/JobBase.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jobs') 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: -- cgit v1.2.3