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