from bytes
This commit is contained in:
parent
402c43e54f
commit
776f8f4956
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class BackupImap:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _get_mail_header(self, header, data):
|
def _get_mail_header(self, header, data):
|
||||||
message = email.message_from_string(data)
|
message = email.message_from_bytes(data)
|
||||||
decoded_header = email.header.decode_header(message.get(header, ""))
|
decoded_header = email.header.decode_header(message.get(header, ""))
|
||||||
result = []
|
result = []
|
||||||
for raw_header_data in decoded_header:
|
for raw_header_data in decoded_header:
|
||||||
|
|
Loading…
Reference in a new issue