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