diff options
-rwxr-xr-x | jobs/EmailChecker.py | 2 | ||||
-rwxr-xr-x | jobs/JobBase.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/jobs/EmailChecker.py b/jobs/EmailChecker.py index 7c61f01..925e0db 100755 --- a/jobs/EmailChecker.py +++ b/jobs/EmailChecker.py @@ -29,7 +29,7 @@ class EmailChecker(JobBase.JobBase): M.login(USER, PASS) #If we have set up a filter to auto-delete messages from ourself - if self.config.get('email', 'ideletesentmessagesautomatically'): + if self.config.getboolean('email', 'ideletesentmessagesautomatically'): logdetails += "Switching to trash\n" M.select("[Gmail]/Trash") diff --git a/jobs/JobBase.py b/jobs/JobBase.py index cdb835d..a7f02c9 100755 --- a/jobs/JobBase.py +++ b/jobs/JobBase.py @@ -41,7 +41,7 @@ def sendEmail(config, subject, body, to=""): # Prepare actual message # Avoid gmail threading subject = "[" + config.get('general', 'servername') + "] " + subject + " " - if config.get('email', 'bustgmailthreading'): + if config.getboolean('email', 'bustgmailthreading'): subject += str(random.random()) message = """\From: %s\nTo: %s\nSubject: %s\n\n%s""" \ % (FROM, ", ".join(to), subject, body) |