aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-07-21 17:22:15 +0200
committerLinus Nordberg <linus@nordberg.se>2022-07-22 07:42:09 +0200
commit170dd84e7fe84ba0d364d5a6277454fa3de61bb6 (patch)
tree2561650ae9e81dcbf8ffbb67793fc435c36be5c9 /jobs
parentd7cc4c8089254fa22ea8ff7e256cfdeae82c868d (diff)
Remove spurious backslash in message
I'm not sure if the initial backslash in '\From:' was on purpose or not, but removing it makes at least my MUA a lot happier.
Diffstat (limited to 'jobs')
-rwxr-xr-xjobs/JobBase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jobs/JobBase.py b/jobs/JobBase.py
index ac0b793..8763126 100755
--- a/jobs/JobBase.py
+++ b/jobs/JobBase.py
@@ -160,7 +160,7 @@ def sendEmail(config, subject, body, to=""):
subject = "[" + config.get('general', 'servername') + "] " + subject + " "
if config.getboolean('email', 'bustgmailthreading'):
subject += str(random.random())
- message = """\From: %s\nTo: %s\nSubject: %s\n\n%s""" \
+ message = """From: %s\nTo: %s\nSubject: %s\n\n%s""" \
% (FROM, ", ".join(to), subject, body)
server = smtplib.SMTP(config.get('email', 'smtpserver'), config.get('email', 'smtpport'))