from bytes

This commit is contained in:
Antonio J. Delgado 2025-03-27 07:26:21 +02:00
parent 402c43e54f
commit 776f8f4956

View file

@ -174,7 +174,7 @@ class BackupImap:
return False
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, ""))
result = []
for raw_header_data in decoded_header: