diff options
author | Linus Nordberg <linus@nordberg.se> | 2022-07-21 17:22:15 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2022-07-22 07:42:09 +0200 |
commit | 170dd84e7fe84ba0d364d5a6277454fa3de61bb6 (patch) | |
tree | 2561650ae9e81dcbf8ffbb67793fc435c36be5c9 | |
parent | d7cc4c8089254fa22ea8ff7e256cfdeae82c868d (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.
-rwxr-xr-x | jobs/JobBase.py | 2 |
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')) |