add more debug
This commit is contained in:
parent
820d0242e2
commit
19423232e8
1 changed files with 4 additions and 0 deletions
|
@ -211,6 +211,10 @@ class ImapFilter:
|
|||
part = str(data[1])
|
||||
message = email.message_from_string(part)
|
||||
decoded_field = email.header.decode_header(message.get(mfilter['field'], ""))
|
||||
self._log.debug(
|
||||
"Decoded field: %s",
|
||||
decoded_field
|
||||
)
|
||||
if isinstance(decoded_field[0][0], str):
|
||||
field_data = decoded_field[0][0]
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue