Testsuite: add testcase for Redis. Bug 1755
[exim.git] / test / scripts / 4000-scanning / 4005
1 # content scan interface: clamav
2 #
3 # SCAN command interface, on a unix socket, only.  No ExtendedDetectionInfo.
4 #
5 server DIR/eximdir/clam_sock
6 <SCAN
7 >LF>scanned_file_name: OK
8 <*eof
9 ****
10 #
11 #
12 #
13 exim -odi -bs -DOPT=
14 ehlo test.ex
15 mail from:<>
16 rcpt to:<userx@test.ex>
17 data
18 Date: Fri, 17 Dec 2004 14:35:01 +0100
19 Subject: message should be accepted
20
21 .
22 quit
23 ****
24 #
25 #
26 #
27 server DIR/eximdir/clam_sock
28 <SCAN
29 >LF>scanned_file_name: 666 ERROR
30 <*eof
31 ****
32 #
33 #
34 #
35 exim -odi -bs -DOPT=
36 ehlo test.ex
37 mail from:<>
38 rcpt to:<userx@test.ex>
39 data
40 Date: Fri, 17 Dec 2004 14:35:01 +0100
41 Subject: defer this one due to scanner error
42
43 .
44 quit
45 ****
46 #
47 #
48 #
49 server DIR/eximdir/clam_sock
50 <SCAN
51 >LF>scanned_file_name: VNAME FOUND
52 <*eof
53 ****
54 #
55 #
56 #
57 exim -odi -bs -DOPT=/defer_ok
58 ehlo test.ex
59 mail from:<>
60 rcpt to:<userx@test.ex>
61 data
62 Date: Fri, 17 Dec 2004 14:35:01 +0100
63 Subject: message should be rejected
64
65 .
66 quit
67 ****
68 #
69 #
70 #
71 server DIR/eximdir/clam_sock
72 *sleep 3
73 ****
74 #
75 #
76 #
77 exim -odi -bs -DOPT="/ tmo=2s"
78 ehlo test.ex
79 mail from:<>
80 rcpt to:<userx@test.ex>
81 data
82 Date: Fri, 17 Dec 2004 14:35:01 +0100
83 Subject: defer this one due to timeout
84
85 .
86 quit
87 ****
88 #
89 #
90 #
91 server DIR/eximdir/clam_sock
92 *sleep 3
93 ****
94 #
95 #
96 #
97 exim -odi -bs -DOPT="/ tmo=2s / defer_ok"
98 ehlo test.ex
99 mail from:<>
100 rcpt to:<userx@test.ex>
101 data
102 Date: Fri, 17 Dec 2004 14:35:01 +0100
103 Subject: accept this one despite timeout
104
105 .
106 quit
107 ****
108 #
109 #
110 #
111 #
112 server -i 2 DIR/eximdir/clam_sock
113 <SCAN
114 >LF>scanned_file_name: OK
115 <*eof
116 ****
117 #
118 exim -odi -bs -DCONTROL="retry=4s"
119 ehlo test.ex
120 mail from:<>
121 rcpt to:<userx@test.ex>
122 data
123 Date: Fri, 17 Dec 2004 14:35:01 +0100
124 Subject: message should be accepted after a retry
125
126 .
127 quit
128 ****
129 #