convert to string
This commit is contained in:
parent
ab56c33c27
commit
a9faa5a3c2
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class ImapFilter:
|
|||
try:
|
||||
part = data[1].decode('utf-8')
|
||||
except UnicodeDecodeError:
|
||||
part = data[1]
|
||||
part = str(data[1])
|
||||
message = email.message_from_string(part)
|
||||
decoded_field = email.header.decode_header(message.get(mfilter['field'], ""))
|
||||
if isinstance(decoded_field[0][0], str):
|
||||
|
|
Loading…
Reference in a new issue