fix "Received" header is not str

This commit is contained in:
Son 2021-06-17 23:02:25 +02:00
parent 3e1f098c79
commit 93991816c9
1 changed files with 1 additions and 1 deletions

View File

@ -1202,7 +1202,7 @@ def sl_sendmail(
def get_queue_id(msg: Message) -> Optional[str]:
"""Get the Postfix queue-id from a message"""
received_header = msg["Received"]
received_header = str(msg["Received"])
if not received_header:
return