fix read of 'html' config value (cast it to integer)

This commit is contained in:
Romain Bignon 2010-04-20 18:09:00 +02:00
commit 3d4e9f2bb1

View file

@ -125,7 +125,7 @@ class Monboob(ConsoleApplication):
content_type = 'plain'
if mail.get_signature():
if (self.config.get('html')) and mail.is_html:
if int(self.config.get('html')) and mail.is_html:
body += u'<p>-- <br />%s</p>' % mail.get_signature()
else:
body += u'\n\n-- \n'