From cb2954692e61dd41c2233bf69c6f3ed910d863e0 Mon Sep 17 00:00:00 2001 From: kleinski Date: Fri, 6 Mar 2026 14:17:11 +0100 Subject: [PATCH] Fix subject_regex to also match German "AW:" reply prefix --- cmk/plugins/emailchecks/lib/check_mail_loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmk/plugins/emailchecks/lib/check_mail_loop.py b/cmk/plugins/emailchecks/lib/check_mail_loop.py index 0d177165b79..407b9571df5 100644 --- a/cmk/plugins/emailchecks/lib/check_mail_loop.py +++ b/cmk/plugins/emailchecks/lib/check_mail_loop.py @@ -228,7 +228,7 @@ def check_mails( def subject_regex(subject: str) -> re.Pattern: """Returns regex used for subject matching - extra function for testability""" - return re.compile(rf"(?i)(?:re: |wg: )?{subject} ([0-9]+) ([0-9]+)") + return re.compile(rf"(?i)(?:re: |wg: |aw: )?{subject} ([0-9]+) ([0-9]+)") def check_mail_roundtrip(args: Args) -> CheckResult: