diff options
author | Jasen Betts <jasen@xnet.co.nz> | 2019-02-18 13:52:16 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-02-18 13:57:17 +0000 |
commit | e2ff8e24f41caca3623228b1ec66a3f3961ecad6 (patch) | |
tree | bdb30086fa19c65b797223d5949557e1c1c1af21 /test | |
parent | fc243e944ec00b59b75f41d07494116f925d58b4 (diff) |
Fix expansions for RFC 822 addresses having comments in local-part and/or domain. Bug 2375
Diffstat (limited to 'test')
-rw-r--r-- | test/scripts/0000-Basic/0002 | 7 | ||||
-rw-r--r-- | test/stdout/0002 | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002 index 65ad69047..c738b0955 100644 --- a/test/scripts/0000-Basic/0002 +++ b/test/scripts/0000-Basic/0002 @@ -123,8 +123,14 @@ acl: ${reduce {1:2:3:4} {} {$value ${acl {a_ret}{$item}}}} addrss: ${address:local-part@dom.ain} addrss: ${address:Exim Person <local-part@dom.ain> (that's me)} +addrss: ${address:Exim Person <local-part(comment)@dom.ain> (that's me)} +addrss: ${address:Exim Person <local-part@dom.ain(comment)> (that's me)} +addrss: ${address:Exim Person <local-part(comment)@dom.ain(comment2)> (that's me)} +addrss: ${address:Exim Person <local-part.(comment)dot-atom@dom.ain(comment2)> (that's me)} +addrss: ${address:Exim Person <(comment)local-part@dom.ain(comment2)> (that's me)} domain: ${domain:local-part@dom.ain} domain: ${domain:Exim Person <local-part@dom.ain> (that's me)} +domain: ${domain:Exim Person <local-part(foo)@(bar)dom.ain> (that's me)} addresses: ${addresses:>' 'abc@xyz, 'pqr@xyz} addresses: ${addresses:Exim Person <local-part@dom.ain> (that's me)} @@ -244,6 +250,7 @@ lc/uc: ${lc:The Quick} ${uc: Brown Fox} length: ${length_10:The quick brown fox} ${l_10:abc} lclpt: ${local_part:local-part@dom.ain} lclpt: ${local_part:Exim Person <local-part@dom.ain> (that's me)} +lclpt: ${local_part:Exim Person <local(comment).part@dom.(comment2)ain> (that's me)} quote: ${quote:aZ09_.-Q} ${quote:ab*cd} ${quote:ab\cd"ef} quote: ${quote:nl(\n)} quote: ${quote:cr(\r)} diff --git a/test/stdout/0002 b/test/stdout/0002 index f5a97289a..3800fd35d 100644 --- a/test/stdout/0002 +++ b/test/stdout/0002 @@ -115,6 +115,12 @@ > > addrss: local-part@dom.ain > addrss: local-part@dom.ain +> addrss: local-part@dom.ain +> addrss: local-part@dom.ain +> addrss: local-part@dom.ain +> addrss: local-part.dot-atom@dom.ain +> addrss: local-part@dom.ain +> domain: dom.ain > domain: dom.ain > domain: dom.ain > @@ -226,6 +232,7 @@ newline tab\134backslash ~tilde\177DEL\200\201. > length: The quick abc > lclpt: local-part > lclpt: local-part +> lclpt: local.part > quote: aZ09_.-Q "ab*cd" "abcd\"ef" > quote: "nl(\n)" > quote: "cr(\r)" |