Skip to content

Commit

Permalink
Merge pull request #95 from i404788/patch-1
Browse files Browse the repository at this point in the history
Fix autoreply when no Message-ID header is found
  • Loading branch information
tonioo authored Jan 24, 2023
2 parents 2ba4692 + 0ac0a02 commit ac81aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modoboa_postfix_autoreply/management/commands/autoreply.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def send_autoreply(sender, mailbox, armessage, original_msg):
"Auto-Submitted": "auto-replied",
"Precedence": "bulk"
}
message_id = original_msg.get("Message-ID").strip("\n")
message_id = original_msg.get("Message-ID","").strip("\n")
if message_id:
headers.update({"In-Reply-To": message_id, "References": message_id})

Expand Down

0 comments on commit ac81aa8

Please sign in to comment.