Rename header
This commit is contained in:
parent
d53ea381a0
commit
cdea0f5ee2
|
@ -12,7 +12,7 @@ CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding"
|
||||||
MIME_VERSION = "Mime-Version"
|
MIME_VERSION = "Mime-Version"
|
||||||
REPLY_TO = "Reply-To"
|
REPLY_TO = "Reply-To"
|
||||||
RECEIVED = "Received"
|
RECEIVED = "Received"
|
||||||
RSPAM_QUEUE_ID = "X-Rspamd-Queue-Id"
|
RSPAMD_QUEUE_ID = "X-Rspamd-Queue-Id"
|
||||||
SPAMD_RESULT = "X-Spamd-Result"
|
SPAMD_RESULT = "X-Spamd-Result"
|
||||||
CC = "Cc"
|
CC = "Cc"
|
||||||
DKIM_SIGNATURE = "DKIM-Signature"
|
DKIM_SIGNATURE = "DKIM-Signature"
|
||||||
|
|
|
@ -1369,7 +1369,7 @@ def sl_sendmail(
|
||||||
|
|
||||||
def get_queue_id(msg: Message) -> Optional[str]:
|
def get_queue_id(msg: Message) -> Optional[str]:
|
||||||
"""Get the Postfix queue-id from a message"""
|
"""Get the Postfix queue-id from a message"""
|
||||||
header_values = msg.get_all(headers.RSPAM_QUEUE_ID)
|
header_values = msg.get_all(headers.RSPAMD_QUEUE_ID)
|
||||||
if header_values:
|
if header_values:
|
||||||
# Get last in case somebody tries to inject a header
|
# Get last in case somebody tries to inject a header
|
||||||
return header_values[-1]
|
return header_values[-1]
|
||||||
|
|
Loading…
Reference in a new issue