aboutsummaryrefslogtreecommitdiff
path: root/jobs/EmailChecker.py
diff options
context:
space:
mode:
authorTom Ritter <tom@ritter.vg>2016-01-28 10:27:36 -0500
committerTom Ritter <tom@ritter.vg>2016-01-28 10:27:36 -0500
commit1a8b46d940d3a4bc06700d15307191bb10008ea6 (patch)
tree8c4eead80ffc5e945d9625ce15bc50969d100789 /jobs/EmailChecker.py
parent1516bb8fe35db2f802519a9c13915d2ddadf174e (diff)
For getting boolean values I need to coerce the type
Diffstat (limited to 'jobs/EmailChecker.py')
-rwxr-xr-xjobs/EmailChecker.py2
1 files changed, 1 insertions, 1 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")