Merge branch 'master' of ssh://git.exim.org/home/git/exim
[users/jgh/exim.git] / test / scripts / 0000-Basic / 0387
1 # Partial matching and lookup name decoding
2 exim -bs
3 mail from:<x@a.b.c>
4 rcpt to:<x@y>
5 rset
6 mail from:<x@b.c.a>
7 rcpt to:<x@y>
8 quit
9 ****
10 exim -bs -oMa 10.9.8.7
11 mail from:<x@b.c.a>
12 rcpt to:<x@y>
13 quit
14 ****
15 exim -bs -oMa 192.168.4.5
16 mail from:<x@b.c.a>
17 rcpt to:<x@y>
18 quit
19 ****
20 exim -bs -oMa 1.2.3.4
21 mail from:<x@b.c.a>
22 rcpt to:<x@y>
23 quit
24 ****
25 exim -d-all+lookup -be
26  1 ${lookup{a.b.c}partial-lsearch{DIR/aux-fixed/TESTNUM.1}}
27  2 ${lookup{x.y.c}partial-lsearch{DIR/aux-fixed/TESTNUM.1}}
28  3 ${lookup{x.y.c}partial-lsearch*{DIR/aux-fixed/TESTNUM.1}}
29  4 ${lookup{x.y.c}partial1-lsearch{DIR/aux-fixed/TESTNUM.1}}
30  5 ${lookup{x@y.c}partial1-lsearch*@{DIR/aux-fixed/TESTNUM.1}}
31  6 ${lookup{x@y.c}lsearch*@{DIR/aux-fixed/TESTNUM.1}}
32  7 ${lookup{a.b.c}partial(*.)lsearch{DIR/aux-fixed/TESTNUM.1}} 
33  8 ${lookup{a.b.c}partial(.)lsearch{DIR/aux-fixed/TESTNUM.1}} 
34  9 ${lookup{a.b.c}partial()lsearch{DIR/aux-fixed/TESTNUM.1}} 
35 10 ${lookup{a.b.c}partial(*)lsearch{DIR/aux-fixed/TESTNUM.1}} 
36 11 ${lookup{p.q.r}partial0(*.)lsearch{DIR/aux-fixed/TESTNUM.1}} 
37 12 ${lookup{p.q.r}partial0(.)lsearch{DIR/aux-fixed/TESTNUM.1}} 
38 13 ${lookup{x.aa.bb}partial0(++)lsearch{DIR/aux-fixed/TESTNUM.1}} 
39 14 ${lookup{x.aa.zz}partial0(++)lsearch{DIR/aux-fixed/TESTNUM.1}} 
40 15 ${lookup{x.aa.zz}partial1(++)lsearch*{DIR/aux-fixed/TESTNUM.1}} 
41 16 ${lookup{a.b.c}partial-lsearch{DIR/aux-fixed/TESTNUM.1}{$value|$0|$1|$2}}
42 ****