Skip to content

Commit cb29546

Browse files
committed
Fix subject_regex to also match German "AW:" reply prefix
1 parent 4126237 commit cb29546

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmk/plugins/emailchecks/lib/check_mail_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def check_mails(
228228

229229
def subject_regex(subject: str) -> re.Pattern:
230230
"""Returns regex used for subject matching - extra function for testability"""
231-
return re.compile(rf"(?i)(?:re: |wg: )?{subject} ([0-9]+) ([0-9]+)")
231+
return re.compile(rf"(?i)(?:re: |wg: |aw: )?{subject} ([0-9]+) ([0-9]+)")
232232

233233

234234
def check_mail_roundtrip(args: Args) -> CheckResult:

0 commit comments

Comments
 (0)