Debug: quieten environment-cleaning
[exim.git] / test / stderr / 0304
index 3760ef7f4b33769adf7880b9e9b4f3347258f6af..159c875a1d4e3ca2d386daf500fcf35f0a5cac5b 100644 (file)
@@ -6,47 +6,77 @@
 >>> host in helo_verify_hosts? no (option unset)
 >>> host in helo_try_verify_hosts? no (option unset)
 >>> host in helo_accept_junk_hosts? no (option unset)
+>>> host in pipelining_connect_advertise_hosts?
+>>>  list element: 
+>>> test in helo_lookup_domains?
+>>>  list element: @
+>>>  list element: @[]
 >>> test in helo_lookup_domains? no (end of list)
 >>> using ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> b1@x in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> b1@x in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> b1@x in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> b1@x in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> b1@x in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> b1@x in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> x in "domain.only"? no (end of list)
->>> x in "*.domain2.only"? no (end of list)
+>>> b1@x in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  x in "domain.only"?
+>>>   list element: domain.only
+>>>  x in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  x in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  x in "*.domain2.only"? no (end of list)
 >>> b1@x in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> b1@x in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> b1@x in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> b1@x in "pqr@@"?
+>>>  list element: pqr@@
 >>> b1@x in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>>  in ":"? yes (matched "")
+>>>  in ":"?
+>>>  list element: 
+>>>   in ":"? yes (matched "")
 >>> check recipients = b1@x
->>> x in "x"? yes (matched "x")
->>> b1@x in "b1@x"? yes (matched "b1@x")
+>>> b1@x in "b1@x"?
+>>>  list element: b1@x
+>>>  x in "x"?
+>>>   list element: x
+>>>   x in "x"? yes (matched "x")
+>>>  b1@x in "b1@x"? yes (matched "b1@x")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<> rejected RCPT <b1@x>: failed 7
@@ -54,49 +84,78 @@ LOG: H=(test) [1.2.3.4] F=<> rejected RCPT <b1@x>: failed 7
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> b2@x in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> b2@x in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> b2@x in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> b2@x in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> b2@x in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> b2@x in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> x in "domain.only"? no (end of list)
->>> x in "*.domain2.only"? no (end of list)
+>>> b2@x in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  x in "domain.only"?
+>>>   list element: domain.only
+>>>  x in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  x in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  x in "*.domain2.only"? no (end of list)
 >>> b2@x in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> b2@x in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> b2@x in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> b2@x in "pqr@@"?
+>>>  list element: pqr@@
 >>> b2@x in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>>  in ":"? yes (matched "")
+>>>  in ":"?
+>>>  list element: 
+>>>   in ":"? yes (matched "")
 >>> check recipients = b1@x
+>>> b2@x in "b1@x"?
+>>>  list element: b1@x
 >>> b2@x in "b1@x"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
->>>  in "^$"? yes (matched "^$")
+>>>  in "^$"?
+>>>  list element: ^$
+>>>   in "^$"? yes (matched "^$")
 >>> check recipients = b2@x
->>> x in "x"? yes (matched "x")
->>> b2@x in "b2@x"? yes (matched "b2@x")
+>>> b2@x in "b2@x"?
+>>>  list element: b2@x
+>>>  x in "x"?
+>>>   list element: x
+>>>   x in "x"? yes (matched "x")
+>>>  b2@x in "b2@x"? yes (matched "b2@x")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<> rejected RCPT <b2@x>: failed 8
@@ -104,63 +163,98 @@ LOG: H=(test) [1.2.3.4] F=<> rejected RCPT <b2@x>: failed 8
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> b9@x in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> b9@x in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> b9@x in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> b9@x in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> b9@x in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> b9@x in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> x in "domain.only"? no (end of list)
->>> x in "*.domain2.only"? no (end of list)
+>>> b9@x in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  x in "domain.only"?
+>>>   list element: domain.only
+>>>  x in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  x in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  x in "*.domain2.only"? no (end of list)
 >>> b9@x in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> b9@x in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> b9@x in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> b9@x in "pqr@@"?
+>>>  list element: pqr@@
 >>> b9@x in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>>  in ":"? yes (matched "")
+>>>  in ":"?
+>>>  list element: 
+>>>   in ":"? yes (matched "")
 >>> check recipients = b1@x
+>>> b9@x in "b1@x"?
+>>>  list element: b1@x
 >>> b9@x in "b1@x"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
->>>  in "^$"? yes (matched "^$")
+>>>  in "^$"?
+>>>  list element: ^$
+>>>   in "^$"? yes (matched "^$")
 >>> check recipients = b2@x
+>>> b9@x in "b2@x"?
+>>>  list element: b2@x
 >>> b9@x in "b2@x"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> x in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> b9@x in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  x in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  x in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> b9@x in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>> b9@x in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
 >>> b9@x in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 48)
 >>>   message: failed 11
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d5
+>>> b9@x in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d5
 >>> b9@x in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "accept" (TESTSUITE/test-config 51)
@@ -170,7 +264,9 @@ LOG: H=(test) [1.2.3.4] F=<> rejected RCPT <b2@x>: failed 8
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
->>> abc@w.x.y.z in "^abc.*@.*\.x\.y\.z : a@b"? yes (matched "^abc.*@.*\.x\.y\.z")
+>>> abc@w.x.y.z in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  abc@w.x.y.z in "^abc.*@.*\.x\.y\.z : a@b"? yes (matched "^abc.*@.*\.x\.y\.z")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abc@w.x.y.z>: failed 1
@@ -178,7 +274,9 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abc@w.x.y.z>: failed 1
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
->>> abcdef@q.x.y.z in "^abc.*@.*\.x\.y\.z : a@b"? yes (matched "^abc.*@.*\.x\.y\.z")
+>>> abcdef@q.x.y.z in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  abcdef@q.x.y.z in "^abc.*@.*\.x\.y\.z : a@b"? yes (matched "^abc.*@.*\.x\.y\.z")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abcdef@q.x.y.z>: failed 1
@@ -186,8 +284,13 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abcdef@q.x.y.z>: failed 1
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
->>> b in "b"? yes (matched "b")
->>> a@b in "^abc.*@.*\.x\.y\.z : a@b"? yes (matched "a@b")
+>>> a@b in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
+>>>  b in "b"?
+>>>   list element: b
+>>>   b in "b"? yes (matched "b")
+>>>  a@b in "^abc.*@.*\.x\.y\.z : a@b"? yes (matched "a@b")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <a@b>: failed 1
@@ -195,60 +298,92 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <a@b>: failed 1
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> ok@ok in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> ok@ok in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> ok@ok in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> ok@ok in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> ok@ok in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> ok@ok in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> ok in "domain.only"? no (end of list)
->>> ok in "*.domain2.only"? no (end of list)
+>>> ok@ok in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  ok in "domain.only"?
+>>>   list element: domain.only
+>>>  ok in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  ok in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  ok in "*.domain2.only"? no (end of list)
 >>> ok@ok in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> ok@ok in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> ok@ok in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> ok@ok in "pqr@@"?
+>>>  list element: pqr@@
 >>> ok@ok in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> ok in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> ok@ok in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  ok in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  ok in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> ok@ok in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>> ok@ok in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
 >>> ok@ok in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 48)
 >>>   message: failed 11
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d5
+>>> ok@ok in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d5
 >>> ok@ok in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "accept" (TESTSUITE/test-config 51)
@@ -258,12 +393,17 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <a@b>: failed 1
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> x@a.b.c in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> x@a.b.c in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
->>> x@a.b.c in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? yes (matched "lsearch*@;TESTSUITE/aux-fixed/0304.d1")
+>>> x@a.b.c in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>>  x@a.b.c in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? yes (matched "lsearch*@;TESTSUITE/aux-fixed/0304.d1")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <x@a.b.c>: failed 2
@@ -271,12 +411,17 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <x@a.b.c>: failed 2
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> abc@d.e.f in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> abc@d.e.f in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
->>> abc@d.e.f in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? yes (matched "lsearch*@;TESTSUITE/aux-fixed/0304.d1")
+>>> abc@d.e.f in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>>  abc@d.e.f in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? yes (matched "lsearch*@;TESTSUITE/aux-fixed/0304.d1")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abc@d.e.f>: failed 2
@@ -284,60 +429,92 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abc@d.e.f>: failed 2
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> x@d.e.f in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> x@d.e.f in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> x@d.e.f in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> x@d.e.f in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> x@d.e.f in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> x@d.e.f in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> d.e.f in "domain.only"? no (end of list)
->>> d.e.f in "*.domain2.only"? no (end of list)
+>>> x@d.e.f in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  d.e.f in "domain.only"?
+>>>   list element: domain.only
+>>>  d.e.f in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  d.e.f in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  d.e.f in "*.domain2.only"? no (end of list)
 >>> x@d.e.f in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> x@d.e.f in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> x@d.e.f in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> x@d.e.f in "pqr@@"?
+>>>  list element: pqr@@
 >>> x@d.e.f in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> d.e.f in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> x@d.e.f in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  d.e.f in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  d.e.f in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> x@d.e.f in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>> x@d.e.f in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
 >>> x@d.e.f in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 48)
 >>>   message: failed 11
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d5
+>>> x@d.e.f in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d5
 >>> x@d.e.f in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "accept" (TESTSUITE/test-config 51)
@@ -347,17 +524,24 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abc@d.e.f>: failed 2
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> abc@at.1 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> abc@at.1 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> abc@at.1 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> abc@at.1 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
->>> abc@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? yes (matched "@@lsearch;TESTSUITE/aux-fixed/0304.d2")
+>>> abc@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>>  abc@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? yes (matched "@@lsearch;TESTSUITE/aux-fixed/0304.d2")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abc@at.1>: failed 3
@@ -365,17 +549,24 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abc@at.1>: failed 3
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> xyz@at.1 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> xyz@at.1 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> xyz@at.1 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> xyz@at.1 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
->>> xyz@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? yes (matched "@@lsearch;TESTSUITE/aux-fixed/0304.d2")
+>>> xyz@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>>  xyz@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? yes (matched "@@lsearch;TESTSUITE/aux-fixed/0304.d2")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <xyz@at.1>: failed 3
@@ -383,17 +574,24 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <xyz@at.1>: failed 3
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> abcxyz@at.1 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> abcxyz@at.1 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> abcxyz@at.1 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> abcxyz@at.1 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
->>> abcxyz@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? yes (matched "@@lsearch;TESTSUITE/aux-fixed/0304.d2")
+>>> abcxyz@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>>  abcxyz@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? yes (matched "@@lsearch;TESTSUITE/aux-fixed/0304.d2")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abcxyz@at.1>: failed 3
@@ -401,60 +599,92 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abcxyz@at.1>: failed 3
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> ok@at.1 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> ok@at.1 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> ok@at.1 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> ok@at.1 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> ok@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> ok@at.1 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> at.1 in "domain.only"? no (end of list)
->>> at.1 in "*.domain2.only"? no (end of list)
+>>> ok@at.1 in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  at.1 in "domain.only"?
+>>>   list element: domain.only
+>>>  at.1 in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  at.1 in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  at.1 in "*.domain2.only"? no (end of list)
 >>> ok@at.1 in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> ok@at.1 in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> ok@at.1 in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> ok@at.1 in "pqr@@"?
+>>>  list element: pqr@@
 >>> ok@at.1 in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> at.1 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> ok@at.1 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  at.1 in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  at.1 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> ok@at.1 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>> ok@at.1 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
 >>> ok@at.1 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 48)
 >>>   message: failed 11
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d5
+>>> ok@at.1 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d5
 >>> ok@at.1 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "accept" (TESTSUITE/test-config 51)
@@ -464,23 +694,34 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abcxyz@at.1>: failed 3
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> x@domain.only in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> x@domain.only in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> x@domain.only in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> x@domain.only in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> x@domain.only in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> x@domain.only in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> domain.only in "domain.only"? yes (matched "domain.only")
->>> x@domain.only in "domain.only : *.domain2.only"? yes (matched "domain.only")
+>>> x@domain.only in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  domain.only in "domain.only"?
+>>>   list element: domain.only
+>>>   domain.only in "domain.only"? yes (matched "domain.only")
+>>>  x@domain.only in "domain.only : *.domain2.only"? yes (matched "domain.only")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <x@domain.only>: failed 4
@@ -488,24 +729,38 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <x@domain.only>: failed 4
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> x@abc.domain2.only in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> x@abc.domain2.only in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> x@abc.domain2.only in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> x@abc.domain2.only in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> x@abc.domain2.only in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> x@abc.domain2.only in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> abc.domain2.only in "domain.only"? no (end of list)
->>> abc.domain2.only in "*.domain2.only"? yes (matched "*.domain2.only")
->>> x@abc.domain2.only in "domain.only : *.domain2.only"? yes (matched "*.domain2.only")
+>>> x@abc.domain2.only in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  abc.domain2.only in "domain.only"?
+>>>   list element: domain.only
+>>>  abc.domain2.only in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  abc.domain2.only in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>   abc.domain2.only in "*.domain2.only"? yes (matched "*.domain2.only")
+>>>  x@abc.domain2.only in "domain.only : *.domain2.only"? yes (matched "*.domain2.only")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <x@abc.domain2.only>: failed 4
@@ -513,60 +768,92 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <x@abc.domain2.only>: failed 4
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> x@domain2.only in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> x@domain2.only in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> x@domain2.only in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> x@domain2.only in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> x@domain2.only in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> x@domain2.only in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> domain2.only in "domain.only"? no (end of list)
->>> domain2.only in "*.domain2.only"? no (end of list)
+>>> x@domain2.only in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  domain2.only in "domain.only"?
+>>>   list element: domain.only
+>>>  domain2.only in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  domain2.only in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  domain2.only in "*.domain2.only"? no (end of list)
 >>> x@domain2.only in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> x@domain2.only in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> x@domain2.only in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> x@domain2.only in "pqr@@"?
+>>>  list element: pqr@@
 >>> x@domain2.only in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> domain2.only in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> x@domain2.only in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain2.only in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain2.only in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> x@domain2.only in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>> x@domain2.only in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
 >>> x@domain2.only in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 48)
 >>>   message: failed 11
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d5
+>>> x@domain2.only in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d5
 >>> x@domain2.only in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "accept" (TESTSUITE/test-config 51)
@@ -576,30 +863,48 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <x@abc.domain2.only>: failed 4
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> abc@domain3 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> abc@domain3 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> abc@domain3 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> abc@domain3 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> abc@domain3 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> abc@domain3 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> domain3 in "domain.only"? no (end of list)
->>> domain3 in "*.domain2.only"? no (end of list)
+>>> abc@domain3 in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  domain3 in "domain.only"?
+>>>   list element: domain.only
+>>>  domain3 in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  domain3 in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  domain3 in "*.domain2.only"? no (end of list)
 >>> abc@domain3 in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
->>> domain3 in "domain3"? yes (matched "domain3")
->>> abc@domain3 in "abc@domain3 : xyz@*.domain4"? yes (matched "abc@domain3")
+>>> abc@domain3 in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  domain3 in "domain3"?
+>>>   list element: domain3
+>>>   domain3 in "domain3"? yes (matched "domain3")
+>>>  abc@domain3 in "abc@domain3 : xyz@*.domain4"? yes (matched "abc@domain3")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abc@domain3>: failed 5
@@ -607,30 +912,49 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <abc@domain3>: failed 5
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> xyz@x.domain4 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> xyz@x.domain4 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> xyz@x.domain4 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> xyz@x.domain4 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> xyz@x.domain4 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> xyz@x.domain4 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> x.domain4 in "domain.only"? no (end of list)
->>> x.domain4 in "*.domain2.only"? no (end of list)
+>>> xyz@x.domain4 in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  x.domain4 in "domain.only"?
+>>>   list element: domain.only
+>>>  x.domain4 in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  x.domain4 in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  x.domain4 in "*.domain2.only"? no (end of list)
 >>> xyz@x.domain4 in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
->>> x.domain4 in "*.domain4"? yes (matched "*.domain4")
->>> xyz@x.domain4 in "abc@domain3 : xyz@*.domain4"? yes (matched "xyz@*.domain4")
+>>> xyz@x.domain4 in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
+>>>  x.domain4 in "*.domain4"?
+>>>   list element: *.domain4
+>>>   x.domain4 in "*.domain4"? yes (matched "*.domain4")
+>>>  xyz@x.domain4 in "abc@domain3 : xyz@*.domain4"? yes (matched "xyz@*.domain4")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <xyz@x.domain4>: failed 5
@@ -638,61 +962,95 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <xyz@x.domain4>: failed 5
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> abc@x.domain4 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> abc@x.domain4 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> abc@x.domain4 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> abc@x.domain4 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> abc@x.domain4 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> abc@x.domain4 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> x.domain4 in "domain.only"? no (end of list)
->>> x.domain4 in "*.domain2.only"? no (end of list)
+>>> abc@x.domain4 in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  x.domain4 in "domain.only"?
+>>>   list element: domain.only
+>>>  x.domain4 in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  x.domain4 in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  x.domain4 in "*.domain2.only"? no (end of list)
 >>> abc@x.domain4 in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
->>> x.domain4 in "domain3"? no (end of list)
+>>> abc@x.domain4 in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  x.domain4 in "domain3"?
+>>>   list element: domain3
+>>>  x.domain4 in "domain3"? no (end of list)
+>>>  list element: xyz@*.domain4
 >>> abc@x.domain4 in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> abc@x.domain4 in "pqr@@"?
+>>>  list element: pqr@@
 >>> abc@x.domain4 in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> x.domain4 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> abc@x.domain4 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  x.domain4 in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  x.domain4 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> abc@x.domain4 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>> abc@x.domain4 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
 >>> abc@x.domain4 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 48)
 >>>   message: failed 11
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d5
+>>> abc@x.domain4 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d5
 >>> abc@x.domain4 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "accept" (TESTSUITE/test-config 51)
@@ -702,62 +1060,98 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <xyz@x.domain4>: failed 5
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> xyz@domain3 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> xyz@domain3 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> xyz@domain3 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> xyz@domain3 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> xyz@domain3 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> xyz@domain3 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> domain3 in "domain.only"? no (end of list)
->>> domain3 in "*.domain2.only"? no (end of list)
+>>> xyz@domain3 in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  domain3 in "domain.only"?
+>>>   list element: domain.only
+>>>  domain3 in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  domain3 in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  domain3 in "*.domain2.only"? no (end of list)
 >>> xyz@domain3 in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
->>> domain3 in "*.domain4"? no (end of list)
+>>> xyz@domain3 in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
+>>>  domain3 in "*.domain4"?
+>>>   list element: *.domain4
+>>>  domain3 in "*.domain4"? no (end of list)
 >>> xyz@domain3 in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> xyz@domain3 in "pqr@@"?
+>>>  list element: pqr@@
 >>> xyz@domain3 in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> domain3 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> xyz@domain3 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain3 in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain3 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> xyz@domain3 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
->>> domain3 in "lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
+>>> xyz@domain3 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>>  domain3 in "lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d4
+>>>  domain3 in "lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> xyz@domain3 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 48)
 >>>   message: failed 11
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d5
+>>> xyz@domain3 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d5
 >>> xyz@domain3 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "accept" (TESTSUITE/test-config 51)
@@ -767,35 +1161,56 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <xyz@x.domain4>: failed 5
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> pqr@myhost.test.ex in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> pqr@myhost.test.ex in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> pqr@myhost.test.ex in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> pqr@myhost.test.ex in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> pqr@myhost.test.ex in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> pqr@myhost.test.ex in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> myhost.test.ex in "domain.only"? no (end of list)
->>> myhost.test.ex in "*.domain2.only"? no (end of list)
+>>> pqr@myhost.test.ex in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  myhost.test.ex in "domain.only"?
+>>>   list element: domain.only
+>>>  myhost.test.ex in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  myhost.test.ex in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  myhost.test.ex in "*.domain2.only"? no (end of list)
 >>> pqr@myhost.test.ex in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> pqr@myhost.test.ex in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> pqr@myhost.test.ex in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
->>> myhost.test.ex in "@"? yes (matched "@")
->>> pqr@myhost.test.ex in "pqr@@"? yes (matched "pqr@@")
+>>> pqr@myhost.test.ex in "pqr@@"?
+>>>  list element: pqr@@
+>>>  myhost.test.ex in "@"?
+>>>   list element: @
+>>>   myhost.test.ex in "@"? yes (matched "@")
+>>>  pqr@myhost.test.ex in "pqr@@"? yes (matched "pqr@@")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <pqr@myhost.test.ex>: failed 6
@@ -803,60 +1218,92 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <pqr@myhost.test.ex>: failed 6
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> xxx@myhost.test.ex in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> xxx@myhost.test.ex in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> xxx@myhost.test.ex in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> xxx@myhost.test.ex in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> xxx@myhost.test.ex in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> xxx@myhost.test.ex in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> myhost.test.ex in "domain.only"? no (end of list)
->>> myhost.test.ex in "*.domain2.only"? no (end of list)
+>>> xxx@myhost.test.ex in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  myhost.test.ex in "domain.only"?
+>>>   list element: domain.only
+>>>  myhost.test.ex in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  myhost.test.ex in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  myhost.test.ex in "*.domain2.only"? no (end of list)
 >>> xxx@myhost.test.ex in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> xxx@myhost.test.ex in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> xxx@myhost.test.ex in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> xxx@myhost.test.ex in "pqr@@"?
+>>>  list element: pqr@@
 >>> xxx@myhost.test.ex in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> myhost.test.ex in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> xxx@myhost.test.ex in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  myhost.test.ex in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  myhost.test.ex in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> xxx@myhost.test.ex in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>> xxx@myhost.test.ex in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
 >>> xxx@myhost.test.ex in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 48)
 >>>   message: failed 11
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d5
+>>> xxx@myhost.test.ex in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d5
 >>> xxx@myhost.test.ex in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "accept" (TESTSUITE/test-config 51)
@@ -866,52 +1313,82 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <pqr@myhost.test.ex>: failed 6
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
->>> domain5 in "b"? no (end of list)
+>>> a@domain5 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
+>>>  domain5 in "b"?
+>>>   list element: b
+>>>  domain5 in "b"? no (end of list)
 >>> a@domain5 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> a@domain5 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> a@domain5 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> a@domain5 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> a@domain5 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> domain5 in "domain.only"? no (end of list)
->>> domain5 in "*.domain2.only"? no (end of list)
+>>> a@domain5 in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  domain5 in "domain.only"?
+>>>   list element: domain.only
+>>>  domain5 in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  domain5 in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  domain5 in "*.domain2.only"? no (end of list)
 >>> a@domain5 in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> a@domain5 in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> a@domain5 in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> a@domain5 in "pqr@@"?
+>>>  list element: pqr@@
 >>> a@domain5 in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> domain5 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? yes (matched "lsearch;TESTSUITE/aux-fixed/0304.d3")
->>> a@domain5 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? yes (matched "*@lsearch;TESTSUITE/aux-fixed/0304.d3")
+>>> a@domain5 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain5 in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>   domain5 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? yes (matched "lsearch;TESTSUITE/aux-fixed/0304.d3")
+>>>  a@domain5 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? yes (matched "*@lsearch;TESTSUITE/aux-fixed/0304.d3")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <a@domain5>: failed 9
@@ -919,58 +1396,92 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <a@domain5>: failed 9
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> xyz@domain6 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> xyz@domain6 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> xyz@domain6 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> xyz@domain6 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> xyz@domain6 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> xyz@domain6 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> domain6 in "domain.only"? no (end of list)
->>> domain6 in "*.domain2.only"? no (end of list)
+>>> xyz@domain6 in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  domain6 in "domain.only"?
+>>>   list element: domain.only
+>>>  domain6 in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  domain6 in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  domain6 in "*.domain2.only"? no (end of list)
 >>> xyz@domain6 in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
->>> domain6 in "*.domain4"? no (end of list)
+>>> xyz@domain6 in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
+>>>  domain6 in "*.domain4"?
+>>>   list element: *.domain4
+>>>  domain6 in "*.domain4"? no (end of list)
 >>> xyz@domain6 in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> xyz@domain6 in "pqr@@"?
+>>>  list element: pqr@@
 >>> xyz@domain6 in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> domain6 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> xyz@domain6 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain6 in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain6 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> xyz@domain6 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
->>> domain6 in "lsearch;TESTSUITE/aux-fixed/0304.d4"? yes (matched "lsearch;TESTSUITE/aux-fixed/0304.d4")
->>> xyz@domain6 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? yes (matched "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4")
+>>> xyz@domain6 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>>  domain6 in "lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d4
+>>>   domain6 in "lsearch;TESTSUITE/aux-fixed/0304.d4"? yes (matched "lsearch;TESTSUITE/aux-fixed/0304.d4")
+>>>  xyz@domain6 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? yes (matched "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <xyz@domain6>: failed 10
@@ -978,61 +1489,95 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <xyz@domain6>: failed 10
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> abc@domain6 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> abc@domain6 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> abc@domain6 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> abc@domain6 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> abc@domain6 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> abc@domain6 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> domain6 in "domain.only"? no (end of list)
->>> domain6 in "*.domain2.only"? no (end of list)
+>>> abc@domain6 in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  domain6 in "domain.only"?
+>>>   list element: domain.only
+>>>  domain6 in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  domain6 in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  domain6 in "*.domain2.only"? no (end of list)
 >>> abc@domain6 in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
->>> domain6 in "domain3"? no (end of list)
+>>> abc@domain6 in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  domain6 in "domain3"?
+>>>   list element: domain3
+>>>  domain6 in "domain3"? no (end of list)
+>>>  list element: xyz@*.domain4
 >>> abc@domain6 in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> abc@domain6 in "pqr@@"?
+>>>  list element: pqr@@
 >>> abc@domain6 in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> domain6 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> abc@domain6 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain6 in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain6 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> abc@domain6 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>> abc@domain6 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
 >>> abc@domain6 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 48)
 >>>   message: failed 11
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d5
+>>> abc@domain6 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d5
 >>> abc@domain6 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "accept" (TESTSUITE/test-config 51)
@@ -1042,61 +1587,93 @@ LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <xyz@domain6>: failed 10
 >>> processing "deny" (TESTSUITE/test-config 16)
 >>>   message: failed 1
 >>> check recipients = \N^abc.*@.*\.x\.y\.z\N : a@b
+>>> x@domain7 in "^abc.*@.*\.x\.y\.z : a@b"?
+>>>  list element: ^abc.*@.*\.x\.y\.z
+>>>  list element: a@b
 >>> x@domain7 in "^abc.*@.*\.x\.y\.z : a@b"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 19)
 >>>   message: failed 2
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d1
+>>> x@domain7 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d1
 >>> x@domain7 in "lsearch*@;TESTSUITE/aux-fixed/0304.d1"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 22)
 >>>   message: failed 3
 >>> check recipients = @@lsearch;TESTSUITE/aux-fixed/0304.d2
+>>> x@domain7 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"?
+>>>  list element: @@lsearch;TESTSUITE/aux-fixed/0304.d2
 >>> x@domain7 in "@@lsearch;TESTSUITE/aux-fixed/0304.d2"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 25)
 >>>   message: failed 4
 >>> check recipients = domain.only : *.domain2.only
->>> domain7 in "domain.only"? no (end of list)
->>> domain7 in "*.domain2.only"? no (end of list)
+>>> x@domain7 in "domain.only : *.domain2.only"?
+>>>  list element: domain.only
+>>>  domain7 in "domain.only"?
+>>>   list element: domain.only
+>>>  domain7 in "domain.only"? no (end of list)
+>>>  list element: *.domain2.only
+>>>  domain7 in "*.domain2.only"?
+>>>   list element: *.domain2.only
+>>>  domain7 in "*.domain2.only"? no (end of list)
 >>> x@domain7 in "domain.only : *.domain2.only"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 28)
 >>>   message: failed 5
 >>> check recipients = abc@domain3 : xyz@*.domain4
+>>> x@domain7 in "abc@domain3 : xyz@*.domain4"?
+>>>  list element: abc@domain3
+>>>  list element: xyz@*.domain4
 >>> x@domain7 in "abc@domain3 : xyz@*.domain4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 31)
 >>>   message: failed 6
 >>> check recipients = pqr@@
+>>> x@domain7 in "pqr@@"?
+>>>  list element: pqr@@
 >>> x@domain7 in "pqr@@"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 34)
 >>>   message: failed 7
 >>> check senders = :
->>> y in ""? no (end of list)
+>>> x@y in ":"?
+>>>  list element: 
+>>>  y in ""?
+>>>  y in ""? no (end of list)
 >>> x@y in ":"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 38)
 >>>   message: failed 8
 >>> check senders = ^\$
+>>> x@y in "^$"?
+>>>  list element: ^$
 >>> x@y in "^$"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 42)
 >>>   message: failed 9
 >>> check recipients = *@lsearch;TESTSUITE/aux-fixed/0304.d3
->>> domain7 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
+>>> x@domain7 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>  list element: *@lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain7 in "lsearch;TESTSUITE/aux-fixed/0304.d3"?
+>>>   list element: lsearch;TESTSUITE/aux-fixed/0304.d3
+>>>  domain7 in "lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> x@domain7 in "*@lsearch;TESTSUITE/aux-fixed/0304.d3"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 45)
 >>>   message: failed 10
 >>> check recipients = xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
+>>> x@domain7 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"?
+>>>  list element: xyz@lsearch;TESTSUITE/aux-fixed/0304.d4
 >>> x@domain7 in "xyz@lsearch;TESTSUITE/aux-fixed/0304.d4"? no (end of list)
 >>> deny: condition test failed in ACL "acl1"
 >>> processing "deny" (TESTSUITE/test-config 48)
 >>>   message: failed 11
 >>> check recipients = lsearch*@;TESTSUITE/aux-fixed/0304.d5
->>> x@domain7 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? yes (matched "lsearch*@;TESTSUITE/aux-fixed/0304.d5")
+>>> x@domain7 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"?
+>>>  list element: lsearch*@;TESTSUITE/aux-fixed/0304.d5
+>>>  x@domain7 in "lsearch*@;TESTSUITE/aux-fixed/0304.d5"? yes (matched "lsearch*@;TESTSUITE/aux-fixed/0304.d5")
 >>> deny: condition test succeeded in ACL "acl1"
 >>> end of ACL "acl1": DENY
 LOG: H=(test) [1.2.3.4] F=<x@y> rejected RCPT <x@domain7>: failed 11