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