summaryrefslogtreecommitdiff
path: root/test/scripts/2600-SQLite/2600
blob: a11d46ef173d78f17da86922d6fcefa346c3d301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# sqlite lookups
exim -d-all+lookup -be
${lookup sqlite,file=DIR/aux-fixed/sqlitedb{select name from them where id='userx';}}
${lookup sqlite{DIR/aux-fixed/sqlitedb select name from them where id='userx';}}
${lookup sqlite,file=DIR/aux-fixed/sqlitedb{ select name from them where id='userx';}}
${lookup sqlite,file=DIR/aux-fixed/sqlitedb{ select name from them where id='userx';}}
${lookup sqlite,file=DIR/aux-fixed/sqlitedb{ select name from them where id='xxxx';}}
${lookup sqlite,file=DIR/aux-fixed/sqlitedb{select name from them where id='nothing';}}
${lookup sqlite,file=DIR/aux-fixed/sqlitedb{select id,name from them where id='nothing';}}
${lookup sqlite,file=DIR/aux-fixed/sqlitedb {select * from them where id='quote2';}}
${lookup sqlite,file=DIR/aux-fixed/sqlitedb{select * from them where id='newline';}}
${lookup sqlite,file=DIR/aux-fixed/sqlitedb{select * from them where id='tab';}}
${lookup sqlite,file=DIR/aux-fixed/sqlitedb{select * from them where id='its';}}
${lookup sqlite,file=DIR/aux-fixed/sqlitedb{select * from them where name='${quote_sqlite:it's}';}}
****
exim -d -DOPT=y -bh 10.0.0.0
mail from:<a@b>
rcpt to:<c@d>
rcpt to:<c@d>
quit
****
exim -d -bh 10.0.0.0
mail from:<a@b>
rcpt to:<c@d>
rcpt to:<c@d>
quit
****
exim -d -bh 10.10.10.10
mail from:<a@b>
rcpt to:<c@d>
rcpt to:<c@d>
quit
****
exim -DOPT=y -odi -d userx
Test message
.
****
exim -d-all+lookup -be
${lookup sqlite{DIR/aux-fixed/sqlitedb select name from them where id='userx';}}
****
#
#
exim -DDATA=DIR/aux-fixed/sqlitedb -d-all+lookup -be
${lookup sqlite{select name from them where id='userx';}}
****
exim -DDATA=nonabsolute_filename -d-all+lookup -be
${lookup sqlite{select name from them where id='userx';}}
****
exim -DDATA=DIR/missingfile -d-all+lookup -be
${lookup sqlite{select name from them where id='userx';}}
****