e6270977b96ff2a9b3b1d510ae12309b8736a28e
[exim.git] / test / stdout / 0002
1 >
2 > # These expansions can test variables in the configuration, but as there
3 > # is no message being processed, there is no message-related data. But
4 > # that of course gets tested in plenty of other places.
5 >
6 > # Some fixed variables
7 >
8 > exim_path: TESTSUITE/eximdir/exim
9 > primary_hostname: myhost.test.ex
10 > primary_hostname: myhost.test.ex
11 > qualify_domain: myhost.test.ex
12 > bounce_return_size_limit: 102400
13 > spool_directory: TESTSUITE/spool
14 > Failed: unknown variable in "${unknown}"
15 > h_subject: (should be empty)
16 > h_subject: (should be empty)
17 > Failed: unknown expansion operator "header_subject"
18 >
19 > # $message_headers should be empty
20 > message_headers: ><
21 >
22 > # Continuation
23 > xy
24 > xy
25 >
26 > # Overlong names and overbig numbers
27 >
28 > Failed: unknown variable name "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
29 > Failed: unknown variable in "${aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}"
30 > +
31 > +
32 >
33 > # List operations
34 >
35 > filter: "a:b:c"
36 > filter: a:c
37 > filter: a'c
38 > filter: ''a' ''c
39 > filter: ""
40 >
41 > map: ""
42 > map: a:b:c
43 > map: ::a::: ::b::: ::c::
44 > map: fail string
45 > map: []:[b]:[c]
46 >
47 > reduce: "+"
48 > reduce: +abc
49 > reduce: 6
50 > reduce: 9
51 >
52 > listnamed: *.aa.bb : ^\Nxxx(.*)
53 > listnamed: *.aa.bb : ^\Nxxx(.*)
54 > listnamed: V4NET.11.12.13 : iplsearch;TESTSUITE/aux-fixed/0002.iplsearch
55 > listnamed: *.aa.bb : ^\Nxxx(.*) : ;;
56 > listnamed: a : b;c : *.aa.bb : ^\Nxxx(.*) : ;; : 2001::630::212::8::204::::b664
57 > Failed: "nolist" is not a named list
58 > listnamed: *.aa.bb : ^\Nxxx(.*)
59 > Failed: "hlist" is not a domain named list
60 > Failed: bad suffix on "list" operator
61 >
62 > listcount: 3
63 > listcount: 0
64 > listcount: 3
65 > listcount: 2
66 >
67 > listextract: b
68 > listextract: XcX
69 > listextract:
70 > listextract:
71 > listextract: fail
72 > Failed: "extract" failed and "fail" requested
73 >
74 > # Tests with iscntrl() and illegal separators
75 >
76 > map: 'a'
77 ''
78 'b'
79 'c'
80 >
81 > Failed: error in expression evaluation: expecting number or opening parenthesis (after processing "0+") inside "reduce" item
82 > reduce: 6
83 > reduce: 6
84 > reduce: 6
85 >
86 > # Operators
87 >
88 > Failed: missing or misplaced { or }
89 > Failed: missing or misplaced { or }
90 > Failed: error from acl "a_nosuch"
91 > acl: (0) [] []
92 > acl: (1) [person@dom.ain] []
93 > acl: (2) [firstarg] [secondarg]
94 > acl: (1) [arg with spaces] []
95 > acl:
96 > acl:
97 > acl: (0) [] []
98 > acl: (1) [person@dom.ain] []
99 > Failed: error from acl "a_defer"
100 > acl: (2) [new arg1] [top_arg_1]
101 > acl: (1) [1] [] (1) [2] [] (1) [3] [] (1) [4] []
102 >
103 > addrss: local-part@dom.ain
104 > addrss: local-part@dom.ain
105 > domain: dom.ain
106 > domain: dom.ain
107 >
108 > addresses: ''abc@xyz' ''pqr@xyz
109 > addresses: local-part@dom.ain
110 > addresses: local-part@dom.ain+xyz@abc
111 > addresses: local-part@dom.ain:xyz@abc:p@q:r@s
112 > addresses:
113 >
114 > escape: B7\267F2\362
115 > eval: 2
116 > eval: 7
117 > eval: 9
118 > eval: 4
119 > eval: 6
120 > eval: 42
121 > Failed: error in expression evaluation: expecting number or opening parenthesis (after processing "")
122 > eval: -2
123 > eval: 1
124 > eval: 1
125 > Failed: error in expression evaluation: expecting closing parenthesis (after processing "-2 - (-3")
126 > Failed: error in expression evaluation: expecting operator (after processing "-2 - -3")
127 > eval: 1
128 > eval: -5
129 > eval: 1
130 > eval: 40962
131 > eval: 63
132 > Failed: error in expression evaluation: expecting operator (after processing "0")
133 > eval10: 77
134 > eval10: 8
135 > Failed: error in expression evaluation: expecting operator (after processing "0")
136 > eval: 4
137 > eval: 4
138 > eval: 4
139 > eval: 13
140 > eval: 9
141 > eval: 6
142 > eval: 3
143 > eval: 0
144 > eval: 24
145 > eval: 4608
146 > eval: 4608
147 > eval: -4608
148 >
149 > expand: $primary_hostname myhost.test.ex
150 > hash: jmg monty fbWx
151 > hash: abcX abX aX X
152 > hex2b64:EjRWeA==
153 > hex2b64:q83v
154 > hex2b64:q83v
155 > hex2b64:Gis8TV5v
156 > Failed: "1a2b3c4d5e6" contains an odd number of characters
157 > Failed: "1a2b3c4d5e6g" is not a hex string
158 > hex2b64:MPPJPkZDbetYunCBao7BJA==
159 > hex2b64:ztcfpyNSMb7Tg/rP3EHE3cwi7PE=
160 >
161 > The base62 operator is actually a base36 operator in the Darwin and Cygwin
162 > environments. Write cunning tests that produce the same output in both cases,
163 > while doing a reasonable check.
164 >
165 > base62: OK
166 > base62d: OK
167 > base62d: OK
168 > Failed: argument for base62 operator is "12345x", which is not a decimal number
169 > Failed: argument for base62d operator is "0003D7.", which is not a base 36/62 number
170 >
171 > hmac: dd97e3ba5d1a61b5006108f8c8252953
172 > hmac: 0210cf9d274b53f1550f657c378b29e8bfed1064
173 > md5: 77add1d5f41223d5582fca736a5cb335
174 > sha1: DA39A3EE5E6B4B0D3255BFEF95601890AFD80709
175 > sha1: A9993E364706816ABA3E25717850C26C9CD0D89D
176 > mask: 192.168.10.192/28
177 > mask: 192.168.10.206/32
178 > Failed: mask value too big in "192.168.10.206/33"
179 > mask: 0.0.0.0/0
180 > Failed: missing mask value in "192.168.10.206"
181 > Failed: "a.b.c.d" is not an IP address
182 > nhash: 19 0/61
183 > lc/uc: the quick BROWN FOX
184 > length: The quick abc
185 > lclpt: local-part
186 > lclpt: local-part
187 > quote: aZ09_.-Q "ab*cd" "abcd\"ef"
188 > quote: "nl(\n)"
189 > quote: "cr(\r)"
190 > quote: "tab( )"
191 > quote: "xff(ÿ)"
192 > quote: Empty>""<
193 > quote_local_part: abcd
194 > quote_local_part: O'Reilly
195 > quote_local_part: "a space"
196 > quote_local_part: ".something"
197 > quote_local_part: "something."
198 > quote_local_part: joe.bloggs
199 > quote_local_part: a!b
200 > quote_local_part: "x@y"
201 > quote_local_part: ab*cd
202 > quote_local_part: "x:y"
203 > quote_local_part: "abcd\"ef"
204 > quote_local_part: ""
205 > rxquote:aZ09\_\,\-Q ab\*cd abcd\"ef
206 > hexquote: \x01\x02\x03\x04\x05\x06\x07\x20\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x20\x10\x11\x12\x13\x14\x15\x16\x17\x20\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20\x20!"#$%&'\x20()*+,-./\x2001234567\x2089:;<=>?\x20@ABCDEFG\x20HIJKLMNO\x20PQRSTUVW\x20XYZ[\]^_\x20`abcdefg\x20hijklmno\x20pqrstuvw\x20xyz{|}~\x7f
207 > substr: ba 34 1
208 > substr: barb rhuba
209 > substr:
210 > substr:
211 > str2b64:YWJjZA==
212 > str2b64:VGhlIHF1aWNrIGJyb3duIAogZm94
213 > strlen: 0
214 > strlen: 1
215 > strlen: 8
216 > time_eval: 10
217 > time_eval: 7200
218 > time_eval: 86700
219 > time_eval: 788645
220 > Failed: string "14" is not an Exim time interval in "time_eval" operator
221 > Failed: string "rhubarb" is not an Exim time interval in "time_eval" operator
222 > time_interval: 0s
223 > time_interval: 44s
224 > time_interval: 1w4d13h46m39s
225 > Failed: string "-1" is not a positive number in "time_interval" operator
226 > Failed: string "rhubarb" is not a positive number in "time_interval" operator
227 >
228 > # stat is a bit tricky, but some of the fields of the aux-var directory
229 > # should be the same on all systems
230 >
231 > stat: 40755
232 > stat: drwxr-xr-x
233 > Failed: stat(/a/non/existent/file) failed: No such file or directory
234 >
235 > # "Operators" that have expanded arguments
236 >
237 > hash: jmg monty fbWx
238 > hash: abcX abX aX X
239 > nhash: 19 0/61
240 > length: The quick abc
241 > substr: ba 34 1
242 > substr:
243 >
244 > # Error forms
245 >
246 > Failed: missing or misplaced { or }
247 > Failed: "nonnumber" is not a number (in "hash" expansion)
248 > Failed: Too many arguments for "hash" (max is 3)
249 > Failed: "-2" is not a positive number (in "substr" expansion)
250 >
251 > # Skipped operators
252 >
253 > addrss: NO
254 > domain: NO
255 > escape: NO
256 > expand: NO
257 > hash: NO
258 > md5: NO
259 > mask: NO
260 >
261 > # Number suffixes in conditions
262 > 1k: y
263 > 1K: y
264 > 1M: y
265 > 1G: y
266 >
267 > # Numeric overflow
268 > # >32b should work, >64b not
269 >
270 > 1 > 2047M n
271 > 1 > 2048M n
272 > 1 > 4096000000 n
273 > 1 > 4096M n
274 > 1 > 4611686018427387904 n
275 > Failed: absolute value of integer "46116860184273879040" is too large (overflow)
276 >
277 > # Conditions
278 >
279 > 2=2: y
280 > 2==2: y
281 > 3=2: n
282 > 2==3: n
283 > !2=2: n
284 > !2==2: n
285 > !3=2: y
286 > !2==3: y
287 > 2>3: n
288 > 3>3: n
289 > 4>3: y
290 > 1>-1: y
291 > 2>=3: n
292 > 3>=3: y
293 > 4>=3: y
294 > 2<3: y
295 > 3<3: n
296 > 4<3: n
297 > 2<=3: y
298 > 3<=3: y
299 > 4<=3: n
300 > 5<=3: n
301 > -3<=1: y
302 >
303 > 5>3k: n
304 > 5>3m: n
305 > Failed: invalid integer "3z "
306 > Failed: integer expected but "a" found
307 >
308 > >0: n
309 > =: y
310 > -2<: y
311 > 08>07: y
312 > 011=11: y
313 >
314 > def:y y
315 > def:n n
316 > Failed: unknown variable "post" after "def:"
317 > def:h_f n
318 > def:h_f n
319 > Failed: missing or misplaced { or }
320 >
321 > exists: y
322 > exists: n
323 >
324 > eq: y
325 > eq: n
326 > !eq: n
327 > !eq: y
328 >
329 > eqi: y
330 > eqi: y
331 > eqi: n
332 > !eqi: n
333 > !eqi: n
334 > !eqi: y
335 >
336 > lt: y
337 > lti: n
338 > le: y
339 > lei: y
340 > gt: n
341 > gti: n
342 > ge: n
343 > gei: y
344 >
345 > isip: y 1.2.3.4
346 > isip4: y 1.2.3.4
347 > isip6: n 1.2.3.4
348 > isip: n 1:2:3:4
349 > isip4: n 1:2:3:4
350 > isip6: n 1:2:3:4
351 > isip: y ::1
352 > isip4: n ::1
353 > isip6: y ::1
354 > isip: y fe80::a00:20ff:fe86:a061
355 > isip4: n fe80::a00:20ff:fe86:a061
356 > isip6: y fe80::a00:20ff:fe86:a061
357 > isip: n rhubarb
358 > isip4: n rhubarb
359 > isip6: n rhubarb
360 >
361 > match: cdab
362 > match: cdab
363 > match: cdab
364 > Failed: "if" failed and "fail" requested
365 > match: cd[xyz]ab
366 >
367 > match_domain: yes
368 > match_domain: no
369 > match_domain: yes
370 > match_domain: yes
371 > match_domain: no
372 >
373 > >x@zz.aa.bb< [] >x@zz.aa.bb<
374 >
375 > >x@xxxabc< [] >x@xxxabc<
376 >
377 > match_address: yes
378 > match_address: yes
379 >
380 > match_local_part:yes
381 > match_local_part:yes
382 >
383 > match_ip: 01 true
384 > match_ip: 02
385 > match_ip: 03 true
386 > match_ip: 04 true
387 > match_ip: 05
388 > match_ip: 06
389 > match_ip: 07 true
390 > match_ip: 08 true
391 > match_ip: 09
392 > match_ip: 10 true
393 > Failed: "somename" is not an IP address
394 > match_ip: 12 true
395 > match_ip: 13 true
396 > match_ip: 14 true
397 > match_ip: 15 true
398 >
399 > queue_running: n
400 > first_delivery: n
401 >
402 > queue_running after or: y
403 > first_delivery after or: y
404 >
405 > # acl expansion condition
406 > acl if: Y:(0) [] []
407 > acl if: Y:(1) [argY] []
408 > acl if: N:(2) [argN] [arg2]
409 > Failed: error from acl "a_defer"
410 >
411 > # Default values for both if strings
412 >
413 > ${if eq{1}{1}} >true<
414 > ${if eq{1}{2}} ><
415 >
416 > # Lookups: DIR is the testing directory. In this test we can only use the
417 > # lookups that are required in all cases.
418 >
419 > CALLER
420 >
421 > ==X@Y
422 > ==*
423 > ==*@Z
424 > ==*
425 >
426 > data for a.b.c.d
427 > failed x.y.z
428 > data for *.p.q
429 > data for *.p.q
430 > data for *.p.q
431 > Failed: "lookup" failed and "fail" requested
432 > data for *
433 >
434 > q1: "abc"
435 > q2: "xyz":
436 > q3: "pqr" :
437 > q4: "a:b" abc continued data (make sure not key)
438 > q5: "\"quoted\""
439 > q6: "white space"
440 > q7: "b\\s"
441 >
442 > abc: abc
443 > a.b.c: *.b.c
444 > ab.c: *b.c
445 > xyz: ^X
446 > Xyz: ^X
447 > Zyz: ^Z
448 > a b: "^a +b"
449 > a b: "^a +b"
450 > a:b: lookup succeeded
451 > a.b: ^a\\.+b
452 > a..b: ^a\\.+b
453 > a9b: \N^a\d+b
454 > a99b: \N^a\d+b
455 >
456 > # Should give the same results as above because expansion does nothing
457 >
458 > abc: abc
459 > a.b.c: *.b.c
460 > ab.c: *b.c
461 > xyz: ^X
462 > Xyz: ^X
463 > Zyz: ^Z
464 > a b: "^a +b"
465 > a b: "^a +b"
466 > a:b: lookup succeeded
467 >
468 > # Should fail because of no expansion
469 >
470 > a.b: NO
471 > a..b: NO
472 > a9b: NO
473 > a99b: NO
474 >
475 > # But these should succeed
476 >
477 > a\:b: ^a\\.+b
478 > a\:Xb: ^a\\.+b
479 >
480 > # Some tests of case-(in)dependence
481 >
482 > MiXeD-CD: Data found for case-dependent MiXeD-CD
483 > MixeD-CD: NOT FOUND
484 > MiXeD-Ncd: Data found for case-independent MiXeD-nCD
485 > MixeD-Ncd: Data found for case-independent MiXeD-nCD
486 >
487 > # IP address (CIDR) lookups
488 >
489 > 1.2.3.4: data for 1.2.3.4
490 > 1.2.3.5:
491 > 1.2.3.5: data for *
492 > abcd::cdab: data for abcd::cdab
493 > 192.168.1.2: data for 192.168.0.0/16
494 > 192.168.5.6: data for 192.168.0.0/16
495 > abcd:abcd:: data for abcd:abcd::/32
496 > abcd:abcd:1:: data for abcd:abcd::/32
497 > abcd:abcd::3 data for abcd:abcd::/32
498 > Failed: lookup of "rhubarb" gave DEFER: "rhubarb" is not a valid iplsearch key (an IP address, with optional CIDR mask, is wanted): in a host list, use net-iplsearch as the search type
499 >
500 >
501 > # Nested Lookups - style 1
502 >
503 > The data for key1->key2
504 > Failed: "lookup" failed and "fail" requested
505 >
506 > # Nested Lookups - style 2
507 >
508 > The data for key1->key2
509 > failed for key4
510 >
511 > # Other nesting tests
512 >
513 > 1-in-1
514 > 2-in-2
515 > both-in-1,both-in-2
516 > Failed: "lookup" failed and "fail" requested
517 >
518 > # Lookup quotes for standardly expected lookups
519 >
520 > lsearch !@#$%^&*()_-+=|\~`1234567890{[}]qwertyuiop:;"'asdfghjkl<,>.?/zxcvbnm
521 > Failed: unknown lookup type "xxx"
522 >
523 > # Extract
524 >
525 > 2
526 > 2
527 > 2
528 > 2
529 > Empty:<>
530 > Empty:<>
531 > <3>
532 > <3>
533 > Empty:<>
534 > Empty:<>
535 > no Z
536 > no 4
537 > Failed: "extract" failed and "fail" requested
538 > Failed: "extract" failed and "fail" requested
539 > D
540 > a:b:c:d:e
541 > a
542 > e
543 > a
544 > FAIL
545 > b
546 >
547 > b
548 > three four
549 > Failed: first argument of "extract" must not be empty
550 > Failed: first argument of "extract" must not be empty
551 > b
552 >
553 > # Translation
554 >
555 > abcdea aaa xyz zbcdez
556 > abcdea a z zbcdez
557 > abcdea a abcdea
558 > abcdea abc z zzzdez
559 >
560 > # Boolean
561 > "TrUe" true EXPECT: true
562 > "FALSE" false EXPECT: false
563 > " yes" true EXPECT: true
564 > " no" false EXPECT: false
565 > "yes " true EXPECT: true
566 > Failed: unrecognised boolean value "-1"
567 > "0" false EXPECT: false
568 > "1" true EXPECT: true
569 > " 0 " false EXPECT: false
570 > " 1 " true EXPECT: true
571 > "1111111111111111111" true EXPECT: true
572 > "9" true EXPECT: true
573 > " " false EXPECT: false
574 > Failed: unrecognised boolean value "text"
575 > Failed: unrecognised boolean value "text"
576 > Failed: unrecognised boolean value "text"
577 > Failed: unrecognised boolean value "text"
578 > "00" false EXPECT: false
579 > "!true" false EXPECT: false
580 > "!false" true EXPECT: true
581 >
582 > "TrUe" true EXPECT: true
583 > "FALSE" false EXPECT: false
584 > " yes" true EXPECT: true
585 > " no" false EXPECT: false
586 > "yes " true EXPECT: true
587 > "-1" true EXPECT: true
588 > "0" false EXPECT: false
589 > "1" true EXPECT: true
590 > " 0 " false EXPECT: false
591 > " 1 " true EXPECT: true
592 > "1111111111111111111" true EXPECT: true
593 > "9" true EXPECT: true
594 > " " false EXPECT: false
595 > "text" true EXPECT: true
596 > " text" true EXPECT: true
597 > "text " true EXPECT: true
598 > " text " true EXPECT: true
599 > "00" true EXPECT: true
600 > "!true" false EXPECT: false
601 > "!false" true EXPECT: true
602 >
603 > # RFC 2047
604 >
605 > abcd abcd
606 > <:abcd:> =?iso-8859-8?Q?=3C=3Aabcd=3A=3E?=
607 > <:ab cd:> =?iso-8859-8?Q?=3C=3Aab_cd=3A=3E?=
608 > Long: =?iso-8859-8?Q?_here_we_go=3A_a_string_that_is_going_to_be_encoded=3A_?= =?iso-8859-8?Q?it_will_go_over_the_75-char_limit?=
609 > Long: =?iso-8859-8?Q?_here_we_go=3A_a_string_that_is_going_to_be_encoded=3A_?= =?iso-8859-8?Q?it_will_go_over_the_75-char_limit_by_a_long_way=3B_in?= =?iso-8859-8?Q?_fact_this_one_will_go_over_the_150_character_limit?=
610 >
611 > # RFC 2047 decode
612 >
613 > abcd abcd
614 > <:abcd:> <:abcd:>
615 > <:ab cd:> <:ab cd:>
616 > Long: here we go: a string that is going to be encoded: it will go over the 75-char limit
617 > Long: here we go: a string that is going to be encoded: it will go over the 75-char limit by a long way; in fact this one will go over the 150 character limit
618 >
619 > # UTF-8
620 >
621 > abcd abcd
622 > aÀÿd aÀÿd
623 > toobig a_d
624 >
625 > # Substitution
626 >
627 > ${sg{abcdefabcdef}{abc}{xyz}} =xyzdefxyzdef
628 > ${sg{ab:xy::z}{:}{::}} =ab::xy::::z
629 > ${sg{abcdefabcdef}{(..)[^c]}{>$1<}} =a><><><ef
630 > ${sg{abcdefabcdef}{(..)[^c]}{>\$1<}} =a>bc<>ef<>bc<ef
631 > ${sg{abcdefabcdef}{(..)[^c]}{>\N$1\N<}}=a>bc<>ef<>bc<ef
632 > ${sg{abbab}{a*}{+}} =++b+b++b+
633 >
634 > # File insertion
635 >
636 > Failed: missing or misplaced { or }
637 > abcde
638 12345
639
640 xyz
641
642 > abcde12345xyz
643 > abcde:12345::xyz:
644 > abcde - 12345 - - xyz -
645 > Failed: failed to open /non/exist/file: No such file or directory
646 > non-exist
647 > >abcde!12345!!xyz!<
648 >
649 > # Calling a command
650 >
651 > abcd
652 1234
653
654 > RC=0
655 > 1
656 > RC=0
657 > abcd
658 1234
659
660 > RC=0
661 > 2
662 > RC=1
663 > abcd
664 1234
665
666 > RC=1
667 > N
668 > RC=127
669 > >><<
670 > RC=0
671 > 1!=2
672 > RC=0
673 >
674 > # PRVS
675 >
676 > prvs=xxxxxxxxxx=userx@test.ex
677 > prvs=xxxxxxxxxx=userx@test.ex
678 > prvs=xxxxxxxxxx=userx@test.ex
679 >
680 > # Syntax errors
681 >
682 > Failed: prvs second argument must be a single digit
683 > Failed: prvs second argument must be a single digit
684 > Failed: prvs second argument must be a single digit
685 >
686 > # Correct checks; can't put explicit addresses in the tests, because they
687 > # will change over time.
688 >
689 > userx@test.ex
690 > result=1
691 >
692 > >1< >userx@test.ex< >1<
693 > result=1
694 >
695 > userx@test.ex
696 > result=1
697 >
698 > # Incorrect secret
699 >
700 > userx@test.ex
701 > result=
702 >
703 > 0
704 > result=
705 >
706 > # Non-prvs address
707 >
708 > >><<
709 > result=
710 >
711 > # Syntax errors
712 >
713 > Failed: "${tod_log" is not a known operator (or a } is missing in a variable reference)
714 > Failed: "${tod_log" is not a known operator (or a } is missing in a variable reference)
715 > Failed: missing } at end of string
716 > Failed: missing } at end of string
717 > Failed: hmac algorithm "xxx" is not recognised
718 > Failed: each subcondition inside an "and{...}" condition must be in its own {}
719 > Failed: unknown condition "xya" inside "and{...}" condition
720 > Failed: condition name expected, but found "${lookup{x}lsear" inside "and{...}" condition
721 > Failed: missing } at end of string - could be header name not terminated by colon
722 > Failed: missing or misplaced { or }
723 > Failed: missing or misplaced { or } - could be header name not terminated by colon
724 > Failed: each subcondition inside an "or{...}" condition must be in its own {}
725 > Failed: missing } at end of condition inside "or" group
726 > Failed: unknown condition "yes" inside "or{...}" condition
727 > Failed: non-digit after underscore in "substr_1_"
728 > Failed: non-digit after underscore in "substr__3"
729 >
730 > # Iterations: forany and forall
731 >
732 > yes
733 > yes
734 > yes
735 > no
736 > yes
737 > no
738 > no
739 > yes
740 > yes
741 >
742 > Failed: unknown condition "yes" inside "forany" condition
743 > Failed: missing } at end of condition inside "forany"
744 >
745 > yes
746 > no
747 > no
748 > no
749 >
750 > no
751 > yes
752 > yes
753 > yes
754 >
755 > # Expect yes
756 > outer=yes item='' (unset)
757 >
758 > # Expect no
759 > outer=no
760 >
761 > # Error inside nest - check message is helpful
762 > Failed: missing } at end of condition inside "forall" inside "forany" condition
763 >
764 >
765 > # Miscellaneous (for bug fixes, etc)
766 >
767 > true
768 >
769 >
770 > escape: B7·F2ò
771 >
772 > primary_hostname: myhost.test.ex
773 > match: cdab
774 > Failed: "if" failed and "fail" requested
775 > yes
776 > match_address: no
777 >
778 > -oMa sender_host_address =
779 > sender_host_port = 0
780 > -oMaa sender_host_authenticated =
781 > -oMai authenticated_id = CALLER
782 > -oMas authenticated_sender = CALLER@myhost.test.ex
783 > -oMi interface_address =
784 > interface_port = -1
785 > -oMr received_protocol =
786 > -oMs sender_host_name =
787 > -oMt sender_ident = CALLER
788 >
789 > -oMa sender_host_address = V4NET.0.0.1
790 > sender_host_port = 1234
791 > -oMaa sender_host_authenticated = AAA
792 > -oMai authenticated_id = philip
793 > -oMas authenticated_sender = xx@yy.zz
794 > -oMi interface_address = 1.1.1.1
795 > interface_port = 99
796 > -oMr received_protocol = special
797 > -oMt sender_ident = me
798 >
799 > -oMa sender_host_address = V4NET.0.0.1
800 > sender_host_port = 1234
801 > -oMs sender_host_name = my.host.name
802 >
803 > -oMs sender_host_name =
804 > host_lookup_failed = 1
805 >
806 > -p received_protocol = special
807 > -p sender_host_name = host.name
808 >
809 > -oMa sender_host_address = V4NET.0.0.1
810 > sender_host_port = 1234
811 > -oMaa sender_host_authenticated = AAA
812 > -oMai authenticated_id = philip
813 > -oMas authenticated_sender = xx@yy.zz
814 > -oMi interface_address = 1.1.1.1
815 > interface_port = 99
816 > -oMr received_protocol = special
817 > ----> No lookup yet: No
818 > -oMs sender_host_name = ten-1.test.ex
819 > -oMt sender_ident = me
820 >
821
822 **** SMTP testing session as if from host V4NET.0.0.1
823 **** but without any ident (RFC 1413) callback.
824 **** This is not for real!
825
826 550 Administrative prohibition
827
828 **** SMTP testing session as if from host V4NET.0.0.2
829 **** but without any ident (RFC 1413) callback.
830 **** This is not for real!
831
832 550 Administrative prohibition
833
834 **** SMTP testing session as if from host V4NET.0.0.0
835 **** but without any ident (RFC 1413) callback.
836 **** This is not for real!
837
838 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
839 250 OK
840 250 Accepted
841 354 Enter message, ending with "." on a line by itself
842 550 reply_address=<>
843 250 OK
844 250 Accepted
845 354 Enter message, ending with "." on a line by itself
846 550 reply_address=<a@b>
847 250 OK
848 250 Accepted
849 354 Enter message, ending with "." on a line by itself
850 550 reply_address=<c@d>
851 250 OK
852 250 Accepted
853 354 Enter message, ending with "." on a line by itself
854 550 reply_address=<>
855 250 OK
856 250 Accepted
857 354 Enter message, ending with "." on a line by itself
858 550 reply_address=<x@y>
859 221 myhost.test.ex closing connection
860
861 **** SMTP testing session as if from host V4NET.0.0.0
862 **** but without any ident (RFC 1413) callback.
863 **** This is not for real!
864
865 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
866 250 OK
867 250 Accepted
868 354 Enter message, ending with "." on a line by itself
869 550 reply_address=<>
870 221 myhost.test.ex closing connection
871
872 **** SMTP testing session as if from host V4NET.0.0.0
873 **** but without any ident (RFC 1413) callback.
874 **** This is not for real!
875
876 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
877 250 OK
878 250 Accepted
879 354 Enter message, ending with "." on a line by itself
880 550 reply_address=<>
881 221 myhost.test.ex closing connection
882 > match_ip: 15
883 > match_ip: 16
884 >
885 > in list
886 > in list
887 >