aboutsummaryrefslogtreecommitdiff
path: root/jobs/JobBase.py
diff options
context:
space:
mode:
authorTom Ritter <tom@ritter.vg>2016-01-28 10:15:29 -0500
committerTom Ritter <tom@ritter.vg>2016-01-28 10:15:29 -0500
commit1516bb8fe35db2f802519a9c13915d2ddadf174e (patch)
tree279d34c87d1b525751471131c8e06a47cca2edf1 /jobs/JobBase.py
parentf71a7cf525c53f31c82477aea89a5db92ecfb5ea (diff)
Add an option to use or bust gmail threading
Diffstat (limited to 'jobs/JobBase.py')
-rwxr-xr-xjobs/JobBase.py4
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: