Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit ac81aa8

Browse files
authored
Merge pull request #95 from i404788/patch-1
Fix autoreply when no Message-ID header is found
2 parents 2ba4692 + 0ac0a02 commit ac81aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modoboa_postfix_autoreply/management/commands/autoreply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def send_autoreply(sender, mailbox, armessage, original_msg):
8282
"Auto-Submitted": "auto-replied",
8383
"Precedence": "bulk"
8484
}
85-
message_id = original_msg.get("Message-ID").strip("\n")
85+
message_id = original_msg.get("Message-ID","").strip("\n")
8686
if message_id:
8787
headers.update({"In-Reply-To": message_id, "References": message_id})
8888

0 commit comments

Comments
 (0)