From 170dd84e7fe84ba0d364d5a6277454fa3de61bb6 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 21 Jul 2022 17:22:15 +0200 Subject: 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. --- jobs/JobBase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) -- cgit v1.2.3