X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/1072af868662ea8fec30454c2d62afdee24f2c8e..4e9ed49f8f12eb331b29bd5b6dc3693c520fddc2:/test/confs/4002 diff --git a/test/confs/4002 b/test/confs/4002 index d9a12a368..4578cc019 100644 --- a/test/confs/4002 +++ b/test/confs/4002 @@ -10,6 +10,7 @@ rfc1413_query_timeout = 0s acl_smtp_rcpt = check_rcpt acl_smtp_data = check_data +acl_smtp_mime = check_mime acl_not_smtp = check_data @@ -20,6 +21,15 @@ begin acl check_rcpt: accept +check_mime: + warn condition = ${if match{$mime_content_type}{text}} + mime_regex = \N(?s)([\w.+=-]+@\w[\w-]*\.[\w.-]+\w)\ + (.+?([\w.+=-]+@\w[\w-]*\.[\w.-]+\w))?\ + (.+?([\w.+=-]+@\w[\w-]*\.[\w.-]+\w))?\ + (.+?([\w.+=-]+@\w[\w-]*\.[\w.-]+\w))?\ + (.+?([\w.+=-]+@\w[\w-]*\.[\w.-]+\w))?\N + accept + check_data: warn regex = \N(THIS\s((\w+)\s)?REGEX)\N message = X-Regex: Regex matched <$regex1> <$regex3>