diff --git a/scripts/monboob b/scripts/monboob index 8f3bc29e320788af3d302d7b6d4a72830b002e3c..1351b2192d080a07e893053065ab2b6cf60db1de 100755 --- a/scripts/monboob +++ b/scripts/monboob @@ -39,7 +39,7 @@ class Monboob(ConsoleApplication): 'domain': 'weboob.example.org', 'recipient': 'weboob@example.org', 'smtp': 'localhost', - 'html': False} + 'html': 0} def main(self, argv): self.load_config() @@ -92,7 +92,7 @@ class Monboob(ConsoleApplication): @ConsoleApplication.command("run daemon") def command_run(self): - self.weboob.repeat(self.config.get('interval'), self.process) + self.weboob.repeat(int(self.config.get('interval')), self.process) self.weboob.loop() def process(self): @@ -114,7 +114,7 @@ class Monboob(ConsoleApplication): date = time.strftime('%a, %d %b %Y %H:%M:%S +0000', mail.get_date().timetuple()) msg_id = u'<%s.%s@%s>' % (backend.name, mail.get_full_id(), domain) - if self.config.get('html') and mail.is_html: + if int(self.config.get('html')) and mail.is_html: body = mail.get_content() content_type = 'html' else: @@ -125,7 +125,7 @@ class Monboob(ConsoleApplication): content_type = 'plain' if mail.get_signature(): - if self.config.get('html') and mail.is_html: + if (self.config.get('html')) and mail.is_html: body += u'

--
%s

' % mail.get_signature() else: body += u'\n\n-- \n'