stupid fix to prevent crash (refs #542)
This commit is contained in:
parent
062ca00963
commit
8aa3cfa4e1
1 changed files with 3 additions and 0 deletions
|
|
@ -266,6 +266,9 @@ class Monboob(ReplApplication):
|
||||||
body = mail.content
|
body = mail.content
|
||||||
content_type = 'plain'
|
content_type = 'plain'
|
||||||
|
|
||||||
|
if body is None:
|
||||||
|
body = ''
|
||||||
|
|
||||||
if mail.signature:
|
if mail.signature:
|
||||||
if int(self.config.get('html')) and mail.flags & mail.IS_HTML:
|
if int(self.config.get('html')) and mail.flags & mail.IS_HTML:
|
||||||
body += u'<p>-- <br />%s</p>' % mail.signature
|
body += u'<p>-- <br />%s</p>' % mail.signature
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue