Skip to content

Fix subject_regex to also match German "AW:" reply prefix#897

Open
kleinski wants to merge 1 commit intoCheckmk:masterfrom
iteratio-com:check_mail_loop_aw_fix
Open

Fix subject_regex to also match German "AW:" reply prefix#897
kleinski wants to merge 1 commit intoCheckmk:masterfrom
iteratio-com:check_mail_loop_aw_fix

Conversation

@kleinski
Copy link
Contributor

@kleinski kleinski commented Mar 6, 2026

Problem

The subject_regex function does not account for the German Outlook reply
prefix "AW:" (short for "Antwort:"), which is the German equivalent of
"RE:". The upstream version of this file already includes "aw:" in the
regex pattern, but the local version is missing it.

If a mail server or gateway prepends "AW:" to the subject of a loop mail,
the message will not be recognized as a valid roundtrip mail. This results
in the mail being treated as lost and a false CRITICAL alert being raised.

Fix

Add "aw: " as an alternative prefix to the subject regex, consistent with
the already handled "re: " and "wg: " prefixes.

Notes

  • "wg:" is the German prefix for forwarded mails ("Weitergeleitet:")
  • "aw:" is the German prefix for replies ("Antwort:")
  • The fix is consistent with the upstream Checkmk implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants