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