aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'jobs')
-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: