Use header

This commit is contained in:
Adrià Casajús 2022-05-13 19:18:20 +02:00
parent 64c67f4429
commit 3578c61366
No known key found for this signature in database
GPG Key ID: F0033226A5AFC9B9
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ class ProviderComplaintHotmail(ProviderComplaintOrigin):
Try to get the proper recipient from original x-simplelogin-envelope-to header we add on delivery.
If we can't find the header, use the first address in the original message from"""
original = cls.get_original_message(message)
rcpt_header = original["x-simplelogin-envelope-to"]
rcpt_header = original[headers.SL_ENVELOPE_TO]
return cls.sanitize_addresses_and_extract_mailbox_id(rcpt_header, original)
@classmethod