diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2019-01-08 19:15:29 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-01-08 23:11:30 +0000 |
commit | 854bd65fa7f6a97b04680fb090423c27b19077a2 (patch) | |
tree | ce46b4041022ffcb148048b174ee0fcc989c6e1e /test/scripts/2750-json | |
parent | 57a7b15ed9a35f447c05c7c6b80eb8b2a5836fbb (diff) |
JSON lookup
Diffstat (limited to 'test/scripts/2750-json')
-rw-r--r-- | test/scripts/2750-json/2750 | 22 | ||||
-rw-r--r-- | test/scripts/2750-json/REQUIRES | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/test/scripts/2750-json/2750 b/test/scripts/2750-json/2750 new file mode 100644 index 000000000..f01414b4c --- /dev/null +++ b/test/scripts/2750-json/2750 @@ -0,0 +1,22 @@ +# lookup json +# +exim -be +policy-aliases:google:mode +${lookup {policy-aliases:google:mode} json {DIR/aux-fixed/policy.json}} + +policies:hotmail.com +${lookup {policies:hotmail.com} json {DIR/aux-fixed/policy.json}} + +policy-aliases:outlook +${lookup {policy-aliases:outlook} json {DIR/aux-fixed/policy.json}} + +policy-aliases:outlook:mxs +${lookup {policy-aliases:outlook:mxs} json {DIR/aux-fixed/policy.json}} + +policy-aliases:outlook:mxs:1 +${lookup {policy-aliases : outlook : mxs : 1} json {DIR/aux-fixed/policy.json}} + +aggregate output vs. json extract +${extract json {mxs} \ + {${lookup {policy-aliases:outlook} json {DIR/aux-fixed/policy.json}}}} +**** diff --git a/test/scripts/2750-json/REQUIRES b/test/scripts/2750-json/REQUIRES new file mode 100644 index 000000000..34b00031f --- /dev/null +++ b/test/scripts/2750-json/REQUIRES @@ -0,0 +1 @@ +lookup json |