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