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