Testsuite: when running under the testharness, wait longer for transport process...
[users/jgh/exim.git] / test / scripts / 4007_scan_avast / 4007
1 # content scan interface: avast
2 #
3 server DIR/eximdir/avast_sock
4 >LF>220 ready
5 <FLAGS -fullfiles
6 >LF>210 FLAGS DATA
7 >LF>200 FLAGS OK
8 <SCAN
9 >LF>210 SCAN DATA
10 >LF>blah        [+]
11 >LF>200 SCAN OK
12 <QUIT
13 *eof
14 ****
15 #
16 #
17 #
18 exim -odi -bs -DOPTION="FLAGS -fullfiles" -DINSERT=
19 ehlo test.ex
20 mail from:<>
21 rcpt to:<userx@test.ex>
22 data
23 Date: Fri, 17 Dec 2004 14:35:01 +0100
24 Subject: message should be accepted
25
26 .
27 quit
28 ****
29 #
30 #
31 ### (non-internal) scanner error -> paniclog
32 server DIR/eximdir/avast_sock
33 >LF>220 ready
34 <SCAN
35 >LF>210 SCAN DATA
36 >LF>blah        [E]0.0  Error 13 Permission\\ denied
37 >LF>451 SCAN Engine error 13 Permission denied
38 <QUIT
39 *eof
40 ****
41 #
42 #
43 #
44 exim -odi -bs -DOPTION= -DINSERT=
45 ehlo test.ex
46 mail from:<>
47 rcpt to:<userx@test.ex>
48 data
49 Date: Fri, 17 Dec 2004 14:35:01 +0100
50 Subject: defer this one, the scanner had an error
51
52 .
53 quit
54 ****
55 #
56 #
57 #
58 server DIR/eximdir/avast_sock
59 >LF>220 ready
60 <SCAN
61 >LF>210 SCAN DATA
62 >LF>b\\ l\\ a\\ h       [L]9.0  0 VNAME
63 >LF>200 SCAN OK
64 <QUIT
65 *eof
66 ****
67 #
68 #
69 #
70 exim -odi -bs -DOPTION= -DINSERT="/defer_ok"
71 ehlo test.ex
72 mail from:<>
73 rcpt to:<userx@test.ex>
74 data
75 Date: Fri, 17 Dec 2004 14:35:01 +0100
76 Subject: message should be rejected
77
78 .
79 quit
80 ****
81 #
82 #
83 #
84 server DIR/eximdir/avast_sock
85 *sleep 3
86 ****
87 #
88 #
89 #
90 exim -odi -bs -DOPTION= -DINSERT="/tmo=2s"
91 ehlo test.ex
92 mail from:<>
93 rcpt to:<userx@test.ex>
94 data
95 Date: Fri, 17 Dec 2004 14:35:01 +0100
96 Subject: message should be tmp-rejected due to timeout
97
98 .
99 quit
100 ****
101 #
102 #
103 #
104 server DIR/eximdir/avast_sock
105 *sleep 3
106 ****
107 #
108 #
109 #
110 exim -odi -bs -DOPTION= -DINSERT="/tmo=2s/defer_ok"
111 ehlo test.ex
112 mail from:<>
113 rcpt to:<userx@test.ex>
114 data
115 Date: Fri, 17 Dec 2004 14:35:01 +0100
116 Subject: message should be accepted despite timeout
117
118 .
119 quit
120 ****
121 #
122 #
123 ### internal scanner error, no panic log
124 server DIR/eximdir/avast_sock
125 >LF>220 ready
126 <SCAN
127 >LF>210 SCAN DATA
128 >LF>blah        [E]0.0  Error 42110 The\\ file\\ is\\ a\\ decompression\\ bomb
129 >LF>200 SCAN OK
130 <QUIT
131 *eof
132 ****
133 #
134 #
135 #
136 exim -odi -bs -DOPTION= -DINSERT=
137 ehlo test.ex
138 mail from:<>
139 rcpt to:<userx@test.ex>
140 data
141 Date: Fri, 17 Dec 2004 14:35:01 +0100
142 Subject: defer this one, the scanner had an error
143
144 .
145 quit
146 ****