fix parsing incoming mails when no charset is supplied
This commit is contained in:
parent
4926ac6ae2
commit
f5cf4795eb
1 changed files with 4 additions and 1 deletions
|
|
@ -147,7 +147,10 @@ class Monboob(ReplApplication):
|
|||
charsets = part.get_charsets() + msg.get_charsets()
|
||||
for charset in charsets:
|
||||
try:
|
||||
if charset is not None:
|
||||
content += unicode(s, charset)
|
||||
else:
|
||||
content += unicode(s)
|
||||
except:
|
||||
continue
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue