X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/b273058b341903372bdebe67d2960e4f8d2d8689..8b65d4dd61751329a50cddcee9d4a082700d4ed2:/test/confs/4002 diff --git a/test/confs/4002 b/test/confs/4002 index cf124eccf..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> @@ -46,7 +56,8 @@ begin transports t1: driver = appendfile - file = DIR/test-mail/${bless:$local_part} + file = DIR/test-mail/$local_part + create_file = DIR/test-mail user = CALLER