Debian Codegraph @

mh/tests/testsuite

raw
1 #! /bin/sh
2 # Generated from testsuite.at by GNU Autoconf 2.71.
3 #
4 # Copyright (C) 2009-2017, 2020-2021 Free Software Foundation, Inc.
5 #
6 # This test suite is free software; the Free Software Foundation gives
7 # unlimited permission to copy, distribute and modify it.
8 ## -------------------- ##
9 ## M4sh Initialization. ##
10 ## -------------------- ##
11
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 as_nop=:
15 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16 then :
17 emulate sh
18 NULLCMD=:
19 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else $as_nop
24 case `(set -o) 2>/dev/null` in #(
25 *posix*) :
26 set -o posix ;; #(
27 *) :
28 ;;
29 esac
30 fi
31
32
33
34 # Reset variables that may have inherited troublesome values from
35 # the environment.
36
37 # IFS needs to be set, to space, tab, and newline, in precisely that order.
38 # (If _AS_PATH_WALK were called with IFS unset, it would have the
39 # side effect of setting IFS to empty, thus disabling word splitting.)
40 # Quoting is to prevent editors from complaining about space-tab.
41 as_nl='
42 '
43 export as_nl
44 IFS=" "" $as_nl"
45
46 PS1='$ '
47 PS2='> '
48 PS4='+ '
49
50 # Ensure predictable behavior from utilities with locale-dependent output.
51 LC_ALL=C
52 export LC_ALL
53 LANGUAGE=C
54 export LANGUAGE
55
56 # We cannot yet rely on "unset" to work, but we need these variables
57 # to be unset--not just set to an empty or harmless value--now, to
58 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
59 # also avoids known problems related to "unset" and subshell syntax
60 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
61 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
62 do eval test \${$as_var+y} \
63 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
64 done
65
66 # Ensure that fds 0, 1, and 2 are open.
67 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
68 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
69 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
70
71 # The user is always right.
72 if ${PATH_SEPARATOR+false} :; then
73 PATH_SEPARATOR=:
74 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
75 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
76 PATH_SEPARATOR=';'
77 }
78 fi
79
80
81 # Find who we are. Look in the path if we contain no directory separator.
82 as_myself=
83 case $0 in #((
84 *[\\/]* ) as_myself=$0 ;;
85 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
86 for as_dir in $PATH
87 do
88 IFS=$as_save_IFS
89 case $as_dir in #(((
90 '') as_dir=./ ;;
91 */) ;;
92 *) as_dir=$as_dir/ ;;
93 esac
94 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
95 done
96 IFS=$as_save_IFS
97
98 ;;
99 esac
100 # We did not find ourselves, most probably we were run as `sh COMMAND'
101 # in which case we are not to be found in the path.
102 if test "x$as_myself" = x; then
103 as_myself=$0
104 fi
105 if test ! -f "$as_myself"; then
106 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
107 exit 1
108 fi
109
110
111 if test "x$CONFIG_SHELL" = x; then
112 as_bourne_compatible="as_nop=:
113 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
114 then :
115 emulate sh
116 NULLCMD=:
117 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
118 # is contrary to our usage. Disable this feature.
119 alias -g '\${1+\"\$@\"}'='\"\$@\"'
120 setopt NO_GLOB_SUBST
121 else \$as_nop
122 case \`(set -o) 2>/dev/null\` in #(
123 *posix*) :
124 set -o posix ;; #(
125 *) :
126 ;;
127 esac
128 fi
129 "
130 as_required="as_fn_return () { (exit \$1); }
131 as_fn_success () { as_fn_return 0; }
132 as_fn_failure () { as_fn_return 1; }
133 as_fn_ret_success () { return 0; }
134 as_fn_ret_failure () { return 1; }
135
136 exitcode=0
137 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
138 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
139 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
140 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
141 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
142 then :
143
144 else \$as_nop
145 exitcode=1; echo positional parameters were not saved.
146 fi
147 test x\$exitcode = x0 || exit 1
148 blah=\$(echo \$(echo blah))
149 test x\"\$blah\" = xblah || exit 1
150 test -x / || exit 1"
151 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
152 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
153 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
154 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
155 test \$(( 1 + 1 )) = 2 || exit 1"
156 if (eval "$as_required") 2>/dev/null
157 then :
158 as_have_required=yes
159 else $as_nop
160 as_have_required=no
161 fi
162 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
163 then :
164
165 else $as_nop
166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
167 as_found=false
168 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
169 do
170 IFS=$as_save_IFS
171 case $as_dir in #(((
172 '') as_dir=./ ;;
173 */) ;;
174 *) as_dir=$as_dir/ ;;
175 esac
176 as_found=:
177 case $as_dir in #(
178 /*)
179 for as_base in sh bash ksh sh5; do
180 # Try only shells that exist, to save several forks.
181 as_shell=$as_dir$as_base
182 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
183 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
184 then :
185 CONFIG_SHELL=$as_shell as_have_required=yes
186 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
187 then :
188 break 2
189 fi
190 fi
191 done;;
192 esac
193 as_found=false
194 done
195 IFS=$as_save_IFS
196 if $as_found
197 then :
198
199 else $as_nop
200 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
201 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
202 then :
203 CONFIG_SHELL=$SHELL as_have_required=yes
204 fi
205 fi
206
207
208 if test "x$CONFIG_SHELL" != x
209 then :
210 export CONFIG_SHELL
211 # We cannot yet assume a decent shell, so we have to provide a
212 # neutralization value for shells without unset; and this also
213 # works around shells that cannot unset nonexistent variables.
214 # Preserve -v and -x to the replacement shell.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 case $- in # ((((
219 *v*x* | *x*v* ) as_opts=-vx ;;
220 *v* ) as_opts=-v ;;
221 *x* ) as_opts=-x ;;
222 * ) as_opts= ;;
223 esac
224 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
225 # Admittedly, this is quite paranoid, since all the known shells bail
226 # out after a failed `exec'.
227 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
228 exit 255
229 fi
230
231 if test x$as_have_required = xno
232 then :
233 printf "%s\n" "$0: This script requires a shell more modern than all"
234 printf "%s\n" "$0: the shells that I found on your system."
235 if test ${ZSH_VERSION+y} ; then
236 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 printf "%s\n" "$0: Please tell [email protected] about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
271 {
272 return $1
273 } # as_fn_set_status
274
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
279 {
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
284 # as_fn_nop
285 # ---------
286 # Do nothing but, unlike ":", preserve the value of $?.
287 as_fn_nop ()
288 {
289 return $?
290 }
291 as_nop=as_fn_nop
292
293 # as_fn_mkdir_p
294 # -------------
295 # Create "$as_dir" as a directory, including parents if necessary.
296 as_fn_mkdir_p ()
297 {
298
299 case $as_dir in #(
300 -*) as_dir=./$as_dir;;
301 esac
302 test -d "$as_dir" || eval $as_mkdir_p || {
303 as_dirs=
304 while :; do
305 case $as_dir in #(
306 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
307 *) as_qdir=$as_dir;;
308 esac
309 as_dirs="'$as_qdir' $as_dirs"
310 as_dir=`$as_dirname -- "$as_dir" ||
311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
312 X"$as_dir" : 'X\(//\)[^/]' \| \
313 X"$as_dir" : 'X\(//\)$' \| \
314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
315 printf "%s\n" X"$as_dir" |
316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 s//\1/
318 q
319 }
320 /^X\(\/\/\)[^/].*/{
321 s//\1/
322 q
323 }
324 /^X\(\/\/\)$/{
325 s//\1/
326 q
327 }
328 /^X\(\/\).*/{
329 s//\1/
330 q
331 }
332 s/.*/./; q'`
333 test -d "$as_dir" && break
334 done
335 test -z "$as_dirs" || eval "mkdir $as_dirs"
336 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
337
338
339 } # as_fn_mkdir_p
340
341 # as_fn_executable_p FILE
342 # -----------------------
343 # Test if FILE is an executable regular file.
344 as_fn_executable_p ()
345 {
346 test -f "$1" && test -x "$1"
347 } # as_fn_executable_p
348 # as_fn_append VAR VALUE
349 # ----------------------
350 # Append the text in VALUE to the end of the definition contained in VAR. Take
351 # advantage of any shell optimizations that allow amortized linear growth over
352 # repeated appends, instead of the typical quadratic growth present in naive
353 # implementations.
354 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
355 then :
356 eval 'as_fn_append ()
357 {
358 eval $1+=\$2
359 }'
360 else $as_nop
361 as_fn_append ()
362 {
363 eval $1=\$$1\$2
364 }
365 fi # as_fn_append
366
367 # as_fn_arith ARG...
368 # ------------------
369 # Perform arithmetic evaluation on the ARGs, and store the result in the
370 # global $as_val. Take advantage of shells that can avoid forks. The arguments
371 # must be portable across $(()) and expr.
372 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
373 then :
374 eval 'as_fn_arith ()
375 {
376 as_val=$(( $* ))
377 }'
378 else $as_nop
379 as_fn_arith ()
380 {
381 as_val=`expr "$@" || test $? -eq 1`
382 }
383 fi # as_fn_arith
384
385
386 # as_fn_error STATUS ERROR [LINENO LOG_FD]
387 # ----------------------------------------
388 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
389 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
390 # script with STATUS, using 1 if that was 0.
391 as_fn_error ()
392 {
393 as_status=$1; test $as_status -eq 0 && as_status=1
394 if test "$4"; then
395 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
397 fi
398 printf "%s\n" "$as_me: error: $2" >&2
399 as_fn_exit $as_status
400 } # as_fn_error
401
402 if expr a : '\(a\)' >/dev/null 2>&1 &&
403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
404 as_expr=expr
405 else
406 as_expr=false
407 fi
408
409 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
410 as_basename=basename
411 else
412 as_basename=false
413 fi
414
415 as_me=`$as_basename -- "$0" ||
416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
417 X"$0" : 'X\(//\)$' \| \
418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 printf "%s\n" X/"$0" |
420 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 s//\1/
422 q
423 }
424 /^X\/\(\/\/\)$/{
425 s//\1/
426 q
427 }
428 /^X\/\(\/\).*/{
429 s//\1/
430 q
431 }
432 s/.*/./; q'`
433
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436 else
437 as_dirname=false
438 fi
439
440 # Avoid depending upon Character Ranges.
441 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
442 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
443 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
444 as_cr_digits='0123456789'
445 as_cr_alnum=$as_cr_Letters$as_cr_digits
446
447
448 as_lineno_1=$LINENO as_lineno_1a=$LINENO
449 as_lineno_2=$LINENO as_lineno_2a=$LINENO
450 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
451 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
452 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 sed -n '
454 p
455 /[$]LINENO/=
456 ' <$as_myself |
457 sed '
458 s/[$]LINENO.*/&-/
459 t lineno
460 b
461 :lineno
462 N
463 :loop
464 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
465 t loop
466 s/-\n.*//
467 ' >$as_me.lineno &&
468 chmod +x "$as_me.lineno" ||
469 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
470
471 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
472 # already done that, so ensure we don't try to do so again and fall
473 # in an infinite loop. This has already happened in practice.
474 _as_can_reexec=no; export _as_can_reexec
475 # Don't try to exec as it changes $[0], causing all sort of problems
476 # (the dirname of $[0] is not the place where we might find the
477 # original and so on. Autoconf is especially sensitive to this).
478 . "./$as_me.lineno"
479 # Exit status is that of the last command.
480 exit
481 }
482
483
484 # Determine whether it's possible to make 'echo' print without a newline.
485 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
486 # for compatibility with existing Makefiles.
487 ECHO_C= ECHO_N= ECHO_T=
488 case `echo -n x` in #(((((
489 -n*)
490 case `echo 'xy\c'` in
491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
492 xy) ECHO_C='\c';;
493 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
494 ECHO_T=' ';;
495 esac;;
496 *)
497 ECHO_N='-n';;
498 esac
499
500 # For backward compatibility with old third-party macros, we provide
501 # the shell variables $as_echo and $as_echo_n. New code should use
502 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
503 as_echo='printf %s\n'
504 as_echo_n='printf %s'
505
506
507 rm -f conf$$ conf$$.exe conf$$.file
508 if test -d conf$$.dir; then
509 rm -f conf$$.dir/conf$$.file
510 else
511 rm -f conf$$.dir
512 mkdir conf$$.dir 2>/dev/null
513 fi
514 if (echo >conf$$.file) 2>/dev/null; then
515 if ln -s conf$$.file conf$$ 2>/dev/null; then
516 as_ln_s='ln -s'
517 # ... but there are two gotchas:
518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
520 # In both cases, we have to default to `cp -pR'.
521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
522 as_ln_s='cp -pR'
523 elif ln conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s=ln
525 else
526 as_ln_s='cp -pR'
527 fi
528 else
529 as_ln_s='cp -pR'
530 fi
531 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
532 rmdir conf$$.dir 2>/dev/null
533
534 if mkdir -p . 2>/dev/null; then
535 as_mkdir_p='mkdir -p "$as_dir"'
536 else
537 test -d ./-p && rmdir ./-p
538 as_mkdir_p=false
539 fi
540
541 as_test_x='test -x'
542 as_executable_p=as_fn_executable_p
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 # How were we run?
557 at_cli_args="$@"
558
559
560 # Not all shells have the 'times' builtin; the subshell is needed to make
561 # sure we discard the 'times: not found' message from the shell.
562 at_times_p=false
563 (times) >/dev/null 2>&1 && at_times_p=:
564
565 # CLI Arguments to pass to the debugging scripts.
566 at_debug_args=
567 # -e sets to true
568 at_errexit_p=false
569 # Shall we be verbose? ':' means no, empty means yes.
570 at_verbose=:
571 at_quiet=
572 # Running several jobs in parallel, 0 means as many as test groups.
573 at_jobs=1
574 at_traceon=:
575 at_trace_echo=:
576 at_check_filter_trace=:
577
578 # Shall we keep the debug scripts? Must be `:' when the suite is
579 # run by a debug script, so that the script doesn't remove itself.
580 at_debug_p=false
581 # Display help message?
582 at_help_p=false
583 # Display the version message?
584 at_version_p=false
585 # List test groups?
586 at_list_p=false
587 # --clean
588 at_clean=false
589 # Test groups to run
590 at_groups=
591 # Whether to rerun failed tests.
592 at_recheck=
593 # Whether a write failure occurred
594 at_write_fail=0
595
596 # The directory we run the suite in. Default to . if no -C option.
597 at_dir=`pwd`
598 # An absolute reference to this testsuite script.
599 case $as_myself in
600 [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
601 * ) at_myself=$at_dir/$as_myself ;;
602 esac
603 # Whether -C is in effect.
604 at_change_dir=false
605
606 # Whether to enable colored test results.
607 at_color=no
608 # As many question marks as there are digits in the last test group number.
609 # Used to normalize the test group numbers so that `ls' lists them in
610 # numerical order.
611 at_format='???'
612 # Description of all the test groups.
613 at_help_all="1;install-mh.at:18;install-mh -auto;install-mh install-mh00;
614 2;install-mh.at:44;install-mh with invalid profile;install-mh install-mh01;
615 3;fmtcomp.at:31;literal;format fmtcomp;
616 4;fmtcomp.at:38;component;format fmtcomp;
617 5;fmtcomp.at:46;component formatted;format fmtcomp;
618 6;fmtcomp.at:55;function call;format fmtcomp;
619 7;fmtcomp.at:63;function call formatted;format fmtcomp;
620 8;fmtcomp.at:72;function call with literal argument;format fmtcomp;
621 9;fmtcomp.at:81;function call with numeric argument;format fmtcomp;
622 10;fmtcomp.at:90;function call with numeric argument and format spec;format fmtcomp;
623 11;fmtcomp.at:100;function call with component argument;format fmtcomp;
624 12;fmtcomp.at:110;nested function calls;format fmtcomp;
625 13;fmtcomp.at:122;nested function calls with typecast;format fmtcomp;
626 14;fmtcomp.at:135;lit;format fmtcomp;
627 15;fmtcomp.at:154;num;format fmtcomp;
628 16;fmtcomp.at:165;simple conditional;format fmtcomp;
629 17;fmtcomp.at:179;if-else;format fmtcomp;
630 18;fmtcomp.at:199;if-elsif-else;format fmtcomp;
631 19;fmtcomp.at:235;inline conditional;format fmtcomp;
632 20;fmtcomp.at:253;inline conditional (2);format fmtcomp;
633 21;fmtcomp.at:270;statement list;format fmtcomp;
634 22;fmtcomp.at:308;unknown function;format fmtdiag;
635 23;fmtcomp.at:317;condition syntax;format fmtdiag;
636 24;fmtcomp.at:325;unclosed control;format fmtcomp;
637 25;fmtcomp.at:343;extra ELSE;format fmtdiag;
638 26;fmtcomp.at:354;unwanted argument;format fmtdiag;
639 27;fmtcomp.at:362;missing argument;format fmtdiag;
640 28;fmtcomp.at:370;argument type mismatch;format fmtdiag;
641 29;fmtfunc.at:35;msg;fmtfunc format;
642 30;fmtfunc.at:47;size;fmtfunc format;
643 31;fmtfunc.at:59;num;fmtfunc format;
644 32;fmtfunc.at:70;lit;fmtfunc format;
645 33;fmtfunc.at:80;void;fmtfunc format;
646 34;fmtfunc.at:88;strlen;fmtfunc format;
647 35;fmtfunc.at:98;width;fmtfunc format;
648 36;fmtfunc.at:107;charleft;fmtfunc format;
649 37;fmtfunc.at:121;eq;fmtfunc format;
650 38;fmtfunc.at:130;ne;fmtfunc format;
651 39;fmtfunc.at:139;gt;fmtfunc format;
652 40;fmtfunc.at:148;match;fmtfunc format;
653 41;fmtfunc.at:159;amatch;fmtfunc format;
654 42;fmtfunc.at:170;plus;fmtfunc format;
655 43;fmtfunc.at:179;minus;fmtfunc format;
656 44;fmtfunc.at:188;divide;fmtfunc format;
657 45;fmtfunc.at:197;modulo;fmtfunc format;
658 46;fmtfunc.at:208;getenv;fmtfunc format;
659 47;fmtfunc.at:222;profile;fmtfunc format;
660 48;fmtfunc.at:243;nonzero;fmtfunc format;
661 49;fmtfunc.at:256;zero;fmtfunc format;
662 50;fmtfunc.at:269;null;fmtfunc format;
663 51;fmtfunc.at:280;nonnull;fmtfunc format;
664 52;fmtfunc.at:291;comp;fmtfunc format;
665 53;fmtfunc.at:300;compval;fmtfunc format;
666 54;fmtfunc.at:311;decode;fmtfunc format;
667 55;fmtfunc.at:323;trim;fmtfunc format;
668 56;fmtfunc.at:334;putstr;fmtfunc format;
669 57;fmtfunc.at:349;putstrf;fmtfunc format;
670 58;fmtfunc.at:360;putnum;fmtfunc format;
671 59;fmtfunc.at:377;putnumf;fmtfunc format;
672 60;fmtfunc.at:390;nodate;fmtfunc format;
673 61;fmtfunc.at:403;formataddr;fmtfunc format;
674 62;fmtfunc.at:415;sec;fmtfunc format;
675 63;fmtfunc.at:424;min;fmtfunc format;
676 64;fmtfunc.at:433;hour;fmtfunc format;
677 65;fmtfunc.at:442;wday;fmtfunc format;
678 66;fmtfunc.at:451;day;fmtfunc format;
679 67;fmtfunc.at:460;weekday;fmtfunc format;
680 68;fmtfunc.at:469;sday;fmtfunc format;
681 69;fmtfunc.at:481;mday;fmtfunc format;
682 70;fmtfunc.at:490;yday;fmtfunc format;
683 71;fmtfunc.at:499;mon;fmtfunc format;
684 72;fmtfunc.at:508;month;fmtfunc format;
685 73;fmtfunc.at:517;lmonth;fmtfunc format;
686 74;fmtfunc.at:526;year;fmtfunc format;
687 75;fmtfunc.at:537;tzone;fmtfunc format;
688 76;fmtfunc.at:556;szone;fmtfunc format;
689 77;fmtfunc.at:593;proper;fmtfunc format;
690 78;fmtfunc.at:603;friendly;fmtfunc format;
691 79;fmtfunc.at:616;addr;fmtfunc format;
692 80;fmtfunc.at:629;pers;fmtfunc format;
693 81;fmtfunc.at:644;mbox;fmtfunc format;
694 82;fmtfunc.at:653;mymbox;fmtfunc format;
695 83;fmtfunc.at:679;host;fmtfunc format;
696 84;fmtfunc.at:688;nohost;fmtfunc format;
697 85;mhseq.at:22;mhseq: existing message number;mhseq mh-sequences mhseq00;
698 86;mhseq.at:30;mhseq: not existing message number;mhseq mh-sequences mhseq01;
699 87;mhseq.at:40;mhseq: contiguous message range;mhseq mh-sequences mhseq02;
700 88;mhseq.at:51;mhseq: reversed contiguous message range;mhseq mh-sequences mhseq03;
701 89;mhseq.at:62;mhseq: reversed non-contiguous message range;mhseq mh-sequences mhseq04;
702 90;mhseq.at:73;mhseq: message range (left fixup);mhseq mh-sequences mhseq05;
703 91;mhseq.at:85;mhseq: message range (right fixup);mhseq mh-sequences mhseq06;
704 92;mhseq.at:97;mhseq: message range (both fixups);mhseq mh-sequences mhseq07;
705 93;mhseq.at:109;mhseq: non-existent message range (left);mhseq mh-sequences mhseq08;
706 94;mhseq.at:120;mhseq: non-existent message range (right);mhseq mh-sequences mhseq09;
707 95;mhseq.at:129;mhseq: message set addition;mhseq mh-sequences mhseq10;
708 96;mhseq.at:146;mhseq: message set optimization;mhseq mh-sequences mhseq11;
709 97;mhseq.at:169;mhseq: counted range (positive);mhseq mh-sequences mhseq12;
710 98;mhseq.at:180;mhseq: non-contiguous counted range (positive);mhseq mh-sequences mhseq13;
711 99;mhseq.at:193;mhseq: counted range (positive, left fixup);mhseq mh-sequences mhseq14;
712 100;mhseq.at:205;mhseq: counted range (positive, right fixup);mhseq mh-sequences mhseq15;
713 101;mhseq.at:216;mhseq: invalid counted range (negative);mhseq mh-sequences mhseq16;
714 102;mhseq.at:227;mhseq: counted range (negative);mhseq mh-sequences mhseq17;
715 103;mhseq.at:238;mhseq: non-contiguous counted range (negative);mhseq mh-sequences mhseq18;
716 104;mhseq.at:251;mhseq: counted range (negative, left fixup);mhseq mh-sequences mhseq19;
717 105;mhseq.at:262;mhseq: counted range (negative, right fixup);mhseq mh-sequences mhseq20;
718 106;mhseq.at:273;mhseq: invalid counted range (negative);mhseq mh-sequences mhseq21;
719 107;mhseq.at:284;mhseq: cur;mhseq mh-sequences mhseq22 cur;
720 108;mhseq.at:294;mhseq: cur:n -- default direction;mhseq mh-sequences mhseq23 cur:n;
721 109;mhseq.at:305;mhseq: cur:n -- explicit dir (negative);mhseq mh-sequences mhseq24 cur:n cur:n-;
722 110;mhseq.at:316;mhseq: cur:n -- explicit dir (positive);mhseq mh-sequences mhseq25 cur:n cur:n+;
723 111;mhseq.at:327;mhseq: next;mhseq mh-sequences mhseq26 next;
724 112;mhseq.at:338;mhseq: next:n -- default direction;mhseq mh-sequences mhseq27 next:n;
725 113;mhseq.at:349;mhseq: prev;mhseq mh-sequences mhseq28 prev;
726 114;mhseq.at:360;mhseq: prev:n -- default direction;mhseq mh-sequences mhseq29 prev:n;
727 115;mhseq.at:371;mhseq: first;mhseq mh-sequences mhseq30 first;
728 116;mhseq.at:381;mhseq: first:n -- default direction;mhseq mh-sequences mhseq31 first:n;
729 117;mhseq.at:392;mhseq: last;mhseq mh-sequences mhseq32 last;
730 118;mhseq.at:400;mhseq: last:n -- default direction;mhseq mh-sequences mhseq33 last:n;
731 119;mhseq.at:409;mhseq: sparse increasing message range (left fixup in the middle);mhseq mh-sequences mhseq34;
732 120;mhseq.at:428;mhseq: sparse increasing message range (right fixup in the middle);mhseq mh-sequences mhseq35;
733 121;mhseq.at:446;mhseq: sparse increasing message range (both fixups in the middle);mhseq mh-sequences mhseq36;
734 122;mhseq.at:464;mhseq: sparse decreasing message range (left fixup in the middle);mhseq mh-sequences mhseq37;
735 123;mhseq.at:482;mhseq: sparse decreasing message range (right fixup in the middle);mhseq mh-sequences mhseq38;
736 124;mhseq.at:500;mhseq: sparse decreasing message range (both fixups in the middle);mhseq mh-sequences mhseq39;
737 125;mhseq.at:518;mhseq: sparse counted range (positive, fixup);mhseq mh-sequences mhseq40;
738 126;mhseq.at:536;mhseq: sparse counted range (negative, fixup);mhseq mh-sequences mhseq41;
739 127;ali.at:20;ali: simple aliases;ali ali00;
740 128;ali.at:31;ali: recursive aliases;ali ali01;
741 129;ali.at:42;ali: file inlcusion;ali ali02 ali-include;
742 130;ali.at:56;ali: recursive inlcusion;ali ali03 ali-include-recursive;
743 131;ali.at:77;ali: group name;ali ali04 ali-group-name;
744 132;ali.at:87;ali: group id;ali ali05 ali-group-id ali-gid;
745 133;ali.at:100;ali: everybody;ali ali06 ali-everybody;
746 134;ali.at:111;ali: executable file inlcusion;ali ali02 ali-xinclude;
747 135;folder.at:20;folder;folder folder00 folder-print;
748 136;folder.at:30;folder -all;folder folder01 folder-all;
749 137;folder.at:45;folder -all -fast;folder folder02 folder-all folder-all-fast;
750 138;folder.at:56;folder +mbox;folder folder03 folder+mbox;
751 139;folder.at:69;folder +mbox msg;folder folder04 folder+mbox_msg;
752 140;folder.at:84;folder -pack;folder folder05 folder-pack;
753 141;folder.at:105;folder -pack=N;folder folder06 folder-pack=n;
754 142;folder.at:126;folder -push/-pop;folder folder07 folder-push folder-pop folder-push-pop;
755 143;folder.at:144;folder -create;folder folder08 folder-create;
756 144;inc.at:20;inc -notruncate;inc inc00 inc-notruncate;
757 145;inc.at:33;inc -truncate;inc inc01 inc-truncate;
758 146;inc.at:48;inc -folder;inc inc02 inc-folder;
759 147;inc.at:61;inc -changecur;inc inc03 inc-changecur;
760 148;inc.at:74;inc -nochangecur;inc inc04 inc-nochangecur;
761 149;inc.at:90;sparse numbering;inc inc05 inc-sparse;
762 150;inc.at:110;default inbox;inc inc06 inc-default;
763 151;scan.at:21;scan;scan scan00;
764 152;scan.at:34;scan -folder;scan scan01 scan-folder;
765 153;scan.at:46;scan -format;scan scan02 scan-format;
766 154;scan.at:58;scan -form;scan scan03 scan-form;
767 155;scan.at:71;scan -reverse;scan scan04 scan-reverse;
768 156;scan.at:83;Local mailbox;scan scan05 local-mailbox;
769 157;scan.at:96;default format;scan scan06 scan.default;
770 158;scan.at:108;mailx format;scan scan07 scan.mailx;
771 159;scan.at:120;size format;scan scan08 scan.size;
772 160;scan.at:132;time format;scan scan08 scan.time;
773 161;scan.at:144;timely format;scan scan09 scan.timely;
774 162;rmm.at:21;rmm msg;rmm rmm00 rmm-msg;
775 163;rmm.at:34;rmm seq;rmm rmm01 rmm-seq;
776 164;rmm.at:51;rmm rmmproc;rmm rmm02 rmmproc;
777 165;rmm.at:66;rmm -- null rmmproc;rmm rmm03 null-rmmproc;
778 166;rmf.at:21;rmf +folder;rmf rmf00 rmf+folder;
779 167;rmf.at:33;rmf;rmf rmf01 rmf_cur;
780 168;mark.at:20;mark -add;mark mark00 mark-add;
781 169;mark.at:31;mark -add -zero;mark mark01 mark-add-zero;
782 170;mark.at:44;mark -add -nopublic;mark mark02 mark-add-nopublic;
783 171;mark.at:54;mark -del;mark mark03 mark-del;
784 172;mark.at:65;mark -del -nopublic;mark mark04 mark-del-nopublic;
785 173;mark.at:79;mark -list;mark mark05 mark-list;
786 174;mhparam.at:20;mhparam -all;mhparam mhparam00 mhparam-all;
787 175;mhparam.at:37;mhparam comp;mhparam mhparam01 mhparam_comp;
788 176;mhparam.at:49;mhparam comp comp;mhparam mhparam02 mhparam_comp_comp;
789 177;mhparam.at:62;mhparam -component comp;mhparam mhparam03 mhparam-component_comp;
790 178;refile.at:20;refile;refile refile00;
791 179;refile.at:39;refile -file;refile refile01 refile-file;
792 180;refile.at:56;refile -copy;refile refile02 refile-copy;
793 181;mhpath.at:20;mhpath;mhpath mhpath00;
794 182;mhpath.at:29;mhpath +;mhpath mhpath01 mhpath+;
795 183;mhpath.at:38;mhpath msgs;mhpath mhpath02 mhparam_msgs;
796 184;mhpath.at:48;mhpath msgs (some nonexistent);mhpath mhpath03 mhparam_msgs_some_nonex;
797 185;mhpath.at:57;mhpath msgs (all nonexistent);mhpath mhpath04 mhparam_msgs_all_nonex;
798 186;mhpath.at:88;mhpath nonexistent;mhpath mhpath05 mhparam_nonexistent;
799 187;mhpath.at:97;mhpath new;mhpath mhpath06 mhparam_new;
800 188;mhl.at:20;mhl;mhl mhl00;
801 189;mhl.at:37;mhl repl;mhl mhl01 mhl.repl;
802 190;mhl.at:48;mhl usenet;mhl mhl02 mhl.usenet;
803 191;anno.at:20;anno;anno anno00;
804 192;anno.at:31;anno -component;anno anno01 anno-component;
805 193;anno.at:41;anno -component -text;anno anno02 anno-component-text;
806 194;anno.at:52;anno -component -text -nodate;anno anno03 anno-component-text-nodate;
807 195;pick.at:20;pick -from;pick pick00 pick-from;
808 196;pick.at:44;pick -from -sequence;pick pick01 pick-from-sequence;
809 197;pick.at:55;pick -search;pick pick02 pick-search;
810 198;pick.at:65;pick -search regex;pick pick03 pick-search-regex;
811 199;pick.at:77;pick -subject -from;pick pick04 pick-subject-from;
812 200;pick.at:98;pick -subject -and -from;pick pick05 pick-subject-and-from;
813 201;pick.at:119;pick -subject -or -from;pick pick06 pick-subject-or-from;
814 202;pick.at:161;pick: default precedence;pick pick07 pick-subject-and-from-or-from;
815 203;pick.at:220;pick: explicit precedence (1);pick pick08 pick-expl-1;
816 204;pick.at:279;pick: explicit precedence (2);pick pick09 pick-expl-2;
817 205;pick.at:313;pick -before;pick pick10 pick-before;
818 206;pick.at:323;pick --Component pattern;pick pick11 pick-component;
819 207;pick.at:345;pick --Component pattern -or ...;pick pick12 pick-component-or;
820 208;burst.at:20;burst digest;burst burst00 burst-digest;
821 209;burst.at:70;burst digest /w EB length limit;burst burst01 burst-digest-eb-length;
822 210;burst.at:120;burst mime;burst burst02 burst-mime;
823 211;burst.at:141;burst mime recursive;burst burst03 burst-mime-recursive;
824 212;burst.at:202;burst non-digest;burst burst04 burst-non-digest;
825 213;comp.at:21;comp -file;comp comp00 comp-file;
826 214;comp.at:41;comp -file (del);comp comp01 comp-file_del;
827 215;comp.at:55;comp file;comp comp02 comp_file;
828 216;comp.at:75;comp -use file;comp comp03 comp-use_file;
829 217;comp.at:104;comp +folder msg;comp comp04 comp+folder_msg;
830 218;comp.at:144;comp -draftfolder;comp comp05 comp-draftfolder draftfolder;
831 219;comp.at:165;comp +draftfolder -use;comp comp06 comp-draftfolder-use draftfolder;
832 220;comp.at:196;use Draft-Folder;comp comp07 draftfolder;
833 221;comp.at:218;-nodraftfolder;comp comp08 nodraftfolder draftfolder;
834 222;forw.at:21;forw msg;forw forw00 forw-msg;
835 223;forw.at:81;forw -format msg;forw forw01 forw-format-msg;
836 224;forw.at:141;forw msgs;forw forw02 forw-msgs;
837 225;forw.at:231;forw -build msg;forw forw03 forw-build-msg;
838 226;forw.at:270;forw -build -mime msgs;forw forw04 forw-build-mime-msg;
839 227;forw.at:315;forw -draftfolder;forw forw05 forw-draftfolder draftfolder;
840 228;forw.at:374;forw -file;forw forw06 forw-file;
841 229;forw.at:400;Draft-Folder;forw forw07 forw-draftfolder draftfolder;
842 230;forw.at:461;-nodraftfolder;forw forw08 forw-nodraftfolder nodraftfolder draftfolder;
843 231;repl.at:23;repl msg;repl repl00 repl-msg;
844 232;repl.at:52;repl -draftfolder;repl repl01 repl-draftfolder;
845 233;repl.at:82;Draft-Folder;repl repl02 repl-draftfolder draftfolder;
846 234;repl.at:114;-nodraftfolder;repl repl03 repl-nodraftfolder nodraftfolder draftfolder;
847 235;mhn.at:24;mhn -list;mhn mhn00 mhn-list;
848 236;mhn.at:47;mhn -list -realsize;mhn mhn01 mhn-list-realsize;
849 237;mhn.at:74;mhn -store;mhn mhn02 mhn-store;
850 238;mhn.at:131;mhn -store -auto;mhn mhn03 mhn-store-auto;
851 239;mhn.at:142;mhn -store -auto -part;mhn mhn04 mhn-store-auto-part;
852 240;mhn.at:150;mhn -store -auto (pathname safety);mhn mhn05 mhn-store-auto-safety;
853 241;mhn.at:257;mhn-storage;mhn mhn06 mhn-store-auto;
854 242;mhn.at:272;mhn-store-: all escapes;mhn mhn07 mhn-store_escapes;
855 243;mhn.at:288;mhn-store-: absolute path;mhn mhn08 mhn-store_abspath;
856 244;mhn.at:301;mhn-store-: +folder;mhn mhn09 mhn-store+folder;
857 245;mhn.at:314;mhn-store-: +;mhn mhn10 mhn-store+;
858 246;mhn.at:327;mhn-store-: pipe;mhn mhn11 mhn-store-pipe;
859 247;mhn.at:357;mhn-show msg1;mhn mhn12 mhn-show-msg1;
860 248;mhn.at:407;mhn-show type=tar;mhn mhn13 mhn-show-type=tar;
861 249;mhn.at:432;mhn-show unsupported type;mhn mhn14 mhn-show-unsupported-type;
862 250;mhn.at:451;mhn-show- variable (with subtype);mhn mhn15 mhn-show-with-subtype;
863 251;mhn.at:477;mhn-show- variable (without subtype);mhn mhn16 mhn-show-without-subtype;
864 252;mhn.at:506;mhn-compose: adjacent plain text;mhn mhn17 mhn-compose mhn-compose-01;
865 253;mhn.at:540;mhn-compose: plain text content types;mhn mhn18 mhn-compose mhn-compose-02;
866 254;mhn.at:586;mhn-compose: sharp at the beginning of a line;mhn mhn19 mhn-compose mhn-compose-03;
867 255;mhn.at:607;mhn-compose: charset;mhn mhn20 mhn-compose mhn-compose-04;
868 256;mhn.at:629;mhn-compose: forward;mhn mhn21 mhn-compose mhn-compose-05;
869 257;mhn.at:748;mhn-compose: forward (current folder);mhn mhn22 mhn-compose mhn-compose-06;
870 258;mhn.at:868;mhn-compose: forward (single message);mhn mhn23 mhn-compose mhn-compose-07;
871 259;mhn.at:934;mhn-compose: external data;mhn mhn24 mhn-compose mhn-compose-08;
872 260;mhn.at:966;mhn-compose: multipart;mhn mhn25 mhn-compose mhn-compose-09;
873 261;send.at:21;send file;send send00 send-file;
874 262;send.at:51;send files;send send01 send-files;
875 263;send.at:107;send -draft;send send02 send-draft;
876 264;send.at:143;send -draftfolder;send send03 send-draftfolder draftfolder draftmessage;
877 265;send.at:175;send -draftmessage;send send04 send-draftmessage draftfolder draftmessage;
878 266;sortm.at:22;sortm -textfield;sortm sortm00 sortm-textfield;
879 267;sortm.at:128;sortm -datefield;sortm sortm01 sortm-datefield;
880 268;fmtcnd00.at:37;if branch;format fmtcond fmtcnd00;
881 269;fmtcnd00.at:73;elseif branch;format fmtcond fmtcnd00;
882 270;fmtcnd00.at:100;else branch;format fmtcond fmtcnd00;
883 "
884 # List of the all the test groups.
885 at_groups_all=`printf "%s\n" "$at_help_all" | sed 's/;.*//'`
886
887 # at_fn_validate_ranges NAME...
888 # -----------------------------
889 # Validate and normalize the test group number contained in each variable
890 # NAME. Leading zeroes are treated as decimal.
891 at_fn_validate_ranges ()
892 {
893 for at_grp
894 do
895 eval at_value=\$$at_grp
896 if test $at_value -lt 1 || test $at_value -gt 270; then
897 printf "%s\n" "invalid test group: $at_value" >&2
898 exit 1
899 fi
900 case $at_value in
901 0*) # We want to treat leading 0 as decimal, like expr and test, but
902 # AS_VAR_ARITH treats it as octal if it uses $(( )).
903 # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
904 # expr fork, but it is not worth the effort to determine if the
905 # shell supports XSI when the user can just avoid leading 0.
906 eval $at_grp='`expr $at_value + 0`' ;;
907 esac
908 done
909 }
910
911 at_prev=
912 for at_option
913 do
914 # If the previous option needs an argument, assign it.
915 if test -n "$at_prev"; then
916 at_option=$at_prev=$at_option
917 at_prev=
918 fi
919
920 case $at_option in
921 *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
922 *) at_optarg= ;;
923 esac
924
925 case $at_option in
926 --help | -h )
927 at_help_p=:
928 ;;
929
930 --list | -l )
931 at_list_p=:
932 ;;
933
934 --version | -V )
935 at_version_p=:
936 ;;
937
938 --clean | -c )
939 at_clean=:
940 ;;
941
942 --color )
943 at_color=always
944 ;;
945 --color=* )
946 case $at_optarg in
947 no | never | none) at_color=never ;;
948 auto | tty | if-tty) at_color=auto ;;
949 always | yes | force) at_color=always ;;
950 *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'`
951 as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;;
952 esac
953 ;;
954
955 --debug | -d )
956 at_debug_p=:
957 ;;
958
959 --errexit | -e )
960 at_debug_p=:
961 at_errexit_p=:
962 ;;
963
964 --verbose | -v )
965 at_verbose=; at_quiet=:
966 ;;
967
968 --trace | -x )
969 at_traceon='set -x'
970 at_trace_echo=echo
971 at_check_filter_trace=at_fn_filter_trace
972 ;;
973
974 [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
975 at_fn_validate_ranges at_option
976 as_fn_append at_groups "$at_option$as_nl"
977 ;;
978
979 # Ranges
980 [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
981 at_range_start=`echo $at_option |tr -d X-`
982 at_fn_validate_ranges at_range_start
983 at_range=`printf "%s\n" "$at_groups_all" | \
984 sed -ne '/^'$at_range_start'$/,$p'`
985 as_fn_append at_groups "$at_range$as_nl"
986 ;;
987
988 -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
989 at_range_end=`echo $at_option |tr -d X-`
990 at_fn_validate_ranges at_range_end
991 at_range=`printf "%s\n" "$at_groups_all" | \
992 sed -ne '1,/^'$at_range_end'$/p'`
993 as_fn_append at_groups "$at_range$as_nl"
994 ;;
995
996 [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
997 [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
998 [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
999 [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
1000 [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
1001 [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
1002 at_range_start=`expr $at_option : '\(.*\)-'`
1003 at_range_end=`expr $at_option : '.*-\(.*\)'`
1004 if test $at_range_start -gt $at_range_end; then
1005 at_tmp=$at_range_end
1006 at_range_end=$at_range_start
1007 at_range_start=$at_tmp
1008 fi
1009 at_fn_validate_ranges at_range_start at_range_end
1010 at_range=`printf "%s\n" "$at_groups_all" | \
1011 sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
1012 as_fn_append at_groups "$at_range$as_nl"
1013 ;;
1014
1015 # Directory selection.
1016 --directory | -C )
1017 at_prev=--directory
1018 ;;
1019 --directory=* )
1020 at_change_dir=:
1021 at_dir=$at_optarg
1022 if test x- = "x$at_dir" ; then
1023 at_dir=./-
1024 fi
1025 ;;
1026
1027 # Parallel execution.
1028 --jobs | -j )
1029 at_jobs=0
1030 ;;
1031 --jobs=* | -j[0-9]* )
1032 if test -n "$at_optarg"; then
1033 at_jobs=$at_optarg
1034 else
1035 at_jobs=`expr X$at_option : 'X-j\(.*\)'`
1036 fi
1037 case $at_jobs in *[!0-9]*)
1038 at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
1039 as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;;
1040 esac
1041 ;;
1042
1043 # Keywords.
1044 --keywords | -k )
1045 at_prev=--keywords
1046 ;;
1047 --keywords=* )
1048 at_groups_selected=$at_help_all
1049 at_save_IFS=$IFS
1050 IFS=,
1051 set X $at_optarg
1052 shift
1053 IFS=$at_save_IFS
1054 for at_keyword
1055 do
1056 at_invert=
1057 case $at_keyword in
1058 '!'*)
1059 at_invert="-v"
1060 at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
1061 ;;
1062 esac
1063 # It is on purpose that we match the test group titles too.
1064 at_groups_selected=`printf "%s\n" "$at_groups_selected" |
1065 grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
1066 done
1067 # Smash the keywords.
1068 at_groups_selected=`printf "%s\n" "$at_groups_selected" | sed 's/;.*//'`
1069 as_fn_append at_groups "$at_groups_selected$as_nl"
1070 ;;
1071 --recheck)
1072 at_recheck=:
1073 ;;
1074
1075 *=*)
1076 at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
1077 # Reject names that are not valid shell variable names.
1078 case $at_envvar in
1079 '' | [0-9]* | *[!_$as_cr_alnum]* )
1080 as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
1081 esac
1082 at_value=`printf "%s\n" "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
1083 # Export now, but save eval for later and for debug scripts.
1084 export $at_envvar
1085 as_fn_append at_debug_args " $at_envvar='$at_value'"
1086 ;;
1087
1088 *) printf "%s\n" "$as_me: invalid option: $at_option" >&2
1089 printf "%s\n" "Try \`$0 --help' for more information." >&2
1090 exit 1
1091 ;;
1092 esac
1093 done
1094
1095 # Verify our last option didn't require an argument
1096 if test -n "$at_prev"
1097 then :
1098 as_fn_error $? "\`$at_prev' requires an argument"
1099 fi
1100
1101 # The file containing the suite.
1102 at_suite_log=$at_dir/$as_me.log
1103
1104 # Selected test groups.
1105 if test -z "$at_groups$at_recheck"; then
1106 at_groups=$at_groups_all
1107 else
1108 if test -n "$at_recheck" && test -r "$at_suite_log"; then
1109 at_oldfails=`sed -n '
1110 /^Failed tests:$/,/^Skipped tests:$/{
1111 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1112 }
1113 /^Unexpected passes:$/,/^## Detailed failed tests/{
1114 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1115 }
1116 /^## Detailed failed tests/q
1117 ' "$at_suite_log"`
1118 as_fn_append at_groups "$at_oldfails$as_nl"
1119 fi
1120 # Sort the tests, removing duplicates.
1121 at_groups=`printf "%s\n" "$at_groups" | sort -nu | sed '/^$/d'`
1122 fi
1123
1124 if test x"$at_color" = xalways \
1125 || { test x"$at_color" = xauto && test -t 1; }; then
1126 at_red=`printf '\033[0;31m'`
1127 at_grn=`printf '\033[0;32m'`
1128 at_lgn=`printf '\033[1;32m'`
1129 at_blu=`printf '\033[1;34m'`
1130 at_std=`printf '\033[m'`
1131 else
1132 at_red= at_grn= at_lgn= at_blu= at_std=
1133 fi
1134
1135 # Help message.
1136 if $at_help_p; then
1137 cat <<_ATEOF || at_write_fail=1
1138 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
1139
1140 Run all the tests, or the selected TESTS, given by numeric ranges, and
1141 save a detailed log file. Upon failure, create debugging scripts.
1142
1143 Do not change environment variables directly. Instead, set them via
1144 command line arguments. Set \`AUTOTEST_PATH' to select the executables
1145 to exercise. Each relative directory is expanded as build and source
1146 directories relative to the top level of this distribution.
1147 E.g., from within the build directory /tmp/foo-1.0, invoking this:
1148
1149 $ $0 AUTOTEST_PATH=bin
1150
1151 is equivalent to the following, assuming the source directory is /src/foo-1.0:
1152
1153 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
1154 _ATEOF
1155 cat <<_ATEOF || at_write_fail=1
1156
1157 Operation modes:
1158 -h, --help print the help message, then exit
1159 -V, --version print version number, then exit
1160 -c, --clean remove all the files this test suite might create and exit
1161 -l, --list describes all the tests, or the selected TESTS
1162 _ATEOF
1163 cat <<_ATEOF || at_write_fail=1
1164
1165 Execution tuning:
1166 -C, --directory=DIR
1167 change to directory DIR before starting
1168 --color[=never|auto|always]
1169 enable colored test results on terminal, or always
1170 -j, --jobs[=N]
1171 Allow N jobs at once; infinite jobs with no arg (default 1)
1172 -k, --keywords=KEYWORDS
1173 select the tests matching all the comma-separated KEYWORDS
1174 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
1175 --recheck select all tests that failed or passed unexpectedly last time
1176 -e, --errexit abort as soon as a test fails; implies --debug
1177 -v, --verbose force more detailed output
1178 default for debugging scripts
1179 -d, --debug inhibit clean up and top-level logging
1180 default for debugging scripts
1181 -x, --trace enable tests shell tracing
1182 _ATEOF
1183 cat <<_ATEOF || at_write_fail=1
1184
1185 Report bugs to <[email protected]>.
1186 General help using GNU software: <https://www.gnu.org/gethelp/>.
1187 _ATEOF
1188 exit $at_write_fail
1189 fi
1190
1191 # List of tests.
1192 if $at_list_p; then
1193 cat <<_ATEOF || at_write_fail=1
1194 GNU Mailutils 3.20 test suite test groups:
1195
1196 NUM: FILE-NAME:LINE TEST-GROUP-NAME
1197 KEYWORDS
1198
1199 _ATEOF
1200 # Pass an empty line as separator between selected groups and help.
1201 printf "%s\n" "$at_groups$as_nl$as_nl$at_help_all" |
1202 awk 'NF == 1 && FS != ";" {
1203 selected[$ 1] = 1
1204 next
1205 }
1206 /^$/ { FS = ";" }
1207 NF > 0 {
1208 if (selected[$ 1]) {
1209 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1210 if ($ 4) {
1211 lmax = 79
1212 indent = " "
1213 line = indent
1214 len = length (line)
1215 n = split ($ 4, a, " ")
1216 for (i = 1; i <= n; i++) {
1217 l = length (a[i]) + 1
1218 if (i > 1 && len + l > lmax) {
1219 print line
1220 line = indent " " a[i]
1221 len = length (line)
1222 } else {
1223 line = line " " a[i]
1224 len += l
1225 }
1226 }
1227 if (n)
1228 print line
1229 }
1230 }
1231 }' || at_write_fail=1
1232 exit $at_write_fail
1233 fi
1234 if $at_version_p; then
1235 printf "%s\n" "$as_me (GNU Mailutils 3.20)" &&
1236 cat <<\_ATEOF || at_write_fail=1
1237
1238 Copyright (C) 2021 Free Software Foundation, Inc.
1239 This test suite is free software; the Free Software Foundation gives
1240 unlimited permission to copy, distribute and modify it.
1241 _ATEOF
1242 exit $at_write_fail
1243 fi
1244
1245 # Should we print banners? Yes if more than one test is run.
1246 case $at_groups in #(
1247 *$as_nl* )
1248 at_print_banners=: ;; #(
1249 * ) at_print_banners=false ;;
1250 esac
1251 # Text for banner N, set to a single space once printed.
1252 # Banner 1. install-mh.at:17
1253 # Category starts at test group 1.
1254 at_banner_text_1="install-mh"
1255 # Banner 2. fmtcomp.at:17
1256 # Category starts at test group 3.
1257 at_banner_text_2="Format compilation"
1258 # Banner 3. fmtcomp.at:306
1259 # Category starts at test group 22.
1260 at_banner_text_3="Format error diagnostics"
1261 # Banner 4. fmtfunc.at:17
1262 # Category starts at test group 29.
1263 at_banner_text_4="Format functions"
1264 # Banner 5. mhseq.at:17
1265 # Category starts at test group 85.
1266 at_banner_text_5="mhseq"
1267 # Banner 6. ali.at:17
1268 # Category starts at test group 127.
1269 at_banner_text_6="ali"
1270 # Banner 7. folder.at:17
1271 # Category starts at test group 135.
1272 at_banner_text_7="folder"
1273 # Banner 8. inc.at:17
1274 # Category starts at test group 144.
1275 at_banner_text_8="inc"
1276 # Banner 9. scan.at:17
1277 # Category starts at test group 151.
1278 at_banner_text_9="scan"
1279 # Banner 10. rmm.at:17
1280 # Category starts at test group 162.
1281 at_banner_text_10="rmm"
1282 # Banner 11. rmf.at:17
1283 # Category starts at test group 166.
1284 at_banner_text_11="rmf"
1285 # Banner 12. mark.at:17
1286 # Category starts at test group 168.
1287 at_banner_text_12="mark"
1288 # Banner 13. mhparam.at:17
1289 # Category starts at test group 174.
1290 at_banner_text_13="mhparam"
1291 # Banner 14. refile.at:17
1292 # Category starts at test group 178.
1293 at_banner_text_14="refile"
1294 # Banner 15. mhpath.at:17
1295 # Category starts at test group 181.
1296 at_banner_text_15="mhpath"
1297 # Banner 16. mhl.at:17
1298 # Category starts at test group 188.
1299 at_banner_text_16="mhl"
1300 # Banner 17. anno.at:17
1301 # Category starts at test group 191.
1302 at_banner_text_17="anno"
1303 # Banner 18. pick.at:17
1304 # Category starts at test group 195.
1305 at_banner_text_18="pick"
1306 # Banner 19. burst.at:17
1307 # Category starts at test group 208.
1308 at_banner_text_19="burst"
1309 # Banner 20. comp.at:17
1310 # Category starts at test group 213.
1311 at_banner_text_20="comp"
1312 # Banner 21. forw.at:17
1313 # Category starts at test group 222.
1314 at_banner_text_21="forw"
1315 # Banner 22. repl.at:17
1316 # Category starts at test group 231.
1317 at_banner_text_22="repl"
1318 # Banner 23. mhn.at:17
1319 # Category starts at test group 235.
1320 at_banner_text_23="mhn"
1321 # Banner 24. send.at:17
1322 # Category starts at test group 261.
1323 at_banner_text_24="send"
1324 # Banner 25. sortm.at:17
1325 # Category starts at test group 266.
1326 at_banner_text_25="sortm"
1327 # Banner 26. fmtcnd00.at:17
1328 # Category starts at test group 268.
1329 at_banner_text_26=""
1330
1331 # Take any -C into account.
1332 if $at_change_dir ; then
1333 test x != "x$at_dir" && cd "$at_dir" \
1334 || as_fn_error $? "unable to change directory"
1335 at_dir=`pwd`
1336 fi
1337
1338 # Load the config files for any default variable assignments.
1339 for at_file in atconfig atlocal
1340 do
1341 test -r $at_file || continue
1342 . ./$at_file || as_fn_error $? "invalid content: $at_file"
1343 done
1344
1345 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1346 : "${at_top_build_prefix=$at_top_builddir}"
1347
1348 # Perform any assignments requested during argument parsing.
1349 eval "$at_debug_args"
1350
1351 # atconfig delivers names relative to the directory the test suite is
1352 # in, but the groups themselves are run in testsuite-dir/group-dir.
1353 if test -n "$at_top_srcdir"; then
1354 builddir=../..
1355 for at_dir_var in srcdir top_srcdir top_build_prefix
1356 do
1357 eval at_val=\$at_$at_dir_var
1358 case $at_val in
1359 [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1360 *) at_prefix=../../ ;;
1361 esac
1362 eval "$at_dir_var=\$at_prefix\$at_val"
1363 done
1364 fi
1365
1366 ## -------------------- ##
1367 ## Directory structure. ##
1368 ## -------------------- ##
1369
1370 # This is the set of directories and files used by this script
1371 # (non-literals are capitalized):
1372 #
1373 # TESTSUITE - the testsuite
1374 # TESTSUITE.log - summarizes the complete testsuite run
1375 # TESTSUITE.dir/ - created during a run, remains after -d or failed test
1376 # + at-groups/ - during a run: status of all groups in run
1377 # | + NNN/ - during a run: meta-data about test group NNN
1378 # | | + check-line - location (source file and line) of current AT_CHECK
1379 # | | + status - exit status of current AT_CHECK
1380 # | | + stdout - stdout of current AT_CHECK
1381 # | | + stder1 - stderr, including trace
1382 # | | + stderr - stderr, with trace filtered out
1383 # | | + test-source - portion of testsuite that defines group
1384 # | | + times - timestamps for computing duration
1385 # | | + pass - created if group passed
1386 # | | + xpass - created if group xpassed
1387 # | | + fail - created if group failed
1388 # | | + xfail - created if group xfailed
1389 # | | + skip - created if group skipped
1390 # + at-stop - during a run: end the run if this file exists
1391 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1392 # + 0..NNN/ - created for each group NNN, remains after -d or failed test
1393 # | + TESTSUITE.log - summarizes the group results
1394 # | + ... - files created during the group
1395
1396 # The directory the whole suite works in.
1397 # Should be absolute to let the user `cd' at will.
1398 at_suite_dir=$at_dir/$as_me.dir
1399 # The file containing the suite ($at_dir might have changed since earlier).
1400 at_suite_log=$at_dir/$as_me.log
1401 # The directory containing helper files per test group.
1402 at_helper_dir=$at_suite_dir/at-groups
1403 # Stop file: if it exists, do not start new jobs.
1404 at_stop_file=$at_suite_dir/at-stop
1405 # The fifo used for the job dispatcher.
1406 at_job_fifo=$at_suite_dir/at-job-fifo
1407
1408 if $at_clean; then
1409 test -d "$at_suite_dir" &&
1410 find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1411 rm -f -r "$at_suite_dir" "$at_suite_log"
1412 exit $?
1413 fi
1414
1415 # Don't take risks: use only absolute directories in PATH.
1416 #
1417 # For stand-alone test suites (ie. atconfig was not found),
1418 # AUTOTEST_PATH is relative to `.'.
1419 #
1420 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1421 # of the package. Then expand it into build/src parts, since users
1422 # may create executables in both places.
1423 AUTOTEST_PATH=`printf "%s\n" "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1424 at_path=
1425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 for as_dir in $AUTOTEST_PATH $PATH
1427 do
1428 IFS=$as_save_IFS
1429 case $as_dir in #(((
1430 '') as_dir=./ ;;
1431 */) ;;
1432 *) as_dir=$as_dir/ ;;
1433 esac
1434 test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
1435 case $as_dir in
1436 [\\/]* | ?:[\\/]* )
1437 as_fn_append at_path "$as_dir"
1438 ;;
1439 * )
1440 if test -z "$at_top_build_prefix"; then
1441 # Stand-alone test suite.
1442 as_fn_append at_path "$as_dir"
1443 else
1444 # Embedded test suite.
1445 as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR"
1446 as_fn_append at_path "$at_top_srcdir/$as_dir"
1447 fi
1448 ;;
1449 esac
1450 done
1451 IFS=$as_save_IFS
1452
1453
1454 # Now build and simplify PATH.
1455 #
1456 # There might be directories that don't exist, but don't redirect
1457 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1458 at_new_path=
1459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 for as_dir in $at_path
1461 do
1462 IFS=$as_save_IFS
1463 case $as_dir in #(((
1464 '') as_dir=./ ;;
1465 */) ;;
1466 *) as_dir=$as_dir/ ;;
1467 esac
1468 test -d "$as_dir" || continue
1469 case $as_dir in
1470 [\\/]* | ?:[\\/]* ) ;;
1471 * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1472 esac
1473 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1474 *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1475 $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1476 *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;;
1477 esac
1478 done
1479 IFS=$as_save_IFS
1480
1481 PATH=$at_new_path
1482 export PATH
1483
1484 # Setting up the FDs.
1485
1486
1487
1488 # 5 is the log file. Not to be overwritten if `-d'.
1489 if $at_debug_p; then
1490 at_suite_log=/dev/null
1491 else
1492 : >"$at_suite_log"
1493 fi
1494 exec 5>>"$at_suite_log"
1495
1496 # Banners and logs.
1497 printf "%s\n" "## ------------------------------ ##
1498 ## GNU Mailutils 3.20 test suite. ##
1499 ## ------------------------------ ##"
1500 {
1501 printf "%s\n" "## ------------------------------ ##
1502 ## GNU Mailutils 3.20 test suite. ##
1503 ## ------------------------------ ##"
1504 echo
1505
1506 printf "%s\n" "$as_me: command line was:"
1507 printf "%s\n" " \$ $0 $at_cli_args"
1508 echo
1509
1510 # If ChangeLog exists, list a few lines in case it might help determining
1511 # the exact version.
1512 if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
1513 printf "%s\n" "## ---------- ##
1514 ## ChangeLog. ##
1515 ## ---------- ##"
1516 echo
1517 sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
1518 echo
1519 fi
1520
1521 {
1522 cat <<_ASUNAME
1523 ## --------- ##
1524 ## Platform. ##
1525 ## --------- ##
1526
1527 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1528 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1529 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1530 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1531 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1532
1533 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1534 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1535
1536 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1537 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1538 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1539 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1540 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1541 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1542 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1543
1544 _ASUNAME
1545
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549 IFS=$as_save_IFS
1550 case $as_dir in #(((
1551 '') as_dir=./ ;;
1552 */) ;;
1553 *) as_dir=$as_dir/ ;;
1554 esac
1555 printf "%s\n" "PATH: $as_dir"
1556 done
1557 IFS=$as_save_IFS
1558
1559 }
1560 echo
1561
1562 # Contents of the config files.
1563 for at_file in atconfig atlocal
1564 do
1565 test -r $at_file || continue
1566 printf "%s\n" "$as_me: $at_file:"
1567 sed 's/^/| /' $at_file
1568 echo
1569 done
1570 } >&5
1571
1572 # This setting is needed on FreeBSD to ensure the LD_LIBRARY_PATH overrides
1573 # the DT_RPATH tag in ELF header. See
1574 # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27510
1575 # for details.
1576 LD_LIBRARY_PATH_RPATH=y
1577 export LD_LIBRARY_PATH_RPATH
1578
1579
1580 ## ------------------------- ##
1581 ## Autotest shell functions. ##
1582 ## ------------------------- ##
1583
1584 # at_fn_banner NUMBER
1585 # -------------------
1586 # Output banner NUMBER, provided the testsuite is running multiple groups and
1587 # this particular banner has not yet been printed.
1588 at_fn_banner ()
1589 {
1590 $at_print_banners || return 0
1591 eval at_banner_text=\$at_banner_text_$1
1592 test "x$at_banner_text" = "x " && return 0
1593 eval "at_banner_text_$1=\" \""
1594 if test -z "$at_banner_text"; then
1595 $at_first || echo
1596 else
1597 printf "%s\n" "$as_nl$at_banner_text$as_nl"
1598 fi
1599 } # at_fn_banner
1600
1601 # at_fn_check_prepare_notrace REASON LINE
1602 # ---------------------------------------
1603 # Perform AT_CHECK preparations for the command at LINE for an untraceable
1604 # command; REASON is the reason for disabling tracing.
1605 at_fn_check_prepare_notrace ()
1606 {
1607 $at_trace_echo "Not enabling shell tracing (command contains $1)"
1608 printf "%s\n" "$2" >"$at_check_line_file"
1609 at_check_trace=: at_check_filter=:
1610 : >"$at_stdout"; : >"$at_stderr"
1611 }
1612
1613 # at_fn_check_prepare_trace LINE
1614 # ------------------------------
1615 # Perform AT_CHECK preparations for the command at LINE for a traceable
1616 # command.
1617 at_fn_check_prepare_trace ()
1618 {
1619 printf "%s\n" "$1" >"$at_check_line_file"
1620 at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace
1621 : >"$at_stdout"; : >"$at_stderr"
1622 }
1623
1624 # at_fn_check_prepare_dynamic COMMAND LINE
1625 # ----------------------------------------
1626 # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
1627 # preparation function.
1628 at_fn_check_prepare_dynamic ()
1629 {
1630 case $1 in
1631 *$as_nl*)
1632 at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
1633 *)
1634 at_fn_check_prepare_trace "$2" ;;
1635 esac
1636 }
1637
1638 # at_fn_filter_trace
1639 # ------------------
1640 # Remove the lines in the file "$at_stderr" generated by "set -x" and print
1641 # them to stderr.
1642 at_fn_filter_trace ()
1643 {
1644 mv "$at_stderr" "$at_stder1"
1645 grep '^ *+' "$at_stder1" >&2
1646 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1647 }
1648
1649 # at_fn_log_failure FILE-LIST
1650 # ---------------------------
1651 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1652 # with a failure exit code.
1653 at_fn_log_failure ()
1654 {
1655 for file
1656 do printf "%s\n" "$file:"; sed 's/^/> /' "$file"; done
1657 echo 1 > "$at_status_file"
1658 exit 1
1659 }
1660
1661 # at_fn_check_skip EXIT-CODE LINE
1662 # -------------------------------
1663 # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
1664 # the test group subshell with that same exit code. Use LINE in any report
1665 # about test failure.
1666 at_fn_check_skip ()
1667 {
1668 case $1 in
1669 99) echo 99 > "$at_status_file"; at_failed=:
1670 printf "%s\n" "$2: hard failure"; exit 99;;
1671 77) echo 77 > "$at_status_file"; exit 77;;
1672 esac
1673 }
1674
1675 # at_fn_check_status EXPECTED EXIT-CODE LINE
1676 # ------------------------------------------
1677 # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
1678 # Otherwise, if it is 77 or 99, exit the test group subshell with that same
1679 # exit code; if it is anything else print an error message referring to LINE,
1680 # and fail the test.
1681 at_fn_check_status ()
1682 {
1683 case $2 in
1684 $1 ) ;;
1685 77) echo 77 > "$at_status_file"; exit 77;;
1686 99) echo 99 > "$at_status_file"; at_failed=:
1687 printf "%s\n" "$3: hard failure"; exit 99;;
1688 *) printf "%s\n" "$3: exit code was $2, expected $1"
1689 at_failed=:;;
1690 esac
1691 }
1692
1693 # at_fn_diff_devnull FILE
1694 # -----------------------
1695 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
1696 # invocations.
1697 at_fn_diff_devnull ()
1698 {
1699 test -s "$1" || return 0
1700 $at_diff "$at_devnull" "$1"
1701 }
1702
1703 # at_fn_test NUMBER
1704 # -----------------
1705 # Parse out test NUMBER from the tail of this file.
1706 at_fn_test ()
1707 {
1708 eval at_sed=\$at_sed$1
1709 sed "$at_sed" "$at_myself" > "$at_test_source"
1710 }
1711
1712 # at_fn_create_debugging_script
1713 # -----------------------------
1714 # Create the debugging script $at_group_dir/run which will reproduce the
1715 # current test group.
1716 at_fn_create_debugging_script ()
1717 {
1718 {
1719 echo "#! /bin/sh" &&
1720 echo 'test ${ZSH_VERSION+y} && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1721 printf "%s\n" "cd '$at_dir'" &&
1722 printf "%s\n" "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1723 echo 'exit 1'
1724 } >"$at_group_dir/run" &&
1725 chmod +x "$at_group_dir/run"
1726 }
1727
1728 ## -------------------------------- ##
1729 ## End of autotest shell functions. ##
1730 ## -------------------------------- ##
1731 {
1732 printf "%s\n" "## ------------------ ##
1733 ## Running the tests. ##
1734 ## ------------------ ##"
1735 } >&5
1736
1737 at_start_date=`date`
1738 at_start_time=`date +%s 2>/dev/null`
1739 printf "%s\n" "$as_me: starting at: $at_start_date" >&5
1740
1741 # Create the master directory if it doesn't already exist.
1742 as_dir="$at_suite_dir"; as_fn_mkdir_p ||
1743 as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5
1744
1745 # Can we diff with `/dev/null'? DU 5.0 refuses.
1746 if diff /dev/null /dev/null >/dev/null 2>&1; then
1747 at_devnull=/dev/null
1748 else
1749 at_devnull=$at_suite_dir/devnull
1750 >"$at_devnull"
1751 fi
1752
1753 # Use `diff -u' when possible.
1754 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1755 then
1756 at_diff='diff -u'
1757 else
1758 at_diff=diff
1759 fi
1760
1761 # Get the last needed group.
1762 for at_group in : $at_groups; do :; done
1763
1764 # Extract the start and end lines of each test group at the tail
1765 # of this file
1766 awk '
1767 BEGIN { FS="" }
1768 /^#AT_START_/ {
1769 start = NR
1770 }
1771 /^#AT_STOP_/ {
1772 test = substr ($ 0, 10)
1773 print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1774 if (test == "'"$at_group"'") exit
1775 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1776 . "$at_suite_dir/at-source-lines" ||
1777 as_fn_error $? "cannot create test line number cache" "$LINENO" 5
1778 rm -f "$at_suite_dir/at-source-lines"
1779
1780 # Set number of jobs for `-j'; avoid more jobs than test groups.
1781 set X $at_groups; shift; at_max_jobs=$#
1782 if test $at_max_jobs -eq 0; then
1783 at_jobs=1
1784 fi
1785 if test $at_jobs -ne 1 &&
1786 { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
1787 at_jobs=$at_max_jobs
1788 fi
1789
1790 # If parallel mode, don't output banners, don't split summary lines.
1791 if test $at_jobs -ne 1; then
1792 at_print_banners=false
1793 at_quiet=:
1794 fi
1795
1796 # Set up helper dirs.
1797 rm -rf "$at_helper_dir" &&
1798 mkdir "$at_helper_dir" &&
1799 cd "$at_helper_dir" &&
1800 { test -z "$at_groups" || mkdir $at_groups; } ||
1801 as_fn_error $? "testsuite directory setup failed" "$LINENO" 5
1802
1803 # Functions for running a test group. We leave the actual
1804 # test group execution outside of a shell function in order
1805 # to avoid hitting zsh 4.x exit status bugs.
1806
1807 # at_fn_group_prepare
1808 # -------------------
1809 # Prepare for running a test group.
1810 at_fn_group_prepare ()
1811 {
1812 # The directory for additional per-group helper files.
1813 at_job_dir=$at_helper_dir/$at_group
1814 # The file containing the location of the last AT_CHECK.
1815 at_check_line_file=$at_job_dir/check-line
1816 # The file containing the exit status of the last command.
1817 at_status_file=$at_job_dir/status
1818 # The files containing the output of the tested commands.
1819 at_stdout=$at_job_dir/stdout
1820 at_stder1=$at_job_dir/stder1
1821 at_stderr=$at_job_dir/stderr
1822 # The file containing the code for a test group.
1823 at_test_source=$at_job_dir/test-source
1824 # The file containing dates.
1825 at_times_file=$at_job_dir/times
1826
1827 # Be sure to come back to the top test directory.
1828 cd "$at_suite_dir"
1829
1830 # Clearly separate the test groups when verbose.
1831 $at_first || $at_verbose echo
1832
1833 at_group_normalized=$at_group
1834
1835 eval 'while :; do
1836 case $at_group_normalized in #(
1837 '"$at_format"'*) break;;
1838 esac
1839 at_group_normalized=0$at_group_normalized
1840 done'
1841
1842
1843 # Create a fresh directory for the next test group, and enter.
1844 # If one already exists, the user may have invoked ./run from
1845 # within that directory; we remove the contents, but not the
1846 # directory itself, so that we aren't pulling the rug out from
1847 # under the shell's notion of the current directory.
1848 at_group_dir=$at_suite_dir/$at_group_normalized
1849 at_group_log=$at_group_dir/$as_me.log
1850 if test -d "$at_group_dir"
1851 then
1852 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \;
1853 rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??*
1854 fi ||
1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
1856 printf "%s\n" "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
1857 # Be tolerant if the above `rm' was not able to remove the directory.
1858 as_dir="$at_group_dir"; as_fn_mkdir_p
1859
1860 echo 0 > "$at_status_file"
1861
1862 # In verbose mode, append to the log file *and* show on
1863 # the standard output; in quiet mode only write to the log.
1864 if test -z "$at_verbose"; then
1865 at_tee_pipe='tee -a "$at_group_log"'
1866 else
1867 at_tee_pipe='cat >> "$at_group_log"'
1868 fi
1869 }
1870
1871 # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
1872 # -------------------------------------------------
1873 # Declare the test group ORDINAL, located at LINE with group description DESC,
1874 # and residing under BANNER. Use PAD to align the status column.
1875 at_fn_group_banner ()
1876 {
1877 at_setup_line="$2"
1878 test -n "$5" && at_fn_banner $5
1879 at_desc="$3"
1880 case $1 in
1881 [0-9]) at_desc_line=" $1: ";;
1882 [0-9][0-9]) at_desc_line=" $1: " ;;
1883 *) at_desc_line="$1: " ;;
1884 esac
1885 as_fn_append at_desc_line "$3$4"
1886 $at_quiet printf %s "$at_desc_line"
1887 echo "# -*- compilation -*-" >> "$at_group_log"
1888 }
1889
1890 # at_fn_group_postprocess
1891 # -----------------------
1892 # Perform cleanup after running a test group.
1893 at_fn_group_postprocess ()
1894 {
1895 # Be sure to come back to the suite directory, in particular
1896 # since below we might `rm' the group directory we are in currently.
1897 cd "$at_suite_dir"
1898
1899 if test ! -f "$at_check_line_file"; then
1900 sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1901 A failure happened in a test group before any test could be
1902 run. This means that test suite is improperly designed. Please
1903 report this failure to <[email protected]>.
1904 _ATEOF
1905 printf "%s\n" "$at_setup_line" >"$at_check_line_file"
1906 at_status=99
1907 fi
1908 $at_verbose printf %s "$at_group. $at_setup_line: "
1909 printf %s "$at_group. $at_setup_line: " >> "$at_group_log"
1910 case $at_xfail:$at_status in
1911 yes:0)
1912 at_msg="UNEXPECTED PASS"
1913 at_res=xpass
1914 at_errexit=$at_errexit_p
1915 at_color=$at_red
1916 ;;
1917 no:0)
1918 at_msg="ok"
1919 at_res=pass
1920 at_errexit=false
1921 at_color=$at_grn
1922 ;;
1923 *:77)
1924 at_msg='skipped ('`cat "$at_check_line_file"`')'
1925 at_res=skip
1926 at_errexit=false
1927 at_color=$at_blu
1928 ;;
1929 no:* | *:99)
1930 at_msg='FAILED ('`cat "$at_check_line_file"`')'
1931 at_res=fail
1932 at_errexit=$at_errexit_p
1933 at_color=$at_red
1934 ;;
1935 yes:*)
1936 at_msg='expected failure ('`cat "$at_check_line_file"`')'
1937 at_res=xfail
1938 at_errexit=false
1939 at_color=$at_lgn
1940 ;;
1941 esac
1942 echo "$at_res" > "$at_job_dir/$at_res"
1943 # In parallel mode, output the summary line only afterwards.
1944 if test $at_jobs -ne 1 && test -n "$at_verbose"; then
1945 printf "%s\n" "$at_desc_line $at_color$at_msg$at_std"
1946 else
1947 # Make sure there is a separator even with long titles.
1948 printf "%s\n" " $at_color$at_msg$at_std"
1949 fi
1950 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1951 case $at_status in
1952 0|77)
1953 # $at_times_file is only available if the group succeeded.
1954 # We're not including the group log, so the success message
1955 # is written in the global log separately. But we also
1956 # write to the group log in case they're using -d.
1957 if test -f "$at_times_file"; then
1958 at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')'
1959 rm -f "$at_times_file"
1960 fi
1961 printf "%s\n" "$at_log_msg" >> "$at_group_log"
1962 printf "%s\n" "$at_log_msg" >&5
1963
1964 # Cleanup the group directory, unless the user wants the files
1965 # or the success was unexpected.
1966 if $at_debug_p || test $at_res = xpass; then
1967 at_fn_create_debugging_script
1968 if test $at_res = xpass && $at_errexit; then
1969 echo stop > "$at_stop_file"
1970 fi
1971 else
1972 if test -d "$at_group_dir"; then
1973 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1974 rm -fr "$at_group_dir"
1975 fi
1976 rm -f "$at_test_source"
1977 fi
1978 ;;
1979 *)
1980 # Upon failure, include the log into the testsuite's global
1981 # log. The failure message is written in the group log. It
1982 # is later included in the global log.
1983 printf "%s\n" "$at_log_msg" >> "$at_group_log"
1984
1985 # Upon failure, keep the group directory for autopsy, and create
1986 # the debugging script. With -e, do not start any further tests.
1987 at_fn_create_debugging_script
1988 if $at_errexit; then
1989 echo stop > "$at_stop_file"
1990 fi
1991 ;;
1992 esac
1993 }
1994
1995
1996 ## ------------ ##
1997 ## Driver loop. ##
1998 ## ------------ ##
1999
2000
2001 if (set -m && set +m && set +b) >/dev/null 2>&1; then
2002 set +b
2003 at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
2004 else
2005 at_job_control_on=: at_job_control_off=: at_job_group=
2006 fi
2007
2008 for at_signal in 1 2 15; do
2009 trap 'set +x; set +e
2010 $at_job_control_off
2011 at_signal='"$at_signal"'
2012 echo stop > "$at_stop_file"
2013 trap "" $at_signal
2014 at_pgids=
2015 for at_pgid in `jobs -p 2>/dev/null`; do
2016 at_pgids="$at_pgids $at_job_group$at_pgid"
2017 done
2018 test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
2019 wait
2020 if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
2021 echo >&2
2022 fi
2023 at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
2024 set x $at_signame
2025 test 0 -gt 2 && at_signame=$at_signal
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
2027 printf "%s\n" "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
2028 as_fn_arith 128 + $at_signal && exit_status=$as_val
2029 as_fn_exit $exit_status' $at_signal
2030 done
2031
2032 rm -f "$at_stop_file"
2033 at_first=:
2034
2035 if test $at_jobs -ne 1 &&
2036 rm -f "$at_job_fifo" &&
2037 test -n "$at_job_group" &&
2038 ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null
2039 then
2040 # FIFO job dispatcher.
2041
2042 trap 'at_pids=
2043 for at_pid in `jobs -p`; do
2044 at_pids="$at_pids $at_job_group$at_pid"
2045 done
2046 if test -n "$at_pids"; then
2047 at_sig=TSTP
2048 test ${TMOUT+y} && at_sig=STOP
2049 kill -$at_sig $at_pids 2>/dev/null
2050 fi
2051 kill -STOP $$
2052 test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
2053
2054 echo
2055 # Turn jobs into a list of numbers, starting from 1.
2056 at_joblist=`printf "%s\n" "$at_groups" | sed -n 1,${at_jobs}p`
2057
2058 set X $at_joblist
2059 shift
2060 for at_group in $at_groups; do
2061 $at_job_control_on 2>/dev/null
2062 (
2063 # Start one test group.
2064 $at_job_control_off
2065 if $at_first; then
2066 exec 7>"$at_job_fifo"
2067 else
2068 exec 6<&-
2069 fi
2070 trap 'set +x; set +e
2071 trap "" PIPE
2072 echo stop > "$at_stop_file"
2073 echo >&7
2074 as_fn_exit 141' PIPE
2075 at_fn_group_prepare
2076 if cd "$at_group_dir" &&
2077 at_fn_test $at_group &&
2078 . "$at_test_source"
2079 then :; else
2080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
2081 printf "%s\n" "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
2082 at_failed=:
2083 fi
2084 at_fn_group_postprocess
2085 echo >&7
2086 ) &
2087 $at_job_control_off
2088 if $at_first; then
2089 at_first=false
2090 exec 6<"$at_job_fifo" 7>"$at_job_fifo"
2091 fi
2092 shift # Consume one token.
2093 if test $# -gt 0; then :; else
2094 read at_token <&6 || break
2095 set x $*
2096 fi
2097 test -f "$at_stop_file" && break
2098 done
2099 exec 7>&-
2100 # Read back the remaining ($at_jobs - 1) tokens.
2101 set X $at_joblist
2102 shift
2103 if test $# -gt 0; then
2104 shift
2105 for at_job
2106 do
2107 read at_token
2108 done <&6
2109 fi
2110 exec 6<&-
2111 wait
2112 else
2113 # Run serially, avoid forks and other potential surprises.
2114 for at_group in $at_groups; do
2115 at_fn_group_prepare
2116 if cd "$at_group_dir" &&
2117 at_fn_test $at_group &&
2118 . "$at_test_source"; then :; else
2119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
2120 printf "%s\n" "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
2121 at_failed=:
2122 fi
2123 at_fn_group_postprocess
2124 test -f "$at_stop_file" && break
2125 at_first=false
2126 done
2127 fi
2128
2129 # Wrap up the test suite with summary statistics.
2130 cd "$at_helper_dir"
2131
2132 # Use ?..???? when the list must remain sorted, the faster * otherwise.
2133 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
2134 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
2135 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
2136 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
2137 echo $f; done | sed '/?/d; s,/xpass,,'`
2138 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
2139 echo $f; done | sed '/?/d; s,/fail,,'`
2140
2141 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
2142 shift; at_group_count=$#
2143 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
2144 set X $at_xfail_list; shift; at_xfail_count=$#
2145 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
2146 set X $at_skip_list; shift; at_skip_count=$#
2147
2148 as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val
2149 as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val
2150 as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val
2151
2152 # Back to the top directory.
2153 cd "$at_dir"
2154 rm -rf "$at_helper_dir"
2155
2156 # Compute the duration of the suite.
2157 at_stop_date=`date`
2158 at_stop_time=`date +%s 2>/dev/null`
2159 printf "%s\n" "$as_me: ending at: $at_stop_date" >&5
2160 case $at_start_time,$at_stop_time in
2161 [0-9]*,[0-9]*)
2162 as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val
2163 as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val
2164 as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val
2165 as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val
2166 as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val
2167 at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
2168 printf "%s\n" "$as_me: test suite duration: $at_duration" >&5
2169 ;;
2170 esac
2171
2172 echo
2173 printf "%s\n" "## ------------- ##
2174 ## Test results. ##
2175 ## ------------- ##"
2176 echo
2177 {
2178 echo
2179 printf "%s\n" "## ------------- ##
2180 ## Test results. ##
2181 ## ------------- ##"
2182 echo
2183 } >&5
2184
2185 if test $at_run_count = 1; then
2186 at_result="1 test"
2187 at_were=was
2188 else
2189 at_result="$at_run_count tests"
2190 at_were=were
2191 fi
2192 if $at_errexit_p && test $at_unexpected_count != 0; then
2193 if test $at_xpass_count = 1; then
2194 at_result="$at_result $at_were run, one passed"
2195 else
2196 at_result="$at_result $at_were run, one failed"
2197 fi
2198 at_result="$at_result unexpectedly and inhibited subsequent tests."
2199 at_color=$at_red
2200 else
2201 # Don't you just love exponential explosion of the number of cases?
2202 at_color=$at_red
2203 case $at_xpass_count:$at_fail_count:$at_xfail_count in
2204 # So far, so good.
2205 0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;;
2206 0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;;
2207
2208 # Some unexpected failures
2209 0:*:0) at_result="$at_result $at_were run,
2210 $at_fail_count failed unexpectedly." ;;
2211
2212 # Some failures, both expected and unexpected
2213 0:*:1) at_result="$at_result $at_were run,
2214 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2215 0:*:*) at_result="$at_result $at_were run,
2216 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2217
2218 # No unexpected failures, but some xpasses
2219 *:0:*) at_result="$at_result $at_were run,
2220 $at_xpass_count passed unexpectedly." ;;
2221
2222 # No expected failures, but failures and xpasses
2223 *:1:0) at_result="$at_result $at_were run,
2224 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
2225 *:*:0) at_result="$at_result $at_were run,
2226 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
2227
2228 # All of them.
2229 *:*:1) at_result="$at_result $at_were run,
2230 $at_xpass_count passed unexpectedly,
2231 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2232 *:*:*) at_result="$at_result $at_were run,
2233 $at_xpass_count passed unexpectedly,
2234 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2235 esac
2236
2237 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
2238 at_result="All $at_result"
2239 fi
2240 fi
2241
2242 # Now put skips in the mix.
2243 case $at_skip_count in
2244 0) ;;
2245 1) at_result="$at_result
2246 1 test was skipped." ;;
2247 *) at_result="$at_result
2248 $at_skip_count tests were skipped." ;;
2249 esac
2250
2251 if test $at_unexpected_count = 0; then
2252 echo "$at_color$at_result$at_std"
2253 echo "$at_result" >&5
2254 else
2255 echo "${at_color}ERROR: $at_result$at_std" >&2
2256 echo "ERROR: $at_result" >&5
2257 {
2258 echo
2259 printf "%s\n" "## ------------------------ ##
2260 ## Summary of the failures. ##
2261 ## ------------------------ ##"
2262
2263 # Summary of failed and skipped tests.
2264 if test $at_fail_count != 0; then
2265 echo "Failed tests:"
2266 $SHELL "$at_myself" $at_fail_list --list
2267 echo
2268 fi
2269 if test $at_skip_count != 0; then
2270 echo "Skipped tests:"
2271 $SHELL "$at_myself" $at_skip_list --list
2272 echo
2273 fi
2274 if test $at_xpass_count != 0; then
2275 echo "Unexpected passes:"
2276 $SHELL "$at_myself" $at_xpass_list --list
2277 echo
2278 fi
2279 if test $at_fail_count != 0; then
2280 printf "%s\n" "## ---------------------- ##
2281 ## Detailed failed tests. ##
2282 ## ---------------------- ##"
2283 echo
2284 for at_group in $at_fail_list
2285 do
2286 at_group_normalized=$at_group
2287
2288 eval 'while :; do
2289 case $at_group_normalized in #(
2290 '"$at_format"'*) break;;
2291 esac
2292 at_group_normalized=0$at_group_normalized
2293 done'
2294
2295 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
2296 echo
2297 done
2298 echo
2299 fi
2300 if test -n "$at_top_srcdir"; then
2301 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2302 ## ${at_top_build_prefix}config.log ##
2303 _ASBOX
2304 sed 's/^/| /' ${at_top_build_prefix}config.log
2305 echo
2306 fi
2307 } >&5
2308
2309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2310 ## $as_me.log was created. ##
2311 _ASBOX
2312
2313 echo
2314 if $at_debug_p; then
2315 at_msg='per-test log files'
2316 else
2317 at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
2318 fi
2319 at_msg1a=${at_xpass_list:+', '}
2320 at_msg1=$at_fail_list${at_fail_list:+" failed$at_msg1a"}
2321 at_msg2=$at_xpass_list${at_xpass_list:+" passed unexpectedly"}
2322
2323 printf "%s\n" "Please send $at_msg and all information you think might help:
2324
2325 To: <[email protected]>
2326 Subject: [GNU Mailutils 3.20] $as_me: $at_msg1$at_msg2
2327
2328 You may investigate any problem if you feel able to do so, in which
2329 case the test suite provides a good starting point. Its output may
2330 be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
2331 "
2332 exit 1
2333 fi
2334
2335 exit 0
2336
2337 ## ------------- ##
2338 ## Actual tests. ##
2339 ## ------------- ##
2340 #AT_START_1
2341 at_fn_group_banner 1 'install-mh.at:18' \
2342 "install-mh -auto" " " 1
2343 at_xfail=no
2344 (
2345 printf "%s\n" "1. $at_setup_line: testing $at_desc ..."
2346 $at_traceon
2347
2348
2349
2350 { set +x
2351 printf "%s\n" "$at_srcdir/install-mh.at:21:
2352 mkdir home
2353 dir=\`cd home; pwd\`
2354 HOME=\$dir MH=\$dir/mh_profile install-mh -auto || exit \$?
2355 find home | sort
2356 HOME=\$dir MH=\$dir/mh_profile install-mh -auto 2>errout
2357 echo \$?
2358 cat errout
2359 "
2360 at_fn_check_prepare_notrace 'a `...` command substitution' "install-mh.at:21"
2361 ( $at_check_trace;
2362 mkdir home
2363 dir=`cd home; pwd`
2364 HOME=$dir MH=$dir/mh_profile install-mh -auto || exit $?
2365 find home | sort
2366 HOME=$dir MH=$dir/mh_profile install-mh -auto 2>errout
2367 echo $?
2368 cat errout
2369
2370 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2371 at_status=$? at_failed=false
2372 $at_check_filter
2373 at_fn_diff_devnull "$at_stderr" || at_failed=:
2374 echo >>"$at_stdout"; printf "%s\n" "I'm going to create the standard MH path for you.
2375 home
2376 home/Mail
2377 home/Mail/context
2378 home/Mail/inbox
2379 home/mh_profile
2380 1
2381 install-mh: You already have an MH profile, use an editor to modify it
2382 " | \
2383 $at_diff - "$at_stdout" || at_failed=:
2384 at_fn_check_status 0 $at_status "$at_srcdir/install-mh.at:21"
2385 $at_failed && at_fn_log_failure
2386 $at_traceon; }
2387
2388
2389 set +x
2390 $at_times_p && times >"$at_times_file"
2391 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2392 read at_status <"$at_status_file"
2393 #AT_STOP_1
2394 #AT_START_2
2395 at_fn_group_banner 2 'install-mh.at:44' \
2396 "install-mh with invalid profile" " " 1
2397 at_xfail=no
2398 (
2399 printf "%s\n" "2. $at_setup_line: testing $at_desc ..."
2400 $at_traceon
2401
2402
2403
2404 { set +x
2405 printf "%s\n" "$at_srcdir/install-mh.at:47:
2406 mkdir home
2407 dir=\`cd home; pwd\`
2408 mkdir \$dir/mh_profile
2409 HOME=\$dir MH=\$dir/mh_profile install-mh -auto 2>errout
2410 code=\$?
2411 cat errout | sed 's|[^ ][^ ]*/mh_profile|mh_profile|' >&2
2412 exit \$code
2413 "
2414 at_fn_check_prepare_notrace 'a `...` command substitution' "install-mh.at:47"
2415 ( $at_check_trace;
2416 mkdir home
2417 dir=`cd home; pwd`
2418 mkdir $dir/mh_profile
2419 HOME=$dir MH=$dir/mh_profile install-mh -auto 2>errout
2420 code=$?
2421 cat errout | sed 's|[^ ][^ ]*/mh_profile|mh_profile|' >&2
2422 exit $code
2423
2424 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2425 at_status=$? at_failed=false
2426 $at_check_filter
2427 echo >>"$at_stderr"; printf "%s\n" "install-mh: You already have file mh_profile which is not a regular file or a symbolic link.
2428 install-mh: Please remove it and try again
2429 " | \
2430 $at_diff - "$at_stderr" || at_failed=:
2431 at_fn_diff_devnull "$at_stdout" || at_failed=:
2432 at_fn_check_status 1 $at_status "$at_srcdir/install-mh.at:47"
2433 $at_failed && at_fn_log_failure
2434 $at_traceon; }
2435
2436
2437 set +x
2438 $at_times_p && times >"$at_times_file"
2439 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2440 read at_status <"$at_status_file"
2441 #AT_STOP_2
2442 #AT_START_3
2443 at_fn_group_banner 3 'fmtcomp.at:31' \
2444 "literal" " " 2
2445 at_xfail=no
2446 (
2447 printf "%s\n" "3. $at_setup_line: testing $at_desc ..."
2448 $at_traceon
2449
2450
2451 { set +x
2452 printf "%s\n" "$at_srcdir/fmtcomp.at:31: MH=/dev/null fmtcheck -disass -dump -format 'text'
2453 "
2454 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:31"
2455 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format 'text'
2456
2457 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2458 at_status=$? at_failed=false
2459 $at_check_filter
2460 at_fn_diff_devnull "$at_stderr" || at_failed=:
2461 echo >>"$at_stdout"; printf "%s\n" "PRINT(\"text\")
2462 printlit \"text\"
2463 stop
2464 " | \
2465 $at_diff - "$at_stdout" || at_failed=:
2466 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:31"
2467 $at_failed && at_fn_log_failure
2468 $at_traceon; }
2469
2470 set +x
2471 $at_times_p && times >"$at_times_file"
2472 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2473 read at_status <"$at_status_file"
2474 #AT_STOP_3
2475 #AT_START_4
2476 at_fn_group_banner 4 'fmtcomp.at:38' \
2477 "component" " " 2
2478 at_xfail=no
2479 (
2480 printf "%s\n" "4. $at_setup_line: testing $at_desc ..."
2481 $at_traceon
2482
2483
2484 { set +x
2485 printf "%s\n" "$at_srcdir/fmtcomp.at:38: MH=/dev/null fmtcheck -disass -dump -format '%{from}'
2486 "
2487 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:38"
2488 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%{from}'
2489
2490 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2491 at_status=$? at_failed=false
2492 $at_check_filter
2493 at_fn_diff_devnull "$at_stderr" || at_failed=:
2494 echo >>"$at_stdout"; printf "%s\n" "PRINT(COMPONENT.from)
2495 ldcomp reg, \"from\"
2496 prints
2497 stop
2498 " | \
2499 $at_diff - "$at_stdout" || at_failed=:
2500 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:38"
2501 $at_failed && at_fn_log_failure
2502 $at_traceon; }
2503
2504 set +x
2505 $at_times_p && times >"$at_times_file"
2506 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2507 read at_status <"$at_status_file"
2508 #AT_STOP_4
2509 #AT_START_5
2510 at_fn_group_banner 5 'fmtcomp.at:46' \
2511 "component formatted" " " 2
2512 at_xfail=no
2513 (
2514 printf "%s\n" "5. $at_setup_line: testing $at_desc ..."
2515 $at_traceon
2516
2517
2518 { set +x
2519 printf "%s\n" "$at_srcdir/fmtcomp.at:46: MH=/dev/null fmtcheck -disass -dump -format '%-40{from}'
2520 "
2521 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:46"
2522 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%-40{from}'
2523
2524 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2525 at_status=$? at_failed=false
2526 $at_check_filter
2527 at_fn_diff_devnull "$at_stderr" || at_failed=:
2528 echo >>"$at_stdout"; printf "%s\n" "FORMAT(RALIGN|NOZEROPAD|NOCOMPWS, 40, COMPONENT.from)
2529 ldcomp reg, \"from\"
2530 fmtspec RALIGN|NOZEROPAD|NOCOMPWS, 40
2531 prints
2532 stop
2533 " | \
2534 $at_diff - "$at_stdout" || at_failed=:
2535 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:46"
2536 $at_failed && at_fn_log_failure
2537 $at_traceon; }
2538
2539 set +x
2540 $at_times_p && times >"$at_times_file"
2541 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2542 read at_status <"$at_status_file"
2543 #AT_STOP_5
2544 #AT_START_6
2545 at_fn_group_banner 6 'fmtcomp.at:55' \
2546 "function call" " " 2
2547 at_xfail=no
2548 (
2549 printf "%s\n" "6. $at_setup_line: testing $at_desc ..."
2550 $at_traceon
2551
2552
2553 { set +x
2554 printf "%s\n" "$at_srcdir/fmtcomp.at:55: MH=/dev/null fmtcheck -disass -dump -format '%(msg)'
2555 "
2556 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:55"
2557 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(msg)'
2558
2559 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2560 at_status=$? at_failed=false
2561 $at_check_filter
2562 at_fn_diff_devnull "$at_stderr" || at_failed=:
2563 echo >>"$at_stdout"; printf "%s\n" "PRINT(msg())
2564 call msg
2565 printn
2566 stop
2567 " | \
2568 $at_diff - "$at_stdout" || at_failed=:
2569 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:55"
2570 $at_failed && at_fn_log_failure
2571 $at_traceon; }
2572
2573 set +x
2574 $at_times_p && times >"$at_times_file"
2575 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2576 read at_status <"$at_status_file"
2577 #AT_STOP_6
2578 #AT_START_7
2579 at_fn_group_banner 7 'fmtcomp.at:63' \
2580 "function call formatted" " " 2
2581 at_xfail=no
2582 (
2583 printf "%s\n" "7. $at_setup_line: testing $at_desc ..."
2584 $at_traceon
2585
2586
2587 { set +x
2588 printf "%s\n" "$at_srcdir/fmtcomp.at:63: MH=/dev/null fmtcheck -disass -dump -format '%08(msg)'
2589 "
2590 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:63"
2591 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%08(msg)'
2592
2593 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2594 at_status=$? at_failed=false
2595 $at_check_filter
2596 at_fn_diff_devnull "$at_stderr" || at_failed=:
2597 echo >>"$at_stdout"; printf "%s\n" "FORMAT(NORALIGN|ZEROPAD|NOCOMPWS, 8, msg())
2598 call msg
2599 fmtspec NORALIGN|ZEROPAD|NOCOMPWS, 8
2600 printn
2601 stop
2602 " | \
2603 $at_diff - "$at_stdout" || at_failed=:
2604 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:63"
2605 $at_failed && at_fn_log_failure
2606 $at_traceon; }
2607
2608 set +x
2609 $at_times_p && times >"$at_times_file"
2610 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2611 read at_status <"$at_status_file"
2612 #AT_STOP_7
2613 #AT_START_8
2614 at_fn_group_banner 8 'fmtcomp.at:72' \
2615 "function call with literal argument" " " 2
2616 at_xfail=no
2617 (
2618 printf "%s\n" "8. $at_setup_line: testing $at_desc ..."
2619 $at_traceon
2620
2621
2622 { set +x
2623 printf "%s\n" "$at_srcdir/fmtcomp.at:72: MH=/dev/null fmtcheck -disass -dump -format '%(getenv PATH)'
2624 "
2625 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:72"
2626 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(getenv PATH)'
2627
2628 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2629 at_status=$? at_failed=false
2630 $at_check_filter
2631 at_fn_diff_devnull "$at_stderr" || at_failed=:
2632 echo >>"$at_stdout"; printf "%s\n" "PRINT(getenv(\"PATH\"))
2633 sets arg, \"PATH\"
2634 call getenv
2635 prints
2636 stop
2637 " | \
2638 $at_diff - "$at_stdout" || at_failed=:
2639 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:72"
2640 $at_failed && at_fn_log_failure
2641 $at_traceon; }
2642
2643 set +x
2644 $at_times_p && times >"$at_times_file"
2645 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2646 read at_status <"$at_status_file"
2647 #AT_STOP_8
2648 #AT_START_9
2649 at_fn_group_banner 9 'fmtcomp.at:81' \
2650 "function call with numeric argument" " " 2
2651 at_xfail=no
2652 (
2653 printf "%s\n" "9. $at_setup_line: testing $at_desc ..."
2654 $at_traceon
2655
2656
2657 { set +x
2658 printf "%s\n" "$at_srcdir/fmtcomp.at:81: MH=/dev/null fmtcheck -disass -dump -format '%(plus 10)'
2659 "
2660 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:81"
2661 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(plus 10)'
2662
2663 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2664 at_status=$? at_failed=false
2665 $at_check_filter
2666 at_fn_diff_devnull "$at_stderr" || at_failed=:
2667 echo >>"$at_stdout"; printf "%s\n" "PRINT(plus(10))
2668 setn arg, 10
2669 call plus
2670 printn
2671 stop
2672 " | \
2673 $at_diff - "$at_stdout" || at_failed=:
2674 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:81"
2675 $at_failed && at_fn_log_failure
2676 $at_traceon; }
2677
2678 set +x
2679 $at_times_p && times >"$at_times_file"
2680 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2681 read at_status <"$at_status_file"
2682 #AT_STOP_9
2683 #AT_START_10
2684 at_fn_group_banner 10 'fmtcomp.at:90' \
2685 "function call with numeric argument and format spec" "" 2
2686 at_xfail=no
2687 (
2688 printf "%s\n" "10. $at_setup_line: testing $at_desc ..."
2689 $at_traceon
2690
2691
2692 { set +x
2693 printf "%s\n" "$at_srcdir/fmtcomp.at:90: MH=/dev/null fmtcheck -disass -dump -format '%08(plus 10)'
2694 "
2695 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:90"
2696 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%08(plus 10)'
2697
2698 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2699 at_status=$? at_failed=false
2700 $at_check_filter
2701 at_fn_diff_devnull "$at_stderr" || at_failed=:
2702 echo >>"$at_stdout"; printf "%s\n" "FORMAT(NORALIGN|ZEROPAD|NOCOMPWS, 8, plus(10))
2703 setn arg, 10
2704 call plus
2705 fmtspec NORALIGN|ZEROPAD|NOCOMPWS, 8
2706 printn
2707 stop
2708 " | \
2709 $at_diff - "$at_stdout" || at_failed=:
2710 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:90"
2711 $at_failed && at_fn_log_failure
2712 $at_traceon; }
2713
2714 set +x
2715 $at_times_p && times >"$at_times_file"
2716 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2717 read at_status <"$at_status_file"
2718 #AT_STOP_10
2719 #AT_START_11
2720 at_fn_group_banner 11 'fmtcomp.at:100' \
2721 "function call with component argument" " " 2
2722 at_xfail=no
2723 (
2724 printf "%s\n" "11. $at_setup_line: testing $at_desc ..."
2725 $at_traceon
2726
2727
2728 { set +x
2729 printf "%s\n" "$at_srcdir/fmtcomp.at:100: MH=/dev/null fmtcheck -disass -dump -format '%(decode{subject})'
2730 "
2731 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:100"
2732 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(decode{subject})'
2733
2734 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2735 at_status=$? at_failed=false
2736 $at_check_filter
2737 at_fn_diff_devnull "$at_stderr" || at_failed=:
2738 echo >>"$at_stdout"; printf "%s\n" "PRINT(decode(COMPONENT.subject))
2739 ldcomp reg, \"subject\"
2740 movs arg, reg
2741 call decode
2742 prints
2743 stop
2744 " | \
2745 $at_diff - "$at_stdout" || at_failed=:
2746 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:100"
2747 $at_failed && at_fn_log_failure
2748 $at_traceon; }
2749
2750 set +x
2751 $at_times_p && times >"$at_times_file"
2752 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2753 read at_status <"$at_status_file"
2754 #AT_STOP_11
2755 #AT_START_12
2756 at_fn_group_banner 12 'fmtcomp.at:110' \
2757 "nested function calls" " " 2
2758 at_xfail=no
2759 (
2760 printf "%s\n" "12. $at_setup_line: testing $at_desc ..."
2761 $at_traceon
2762
2763
2764 { set +x
2765 printf "%s\n" "$at_srcdir/fmtcomp.at:110: MH=/dev/null fmtcheck -disass -dump -format '%(null(decode{subject}))'
2766 "
2767 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:110"
2768 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(null(decode{subject}))'
2769
2770 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2771 at_status=$? at_failed=false
2772 $at_check_filter
2773 at_fn_diff_devnull "$at_stderr" || at_failed=:
2774 echo >>"$at_stdout"; printf "%s\n" "PRINT(null(decode(COMPONENT.subject)))
2775 ldcomp reg, \"subject\"
2776 movs arg, reg
2777 call decode
2778 movs arg, reg
2779 call null
2780 printn
2781 stop
2782 " | \
2783 $at_diff - "$at_stdout" || at_failed=:
2784 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:110"
2785 $at_failed && at_fn_log_failure
2786 $at_traceon; }
2787
2788 set +x
2789 $at_times_p && times >"$at_times_file"
2790 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2791 read at_status <"$at_status_file"
2792 #AT_STOP_12
2793 #AT_START_13
2794 at_fn_group_banner 13 'fmtcomp.at:122' \
2795 "nested function calls with typecast" " " 2
2796 at_xfail=no
2797 (
2798 printf "%s\n" "13. $at_setup_line: testing $at_desc ..."
2799 $at_traceon
2800
2801
2802 { set +x
2803 printf "%s\n" "$at_srcdir/fmtcomp.at:122: MH=/dev/null fmtcheck -disass -dump -format '%(zero(decode{subject}))'
2804 "
2805 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:122"
2806 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(zero(decode{subject}))'
2807
2808 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2809 at_status=$? at_failed=false
2810 $at_check_filter
2811 at_fn_diff_devnull "$at_stderr" || at_failed=:
2812 echo >>"$at_stdout"; printf "%s\n" "PRINT(zero(NUM(decode(COMPONENT.subject))))
2813 ldcomp reg, \"subject\"
2814 movs arg, reg
2815 call decode
2816 atoi
2817 movn arg, reg
2818 call zero
2819 printn
2820 stop
2821 " | \
2822 $at_diff - "$at_stdout" || at_failed=:
2823 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:122"
2824 $at_failed && at_fn_log_failure
2825 $at_traceon; }
2826
2827 set +x
2828 $at_times_p && times >"$at_times_file"
2829 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2830 read at_status <"$at_status_file"
2831 #AT_STOP_13
2832 #AT_START_14
2833 at_fn_group_banner 14 'fmtcomp.at:135' \
2834 "lit" " " 2
2835 at_xfail=no
2836 (
2837 printf "%s\n" "14. $at_setup_line: testing $at_desc ..."
2838 $at_traceon
2839
2840
2841 { set +x
2842 printf "%s\n" "$at_srcdir/fmtcomp.at:135: MH=/dev/null fmtcheck -disass -dump -format '%(lit string)%(lit 10)%(lit (comp)%(lit)'
2843 "
2844 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:135"
2845 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(lit string)%(lit 10)%(lit (comp)%(lit)'
2846
2847 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2848 at_status=$? at_failed=false
2849 $at_check_filter
2850 at_fn_diff_devnull "$at_stderr" || at_failed=:
2851 echo >>"$at_stdout"; printf "%s\n" "PRINT(lit(\"string\"))
2852 PRINT(lit(\"10\"))
2853 PRINT(lit(\"(comp\"))
2854 PRINT(lit(\"\"))
2855 sets reg, \"string\"
2856 prints
2857 sets reg, \"10\"
2858 prints
2859 sets reg, \"(comp\"
2860 prints
2861 sets reg, \"\"
2862 prints
2863 stop
2864 " | \
2865 $at_diff - "$at_stdout" || at_failed=:
2866 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:135"
2867 $at_failed && at_fn_log_failure
2868 $at_traceon; }
2869
2870 set +x
2871 $at_times_p && times >"$at_times_file"
2872 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2873 read at_status <"$at_status_file"
2874 #AT_STOP_14
2875 #AT_START_15
2876 at_fn_group_banner 15 'fmtcomp.at:154' \
2877 "num" " " 2
2878 at_xfail=no
2879 (
2880 printf "%s\n" "15. $at_setup_line: testing $at_desc ..."
2881 $at_traceon
2882
2883
2884 { set +x
2885 printf "%s\n" "$at_srcdir/fmtcomp.at:154: MH=/dev/null fmtcheck -disass -dump -format '%(num 10)%(num)'
2886 "
2887 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:154"
2888 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(num 10)%(num)'
2889
2890 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2891 at_status=$? at_failed=false
2892 $at_check_filter
2893 at_fn_diff_devnull "$at_stderr" || at_failed=:
2894 echo >>"$at_stdout"; printf "%s\n" "PRINT(num(10))
2895 PRINT(num(0))
2896 setn reg, 10
2897 printn
2898 setn reg, 0
2899 printn
2900 stop
2901 " | \
2902 $at_diff - "$at_stdout" || at_failed=:
2903 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:154"
2904 $at_failed && at_fn_log_failure
2905 $at_traceon; }
2906
2907 set +x
2908 $at_times_p && times >"$at_times_file"
2909 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2910 read at_status <"$at_status_file"
2911 #AT_STOP_15
2912 #AT_START_16
2913 at_fn_group_banner 16 'fmtcomp.at:165' \
2914 "simple conditional" " " 2
2915 at_xfail=no
2916 (
2917 printf "%s\n" "16. $at_setup_line: testing $at_desc ..."
2918 $at_traceon
2919
2920
2921 { set +x
2922 printf "%s\n" "$at_srcdir/fmtcomp.at:165: MH=/dev/null fmtcheck -disass -dump -format '%<{replied}-%>'
2923 "
2924 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:165"
2925 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%<{replied}-%>'
2926
2927 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2928 at_status=$? at_failed=false
2929 $at_check_filter
2930 at_fn_diff_devnull "$at_stderr" || at_failed=:
2931 echo >>"$at_stdout"; printf "%s\n" "IF (COMPONENT.replied) THEN
2932 PRINT(\"-\")
2933 FI
2934 pushn
2935 ldcomp reg, \"replied\"
2936 brzs L1
2937 xchgn
2938 printlit \"-\"
2939 popn
2940 L1: stop
2941 " | \
2942 $at_diff - "$at_stdout" || at_failed=:
2943 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:165"
2944 $at_failed && at_fn_log_failure
2945 $at_traceon; }
2946
2947 set +x
2948 $at_times_p && times >"$at_times_file"
2949 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2950 read at_status <"$at_status_file"
2951 #AT_STOP_16
2952 #AT_START_17
2953 at_fn_group_banner 17 'fmtcomp.at:179' \
2954 "if-else" " " 2
2955 at_xfail=no
2956 (
2957 printf "%s\n" "17. $at_setup_line: testing $at_desc ..."
2958 $at_traceon
2959
2960
2961 { set +x
2962 printf "%s\n" "$at_srcdir/fmtcomp.at:179: MH=/dev/null fmtcheck -disass -dump -format '%<{replied}-%|+%>'
2963 "
2964 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:179"
2965 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%<{replied}-%|+%>'
2966
2967 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2968 at_status=$? at_failed=false
2969 $at_check_filter
2970 at_fn_diff_devnull "$at_stderr" || at_failed=:
2971 echo >>"$at_stdout"; printf "%s\n" "IF (COMPONENT.replied) THEN
2972 PRINT(\"-\")
2973 ELSE
2974 PRINT(\"+\")
2975 FI
2976 pushn
2977 ldcomp reg, \"replied\"
2978 brzs L1
2979 xchgn
2980 printlit \"-\"
2981 popn
2982 branch L2
2983 L1: popn
2984 printlit \"+\"
2985 setn reg, 0
2986 L2: stop
2987 " | \
2988 $at_diff - "$at_stdout" || at_failed=:
2989 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:179"
2990 $at_failed && at_fn_log_failure
2991 $at_traceon; }
2992
2993 set +x
2994 $at_times_p && times >"$at_times_file"
2995 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2996 read at_status <"$at_status_file"
2997 #AT_STOP_17
2998 #AT_START_18
2999 at_fn_group_banner 18 'fmtcomp.at:199' \
3000 "if-elsif-else" " " 2
3001 at_xfail=no
3002 (
3003 printf "%s\n" "18. $at_setup_line: testing $at_desc ..."
3004 $at_traceon
3005
3006
3007 { set +x
3008 printf "%s\n" "$at_srcdir/fmtcomp.at:199: MH=/dev/null fmtcheck -disass -dump -format '%<{replied}-%?{encrypted}E%| %>'
3009 "
3010 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:199"
3011 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%<{replied}-%?{encrypted}E%| %>'
3012
3013 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3014 at_status=$? at_failed=false
3015 $at_check_filter
3016 at_fn_diff_devnull "$at_stderr" || at_failed=:
3017 echo >>"$at_stdout"; printf "%s\n" "IF (COMPONENT.replied) THEN
3018 PRINT(\"-\")
3019 ELSE
3020 IF (COMPONENT.encrypted) THEN
3021 PRINT(\"E\")
3022 ELSE
3023 PRINT(\" \")
3024 FI
3025 FI
3026 pushn
3027 ldcomp reg, \"replied\"
3028 brzs L1
3029 xchgn
3030 printlit \"-\"
3031 popn
3032 branch L3
3033 L1: popn
3034 pushn
3035 ldcomp reg, \"encrypted\"
3036 brzs L2
3037 xchgn
3038 printlit \"E\"
3039 popn
3040 branch L3
3041 L2: popn
3042 printlit \" \"
3043 setn reg, 0
3044 L3: stop
3045 " | \
3046 $at_diff - "$at_stdout" || at_failed=:
3047 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:199"
3048 $at_failed && at_fn_log_failure
3049 $at_traceon; }
3050
3051 set +x
3052 $at_times_p && times >"$at_times_file"
3053 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3054 read at_status <"$at_status_file"
3055 #AT_STOP_18
3056 #AT_START_19
3057 at_fn_group_banner 19 'fmtcomp.at:235' \
3058 "inline conditional" " " 2
3059 at_xfail=no
3060 (
3061 printf "%s\n" "19. $at_setup_line: testing $at_desc ..."
3062 $at_traceon
3063
3064
3065 { set +x
3066 printf "%s\n" "$at_srcdir/fmtcomp.at:235: MH=/dev/null fmtcheck -disass -dump -format '%(formataddr %<{reply-to}%|%{from}%>)'
3067 "
3068 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:235"
3069 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(formataddr %<{reply-to}%|%{from}%>)'
3070
3071 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3072 at_status=$? at_failed=false
3073 $at_check_filter
3074 at_fn_diff_devnull "$at_stderr" || at_failed=:
3075 echo >>"$at_stdout"; printf "%s\n" "formataddr(IF (COMPONENT.reply-to) THEN; ; ELSE PRINT(COMPONENT.from); FI)
3076 movs acc, reg
3077 pushn
3078 ldcomp reg, \"reply-to\"
3079 brzs L1
3080 popn
3081 branch L2
3082 L1: popn
3083 ldcomp reg, \"from\"
3084 prints
3085 setn reg, 0
3086 L2: movs arg, reg
3087 call formataddr
3088 stop
3089 " | \
3090 $at_diff - "$at_stdout" || at_failed=:
3091 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:235"
3092 $at_failed && at_fn_log_failure
3093 $at_traceon; }
3094
3095 set +x
3096 $at_times_p && times >"$at_times_file"
3097 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3098 read at_status <"$at_status_file"
3099 #AT_STOP_19
3100 #AT_START_20
3101 at_fn_group_banner 20 'fmtcomp.at:253' \
3102 "inline conditional (2)" " " 2
3103 at_xfail=no
3104 (
3105 printf "%s\n" "20. $at_setup_line: testing $at_desc ..."
3106 $at_traceon
3107
3108
3109 { set +x
3110 printf "%s\n" "$at_srcdir/fmtcomp.at:253: MH=/dev/null fmtcheck -disass -dump -format '%(formataddr %<{reply-to}%|%(void{from})%>)'
3111 "
3112 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:253"
3113 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(formataddr %<{reply-to}%|%(void{from})%>)'
3114
3115 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3116 at_status=$? at_failed=false
3117 $at_check_filter
3118 at_fn_diff_devnull "$at_stderr" || at_failed=:
3119 echo >>"$at_stdout"; printf "%s\n" "formataddr(IF (COMPONENT.reply-to) THEN; ; ELSE COMPONENT.from; FI)
3120 movs acc, reg
3121 pushn
3122 ldcomp reg, \"reply-to\"
3123 brzs L1
3124 popn
3125 branch L2
3126 L1: popn
3127 ldcomp reg, \"from\"
3128 setn reg, 0
3129 L2: movs arg, reg
3130 call formataddr
3131 stop
3132 " | \
3133 $at_diff - "$at_stdout" || at_failed=:
3134 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:253"
3135 $at_failed && at_fn_log_failure
3136 $at_traceon; }
3137
3138 set +x
3139 $at_times_p && times >"$at_times_file"
3140 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3141 read at_status <"$at_status_file"
3142 #AT_STOP_20
3143 #AT_START_21
3144 at_fn_group_banner 21 'fmtcomp.at:270' \
3145 "statement list" " " 2
3146 at_xfail=no
3147 (
3148 printf "%s\n" "21. $at_setup_line: testing $at_desc ..."
3149 $at_traceon
3150
3151
3152 { set +x
3153 printf "%s\n" "$at_srcdir/fmtcomp.at:270: MH=/dev/null fmtcheck -disass -dump -format '%(formataddr %<{reply-to}%|%(void{from})%>)%(void(width))%(putaddr To: )'
3154 "
3155 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:270"
3156 ( $at_check_trace; MH=/dev/null fmtcheck -disass -dump -format '%(formataddr %<{reply-to}%|%(void{from})%>)%(void(width))%(putaddr To: )'
3157
3158 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3159 at_status=$? at_failed=false
3160 $at_check_filter
3161 at_fn_diff_devnull "$at_stderr" || at_failed=:
3162 echo >>"$at_stdout"; printf "%s\n" "formataddr(IF (COMPONENT.reply-to) THEN; ; ELSE COMPONENT.from; FI)
3163 width()
3164 putaddr(\"To: \")
3165 movs acc, reg
3166 pushn
3167 ldcomp reg, \"reply-to\"
3168 brzs L1
3169 popn
3170 branch L2
3171 L1: popn
3172 ldcomp reg, \"from\"
3173 setn reg, 0
3174 L2: movs arg, reg
3175 call formataddr
3176 call width
3177 sets arg, \"To: \"
3178 call putaddr
3179 stop
3180 " | \
3181 $at_diff - "$at_stdout" || at_failed=:
3182 at_fn_check_status 0 $at_status "$at_srcdir/fmtcomp.at:270"
3183 $at_failed && at_fn_log_failure
3184 $at_traceon; }
3185
3186 set +x
3187 $at_times_p && times >"$at_times_file"
3188 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3189 read at_status <"$at_status_file"
3190 #AT_STOP_21
3191 #AT_START_22
3192 at_fn_group_banner 22 'fmtcomp.at:308' \
3193 "unknown function" " " 3
3194 at_xfail=no
3195 (
3196 printf "%s\n" "22. $at_setup_line: testing $at_desc ..."
3197 $at_traceon
3198
3199
3200 cat >input.fmt <<'_ATEOF'
3201 %; comment
3202 test %(function)
3203 _ATEOF
3204
3205 { set +x
3206 printf "%s\n" "$at_srcdir/fmtcomp.at:308: MH=/dev/null fmtcheck -form input.fmt
3207 "
3208 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:308"
3209 ( $at_check_trace; MH=/dev/null fmtcheck -form input.fmt
3210
3211 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3212 at_status=$? at_failed=false
3213 $at_check_filter
3214 echo >>"$at_stderr"; printf "%s\n" "fmtcheck: input.fmt:2.8-15: unknown function
3215 fmtcheck: test %(function)
3216 fmtcheck: ^ ^
3217 " | \
3218 $at_diff - "$at_stderr" || at_failed=:
3219 at_fn_diff_devnull "$at_stdout" || at_failed=:
3220 at_fn_check_status 1 $at_status "$at_srcdir/fmtcomp.at:308"
3221 $at_failed && at_fn_log_failure
3222 $at_traceon; }
3223
3224 set +x
3225 $at_times_p && times >"$at_times_file"
3226 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3227 read at_status <"$at_status_file"
3228 #AT_STOP_22
3229 #AT_START_23
3230 at_fn_group_banner 23 'fmtcomp.at:317' \
3231 "condition syntax" " " 3
3232 at_xfail=no
3233 (
3234 printf "%s\n" "23. $at_setup_line: testing $at_desc ..."
3235 $at_traceon
3236
3237
3238 cat >input.fmt <<'_ATEOF'
3239 %<%{reply-to}%|%{from}%>
3240 _ATEOF
3241
3242 { set +x
3243 printf "%s\n" "$at_srcdir/fmtcomp.at:317: MH=/dev/null fmtcheck -form input.fmt
3244 "
3245 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:317"
3246 ( $at_check_trace; MH=/dev/null fmtcheck -form input.fmt
3247
3248 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3249 at_status=$? at_failed=false
3250 $at_check_filter
3251 echo >>"$at_stderr"; printf "%s\n" "fmtcheck: input.fmt:1.1-2: '(' or '{' expected
3252 fmtcheck: %<%{reply-to}%|%{from}%>
3253 fmtcheck: ^^
3254 " | \
3255 $at_diff - "$at_stderr" || at_failed=:
3256 at_fn_diff_devnull "$at_stdout" || at_failed=:
3257 at_fn_check_status 1 $at_status "$at_srcdir/fmtcomp.at:317"
3258 $at_failed && at_fn_log_failure
3259 $at_traceon; }
3260
3261 set +x
3262 $at_times_p && times >"$at_times_file"
3263 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3264 read at_status <"$at_status_file"
3265 #AT_STOP_23
3266 #AT_START_24
3267 at_fn_group_banner 24 'fmtcomp.at:325' \
3268 "unclosed control" " " 3
3269 at_xfail=no
3270 (
3271 printf "%s\n" "24. $at_setup_line: testing $at_desc ..."
3272 $at_traceon
3273
3274
3275 cat >input.fmt <<'_ATEOF'
3276 %<{reply-to}%|%{from}>
3277 _ATEOF
3278
3279 { set +x
3280 printf "%s\n" "$at_srcdir/fmtcomp.at:330: MH=/dev/null fmtcheck -form input.fmt 2>err
3281 ex=\$?
3282 sed -e 's/end of file/\$end/' err>&2
3283 exit \$ex
3284 "
3285 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:330"
3286 ( $at_check_trace; MH=/dev/null fmtcheck -form input.fmt 2>err
3287 ex=$?
3288 sed -e 's/end of file/$end/' err>&2
3289 exit $ex
3290
3291 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3292 at_status=$? at_failed=false
3293 $at_check_filter
3294 echo >>"$at_stderr"; printf "%s\n" "fmtcheck: input.fmt:1.22: syntax error, unexpected \$end, expecting %>
3295 fmtcheck: %<{reply-to}%|%{from}
3296 fmtcheck: ^
3297 " | \
3298 $at_diff - "$at_stderr" || at_failed=:
3299 at_fn_diff_devnull "$at_stdout" || at_failed=:
3300 at_fn_check_status 1 $at_status "$at_srcdir/fmtcomp.at:330"
3301 $at_failed && at_fn_log_failure
3302 $at_traceon; }
3303
3304 set +x
3305 $at_times_p && times >"$at_times_file"
3306 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3307 read at_status <"$at_status_file"
3308 #AT_STOP_24
3309 #AT_START_25
3310 at_fn_group_banner 25 'fmtcomp.at:343' \
3311 "extra ELSE" " " 3
3312 at_xfail=no
3313 (
3314 printf "%s\n" "25. $at_setup_line: testing $at_desc ..."
3315 $at_traceon
3316
3317
3318 cat >input.fmt <<'_ATEOF'
3319 %<{reply-to}%|test%|test%>
3320 _ATEOF
3321
3322 { set +x
3323 printf "%s\n" "$at_srcdir/fmtcomp.at:343: MH=/dev/null fmtcheck -form input.fmt
3324 "
3325 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:343"
3326 ( $at_check_trace; MH=/dev/null fmtcheck -form input.fmt
3327
3328 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3329 at_status=$? at_failed=false
3330 $at_check_filter
3331 echo >>"$at_stderr"; printf "%s\n" "fmtcheck: input.fmt:1.19-20: syntax error, unexpected %|, expecting %>
3332 fmtcheck: %<{reply-to}%|test%|test%>
3333 fmtcheck: ^^
3334 " | \
3335 $at_diff - "$at_stderr" || at_failed=:
3336 at_fn_diff_devnull "$at_stdout" || at_failed=:
3337 at_fn_check_status 1 $at_status "$at_srcdir/fmtcomp.at:343"
3338 $at_failed && at_fn_log_failure
3339 $at_traceon; }
3340
3341 set +x
3342 $at_times_p && times >"$at_times_file"
3343 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3344 read at_status <"$at_status_file"
3345 #AT_STOP_25
3346 #AT_START_26
3347 at_fn_group_banner 26 'fmtcomp.at:354' \
3348 "unwanted argument" " " 3
3349 at_xfail=no
3350 (
3351 printf "%s\n" "26. $at_setup_line: testing $at_desc ..."
3352 $at_traceon
3353
3354
3355 cat >input.fmt <<'_ATEOF'
3356 %(msg 10)
3357 _ATEOF
3358
3359 { set +x
3360 printf "%s\n" "$at_srcdir/fmtcomp.at:354: MH=/dev/null fmtcheck -form input.fmt
3361 "
3362 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:354"
3363 ( $at_check_trace; MH=/dev/null fmtcheck -form input.fmt
3364
3365 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3366 at_status=$? at_failed=false
3367 $at_check_filter
3368 echo >>"$at_stderr"; printf "%s\n" "fmtcheck: input.fmt:1.9: function doesn't take arguments
3369 fmtcheck: %(msg 10)
3370 fmtcheck: ^
3371 " | \
3372 $at_diff - "$at_stderr" || at_failed=:
3373 at_fn_diff_devnull "$at_stdout" || at_failed=:
3374 at_fn_check_status 1 $at_status "$at_srcdir/fmtcomp.at:354"
3375 $at_failed && at_fn_log_failure
3376 $at_traceon; }
3377
3378 set +x
3379 $at_times_p && times >"$at_times_file"
3380 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3381 read at_status <"$at_status_file"
3382 #AT_STOP_26
3383 #AT_START_27
3384 at_fn_group_banner 27 'fmtcomp.at:362' \
3385 "missing argument" " " 3
3386 at_xfail=no
3387 (
3388 printf "%s\n" "27. $at_setup_line: testing $at_desc ..."
3389 $at_traceon
3390
3391
3392 cat >input.fmt <<'_ATEOF'
3393 %(decode)
3394 _ATEOF
3395
3396 { set +x
3397 printf "%s\n" "$at_srcdir/fmtcomp.at:362: MH=/dev/null fmtcheck -form input.fmt
3398 "
3399 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:362"
3400 ( $at_check_trace; MH=/dev/null fmtcheck -form input.fmt
3401
3402 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3403 at_status=$? at_failed=false
3404 $at_check_filter
3405 echo >>"$at_stderr"; printf "%s\n" "fmtcheck: input.fmt:1.9: required argument missing
3406 fmtcheck: %(decode)
3407 fmtcheck: ^
3408 " | \
3409 $at_diff - "$at_stderr" || at_failed=:
3410 at_fn_diff_devnull "$at_stdout" || at_failed=:
3411 at_fn_check_status 1 $at_status "$at_srcdir/fmtcomp.at:362"
3412 $at_failed && at_fn_log_failure
3413 $at_traceon; }
3414
3415 set +x
3416 $at_times_p && times >"$at_times_file"
3417 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3418 read at_status <"$at_status_file"
3419 #AT_STOP_27
3420 #AT_START_28
3421 at_fn_group_banner 28 'fmtcomp.at:370' \
3422 "argument type mismatch" " " 3
3423 at_xfail=no
3424 (
3425 printf "%s\n" "28. $at_setup_line: testing $at_desc ..."
3426 $at_traceon
3427
3428
3429 cat >input.fmt <<'_ATEOF'
3430 %(lit{comp})
3431 _ATEOF
3432
3433 { set +x
3434 printf "%s\n" "$at_srcdir/fmtcomp.at:370: MH=/dev/null fmtcheck -form input.fmt
3435 "
3436 at_fn_check_prepare_notrace 'an embedded newline' "fmtcomp.at:370"
3437 ( $at_check_trace; MH=/dev/null fmtcheck -form input.fmt
3438
3439 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3440 at_status=$? at_failed=false
3441 $at_check_filter
3442 echo >>"$at_stderr"; printf "%s\n" "fmtcheck: input.fmt:1.12: argument must be literal
3443 fmtcheck: %(lit{comp})
3444 fmtcheck: ^
3445 " | \
3446 $at_diff - "$at_stderr" || at_failed=:
3447 at_fn_diff_devnull "$at_stdout" || at_failed=:
3448 at_fn_check_status 1 $at_status "$at_srcdir/fmtcomp.at:370"
3449 $at_failed && at_fn_log_failure
3450 $at_traceon; }
3451
3452 set +x
3453 $at_times_p && times >"$at_times_file"
3454 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3455 read at_status <"$at_status_file"
3456 #AT_STOP_28
3457 #AT_START_29
3458 at_fn_group_banner 29 'fmtfunc.at:35' \
3459 "msg" " " 4
3460 at_xfail=no
3461 (
3462 printf "%s\n" "29. $at_setup_line: testing $at_desc ..."
3463 $at_traceon
3464
3465
3466 cat >mh_profile <<'_ATEOF'
3467 Charset: auto
3468 _ATEOF
3469
3470 cat >input.fmt <<'_ATEOF'
3471 %(msg)
3472 _ATEOF
3473
3474 cat >message <<'_ATEOF'
3475
3476
3477 _ATEOF
3478
3479 { set +x
3480 printf "%s\n" "$at_srcdir/fmtfunc.at:35: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3481 "
3482 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:35"
3483 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3484
3485 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3486 at_status=$? at_failed=false
3487 $at_check_filter
3488 at_fn_diff_devnull "$at_stderr" || at_failed=:
3489 echo >>"$at_stdout"; printf "%s\n" "1
3490 " | \
3491 $at_diff - "$at_stdout" || at_failed=:
3492 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:35"
3493 $at_failed && at_fn_log_failure
3494 $at_traceon; }
3495
3496 set +x
3497 $at_times_p && times >"$at_times_file"
3498 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3499 read at_status <"$at_status_file"
3500 #AT_STOP_29
3501 #AT_START_30
3502 at_fn_group_banner 30 'fmtfunc.at:47' \
3503 "size" " " 4
3504 at_xfail=no
3505 (
3506 printf "%s\n" "30. $at_setup_line: testing $at_desc ..."
3507 $at_traceon
3508
3509
3510 cat >mh_profile <<'_ATEOF'
3511 Charset: auto
3512 _ATEOF
3513
3514 cat >input.fmt <<'_ATEOF'
3515 %(size)
3516 _ATEOF
3517
3518 cat >message <<'_ATEOF'
3519 From: [email protected]
3520 To: [email protected]
3521 Subject: Test
3522
3523 test message
3524 _ATEOF
3525
3526 { set +x
3527 printf "%s\n" "$at_srcdir/fmtfunc.at:47: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3528 "
3529 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:47"
3530 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3531
3532 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3533 at_status=$? at_failed=false
3534 $at_check_filter
3535 at_fn_diff_devnull "$at_stderr" || at_failed=:
3536 echo >>"$at_stdout"; printf "%s\n" "72
3537 " | \
3538 $at_diff - "$at_stdout" || at_failed=:
3539 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:47"
3540 $at_failed && at_fn_log_failure
3541 $at_traceon; }
3542
3543 set +x
3544 $at_times_p && times >"$at_times_file"
3545 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3546 read at_status <"$at_status_file"
3547 #AT_STOP_30
3548 #AT_START_31
3549 at_fn_group_banner 31 'fmtfunc.at:59' \
3550 "num" " " 4
3551 at_xfail=no
3552 (
3553 printf "%s\n" "31. $at_setup_line: testing $at_desc ..."
3554 $at_traceon
3555
3556
3557 cat >mh_profile <<'_ATEOF'
3558 Charset: auto
3559 _ATEOF
3560
3561 cat >input.fmt <<'_ATEOF'
3562 %(num 10)
3563 %(num)
3564 _ATEOF
3565
3566 cat >message <<'_ATEOF'
3567
3568
3569 _ATEOF
3570
3571 { set +x
3572 printf "%s\n" "$at_srcdir/fmtfunc.at:59: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3573 "
3574 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:59"
3575 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3576
3577 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3578 at_status=$? at_failed=false
3579 $at_check_filter
3580 at_fn_diff_devnull "$at_stderr" || at_failed=:
3581 echo >>"$at_stdout"; printf "%s\n" "10
3582 0
3583 " | \
3584 $at_diff - "$at_stdout" || at_failed=:
3585 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:59"
3586 $at_failed && at_fn_log_failure
3587 $at_traceon; }
3588
3589 set +x
3590 $at_times_p && times >"$at_times_file"
3591 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3592 read at_status <"$at_status_file"
3593 #AT_STOP_31
3594 #AT_START_32
3595 at_fn_group_banner 32 'fmtfunc.at:70' \
3596 "lit" " " 4
3597 at_xfail=no
3598 (
3599 printf "%s\n" "32. $at_setup_line: testing $at_desc ..."
3600 $at_traceon
3601
3602
3603 cat >mh_profile <<'_ATEOF'
3604 Charset: auto
3605 _ATEOF
3606
3607 cat >input.fmt <<'_ATEOF'
3608 %(lit string)
3609 %(lit)
3610 _ATEOF
3611
3612 cat >message <<'_ATEOF'
3613
3614
3615 _ATEOF
3616
3617 { set +x
3618 printf "%s\n" "$at_srcdir/fmtfunc.at:70: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3619 "
3620 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:70"
3621 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3622
3623 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3624 at_status=$? at_failed=false
3625 $at_check_filter
3626 at_fn_diff_devnull "$at_stderr" || at_failed=:
3627 echo >>"$at_stdout"; printf "%s\n" "string
3628 " | \
3629 $at_diff - "$at_stdout" || at_failed=:
3630 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:70"
3631 $at_failed && at_fn_log_failure
3632 $at_traceon; }
3633
3634 set +x
3635 $at_times_p && times >"$at_times_file"
3636 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3637 read at_status <"$at_status_file"
3638 #AT_STOP_32
3639 #AT_START_33
3640 at_fn_group_banner 33 'fmtfunc.at:80' \
3641 "void" " " 4
3642 at_xfail=no
3643 (
3644 printf "%s\n" "33. $at_setup_line: testing $at_desc ..."
3645 $at_traceon
3646
3647
3648 cat >mh_profile <<'_ATEOF'
3649 Charset: auto
3650 _ATEOF
3651
3652 cat >input.fmt <<'_ATEOF'
3653 %(void(num 10))
3654 _ATEOF
3655
3656 cat >message <<'_ATEOF'
3657
3658
3659 _ATEOF
3660
3661 { set +x
3662 printf "%s\n" "$at_srcdir/fmtfunc.at:80: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3663 "
3664 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:80"
3665 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3666
3667 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3668 at_status=$? at_failed=false
3669 $at_check_filter
3670 at_fn_diff_devnull "$at_stderr" || at_failed=:
3671 at_fn_diff_devnull "$at_stdout" || at_failed=:
3672 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:80"
3673 $at_failed && at_fn_log_failure
3674 $at_traceon; }
3675
3676 set +x
3677 $at_times_p && times >"$at_times_file"
3678 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3679 read at_status <"$at_status_file"
3680 #AT_STOP_33
3681 #AT_START_34
3682 at_fn_group_banner 34 'fmtfunc.at:88' \
3683 "strlen" " " 4
3684 at_xfail=no
3685 (
3686 printf "%s\n" "34. $at_setup_line: testing $at_desc ..."
3687 $at_traceon
3688
3689
3690 cat >mh_profile <<'_ATEOF'
3691 Charset: auto
3692 _ATEOF
3693
3694 cat >input.fmt <<'_ATEOF'
3695 %(lit string)=%(strlen)
3696 _ATEOF
3697
3698 cat >message <<'_ATEOF'
3699
3700
3701 _ATEOF
3702
3703 { set +x
3704 printf "%s\n" "$at_srcdir/fmtfunc.at:88: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3705 "
3706 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:88"
3707 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3708
3709 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3710 at_status=$? at_failed=false
3711 $at_check_filter
3712 at_fn_diff_devnull "$at_stderr" || at_failed=:
3713 echo >>"$at_stdout"; printf "%s\n" "string=6
3714 " | \
3715 $at_diff - "$at_stdout" || at_failed=:
3716 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:88"
3717 $at_failed && at_fn_log_failure
3718 $at_traceon; }
3719
3720 set +x
3721 $at_times_p && times >"$at_times_file"
3722 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3723 read at_status <"$at_status_file"
3724 #AT_STOP_34
3725 #AT_START_35
3726 at_fn_group_banner 35 'fmtfunc.at:98' \
3727 "width" " " 4
3728 at_xfail=no
3729 (
3730 printf "%s\n" "35. $at_setup_line: testing $at_desc ..."
3731 $at_traceon
3732
3733
3734 cat >mh_profile <<'_ATEOF'
3735 Charset: auto
3736 _ATEOF
3737
3738 cat >input.fmt <<'_ATEOF'
3739 %(width)
3740 _ATEOF
3741
3742 cat >message <<'_ATEOF'
3743
3744
3745 _ATEOF
3746
3747 { set +x
3748 printf "%s\n" "$at_srcdir/fmtfunc.at:98: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3749 "
3750 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:98"
3751 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3752
3753 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3754 at_status=$? at_failed=false
3755 $at_check_filter
3756 at_fn_diff_devnull "$at_stderr" || at_failed=:
3757 echo >>"$at_stdout"; printf "%s\n" "79
3758 " | \
3759 $at_diff - "$at_stdout" || at_failed=:
3760 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:98"
3761 $at_failed && at_fn_log_failure
3762 $at_traceon; }
3763
3764 set +x
3765 $at_times_p && times >"$at_times_file"
3766 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3767 read at_status <"$at_status_file"
3768 #AT_STOP_35
3769 #AT_START_36
3770 at_fn_group_banner 36 'fmtfunc.at:107' \
3771 "charleft" " " 4
3772 at_xfail=no
3773 (
3774 printf "%s\n" "36. $at_setup_line: testing $at_desc ..."
3775 $at_traceon
3776
3777
3778 cat >mh_profile <<'_ATEOF'
3779 Charset: auto
3780 _ATEOF
3781
3782 cat >input.fmt <<'_ATEOF'
3783 input %(charleft)
3784 _ATEOF
3785
3786 cat >message <<'_ATEOF'
3787
3788
3789 _ATEOF
3790
3791 { set +x
3792 printf "%s\n" "$at_srcdir/fmtfunc.at:107: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3793 "
3794 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:107"
3795 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3796
3797 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3798 at_status=$? at_failed=false
3799 $at_check_filter
3800 at_fn_diff_devnull "$at_stderr" || at_failed=:
3801 echo >>"$at_stdout"; printf "%s\n" "input 73
3802 " | \
3803 $at_diff - "$at_stdout" || at_failed=:
3804 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:107"
3805 $at_failed && at_fn_log_failure
3806 $at_traceon; }
3807
3808 set +x
3809 $at_times_p && times >"$at_times_file"
3810 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3811 read at_status <"$at_status_file"
3812 #AT_STOP_36
3813 #AT_START_37
3814 at_fn_group_banner 37 'fmtfunc.at:121' \
3815 "eq" " " 4
3816 at_xfail=no
3817 (
3818 printf "%s\n" "37. $at_setup_line: testing $at_desc ..."
3819 $at_traceon
3820
3821
3822 cat >mh_profile <<'_ATEOF'
3823 Charset: auto
3824 _ATEOF
3825
3826 cat >input.fmt <<'_ATEOF'
3827 %(void(num 10))%(eq 5):%(void(num 5))%(eq 5)
3828 _ATEOF
3829
3830 cat >message <<'_ATEOF'
3831
3832
3833 _ATEOF
3834
3835 { set +x
3836 printf "%s\n" "$at_srcdir/fmtfunc.at:121: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3837 "
3838 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:121"
3839 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3840
3841 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3842 at_status=$? at_failed=false
3843 $at_check_filter
3844 at_fn_diff_devnull "$at_stderr" || at_failed=:
3845 echo >>"$at_stdout"; printf "%s\n" "0:1
3846 " | \
3847 $at_diff - "$at_stdout" || at_failed=:
3848 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:121"
3849 $at_failed && at_fn_log_failure
3850 $at_traceon; }
3851
3852 set +x
3853 $at_times_p && times >"$at_times_file"
3854 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3855 read at_status <"$at_status_file"
3856 #AT_STOP_37
3857 #AT_START_38
3858 at_fn_group_banner 38 'fmtfunc.at:130' \
3859 "ne" " " 4
3860 at_xfail=no
3861 (
3862 printf "%s\n" "38. $at_setup_line: testing $at_desc ..."
3863 $at_traceon
3864
3865
3866 cat >mh_profile <<'_ATEOF'
3867 Charset: auto
3868 _ATEOF
3869
3870 cat >input.fmt <<'_ATEOF'
3871 %(void(num 10))%(ne 5):%(void(num 5))%(ne 5)
3872 _ATEOF
3873
3874 cat >message <<'_ATEOF'
3875
3876
3877 _ATEOF
3878
3879 { set +x
3880 printf "%s\n" "$at_srcdir/fmtfunc.at:130: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3881 "
3882 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:130"
3883 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3884
3885 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3886 at_status=$? at_failed=false
3887 $at_check_filter
3888 at_fn_diff_devnull "$at_stderr" || at_failed=:
3889 echo >>"$at_stdout"; printf "%s\n" "1:0
3890 " | \
3891 $at_diff - "$at_stdout" || at_failed=:
3892 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:130"
3893 $at_failed && at_fn_log_failure
3894 $at_traceon; }
3895
3896 set +x
3897 $at_times_p && times >"$at_times_file"
3898 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3899 read at_status <"$at_status_file"
3900 #AT_STOP_38
3901 #AT_START_39
3902 at_fn_group_banner 39 'fmtfunc.at:139' \
3903 "gt" " " 4
3904 at_xfail=no
3905 (
3906 printf "%s\n" "39. $at_setup_line: testing $at_desc ..."
3907 $at_traceon
3908
3909
3910 cat >mh_profile <<'_ATEOF'
3911 Charset: auto
3912 _ATEOF
3913
3914 cat >input.fmt <<'_ATEOF'
3915 %(void(num 10))%(gt 5):%(void(num 3))%(gt 5)
3916 _ATEOF
3917
3918 cat >message <<'_ATEOF'
3919
3920
3921 _ATEOF
3922
3923 { set +x
3924 printf "%s\n" "$at_srcdir/fmtfunc.at:139: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3925 "
3926 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:139"
3927 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3928
3929 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3930 at_status=$? at_failed=false
3931 $at_check_filter
3932 at_fn_diff_devnull "$at_stderr" || at_failed=:
3933 echo >>"$at_stdout"; printf "%s\n" "1:0
3934 " | \
3935 $at_diff - "$at_stdout" || at_failed=:
3936 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:139"
3937 $at_failed && at_fn_log_failure
3938 $at_traceon; }
3939
3940 set +x
3941 $at_times_p && times >"$at_times_file"
3942 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3943 read at_status <"$at_status_file"
3944 #AT_STOP_39
3945 #AT_START_40
3946 at_fn_group_banner 40 'fmtfunc.at:148' \
3947 "match" " " 4
3948 at_xfail=no
3949 (
3950 printf "%s\n" "40. $at_setup_line: testing $at_desc ..."
3951 $at_traceon
3952
3953
3954 cat >mh_profile <<'_ATEOF'
3955 Charset: auto
3956 _ATEOF
3957
3958 cat >input.fmt <<'_ATEOF'
3959 %(void(lit a stringent test))%(match string)
3960 %(void(lit one more test))%(match string)
3961 _ATEOF
3962
3963 cat >message <<'_ATEOF'
3964
3965
3966 _ATEOF
3967
3968 { set +x
3969 printf "%s\n" "$at_srcdir/fmtfunc.at:148: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3970 "
3971 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:148"
3972 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
3973
3974 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3975 at_status=$? at_failed=false
3976 $at_check_filter
3977 at_fn_diff_devnull "$at_stderr" || at_failed=:
3978 echo >>"$at_stdout"; printf "%s\n" "1
3979 0
3980 " | \
3981 $at_diff - "$at_stdout" || at_failed=:
3982 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:148"
3983 $at_failed && at_fn_log_failure
3984 $at_traceon; }
3985
3986 set +x
3987 $at_times_p && times >"$at_times_file"
3988 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3989 read at_status <"$at_status_file"
3990 #AT_STOP_40
3991 #AT_START_41
3992 at_fn_group_banner 41 'fmtfunc.at:159' \
3993 "amatch" " " 4
3994 at_xfail=no
3995 (
3996 printf "%s\n" "41. $at_setup_line: testing $at_desc ..."
3997 $at_traceon
3998
3999
4000 cat >mh_profile <<'_ATEOF'
4001 Charset: auto
4002 _ATEOF
4003
4004 cat >input.fmt <<'_ATEOF'
4005 %(void(lit stringent test))%(amatch string)
4006 %(void(lit a stringent test))%(amatch string)
4007 _ATEOF
4008
4009 cat >message <<'_ATEOF'
4010
4011
4012 _ATEOF
4013
4014 { set +x
4015 printf "%s\n" "$at_srcdir/fmtfunc.at:159: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4016 "
4017 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:159"
4018 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4019
4020 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4021 at_status=$? at_failed=false
4022 $at_check_filter
4023 at_fn_diff_devnull "$at_stderr" || at_failed=:
4024 echo >>"$at_stdout"; printf "%s\n" "1
4025 0
4026 " | \
4027 $at_diff - "$at_stdout" || at_failed=:
4028 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:159"
4029 $at_failed && at_fn_log_failure
4030 $at_traceon; }
4031
4032 set +x
4033 $at_times_p && times >"$at_times_file"
4034 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4035 read at_status <"$at_status_file"
4036 #AT_STOP_41
4037 #AT_START_42
4038 at_fn_group_banner 42 'fmtfunc.at:170' \
4039 "plus" " " 4
4040 at_xfail=no
4041 (
4042 printf "%s\n" "42. $at_setup_line: testing $at_desc ..."
4043 $at_traceon
4044
4045
4046 cat >mh_profile <<'_ATEOF'
4047 Charset: auto
4048 _ATEOF
4049
4050 cat >input.fmt <<'_ATEOF'
4051 %(void(num 10))%(plus 15)
4052 _ATEOF
4053
4054 cat >message <<'_ATEOF'
4055
4056
4057 _ATEOF
4058
4059 { set +x
4060 printf "%s\n" "$at_srcdir/fmtfunc.at:170: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4061 "
4062 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:170"
4063 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4064
4065 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4066 at_status=$? at_failed=false
4067 $at_check_filter
4068 at_fn_diff_devnull "$at_stderr" || at_failed=:
4069 echo >>"$at_stdout"; printf "%s\n" "25
4070 " | \
4071 $at_diff - "$at_stdout" || at_failed=:
4072 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:170"
4073 $at_failed && at_fn_log_failure
4074 $at_traceon; }
4075
4076 set +x
4077 $at_times_p && times >"$at_times_file"
4078 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4079 read at_status <"$at_status_file"
4080 #AT_STOP_42
4081 #AT_START_43
4082 at_fn_group_banner 43 'fmtfunc.at:179' \
4083 "minus" " " 4
4084 at_xfail=no
4085 (
4086 printf "%s\n" "43. $at_setup_line: testing $at_desc ..."
4087 $at_traceon
4088
4089
4090 cat >mh_profile <<'_ATEOF'
4091 Charset: auto
4092 _ATEOF
4093
4094 cat >input.fmt <<'_ATEOF'
4095 %(void(num 10))%(minus 15)
4096 _ATEOF
4097
4098 cat >message <<'_ATEOF'
4099
4100
4101 _ATEOF
4102
4103 { set +x
4104 printf "%s\n" "$at_srcdir/fmtfunc.at:179: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4105 "
4106 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:179"
4107 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4108
4109 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4110 at_status=$? at_failed=false
4111 $at_check_filter
4112 at_fn_diff_devnull "$at_stderr" || at_failed=:
4113 echo >>"$at_stdout"; printf "%s\n" "-5
4114 " | \
4115 $at_diff - "$at_stdout" || at_failed=:
4116 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:179"
4117 $at_failed && at_fn_log_failure
4118 $at_traceon; }
4119
4120 set +x
4121 $at_times_p && times >"$at_times_file"
4122 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4123 read at_status <"$at_status_file"
4124 #AT_STOP_43
4125 #AT_START_44
4126 at_fn_group_banner 44 'fmtfunc.at:188' \
4127 "divide" " " 4
4128 at_xfail=no
4129 (
4130 printf "%s\n" "44. $at_setup_line: testing $at_desc ..."
4131 $at_traceon
4132
4133
4134 cat >mh_profile <<'_ATEOF'
4135 Charset: auto
4136 _ATEOF
4137
4138 cat >input.fmt <<'_ATEOF'
4139 %(void(num 10))%(divide 2)
4140 _ATEOF
4141
4142 cat >message <<'_ATEOF'
4143
4144
4145 _ATEOF
4146
4147 { set +x
4148 printf "%s\n" "$at_srcdir/fmtfunc.at:188: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4149 "
4150 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:188"
4151 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4152
4153 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4154 at_status=$? at_failed=false
4155 $at_check_filter
4156 at_fn_diff_devnull "$at_stderr" || at_failed=:
4157 echo >>"$at_stdout"; printf "%s\n" "5
4158 " | \
4159 $at_diff - "$at_stdout" || at_failed=:
4160 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:188"
4161 $at_failed && at_fn_log_failure
4162 $at_traceon; }
4163
4164 set +x
4165 $at_times_p && times >"$at_times_file"
4166 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4167 read at_status <"$at_status_file"
4168 #AT_STOP_44
4169 #AT_START_45
4170 at_fn_group_banner 45 'fmtfunc.at:197' \
4171 "modulo" " " 4
4172 at_xfail=no
4173 (
4174 printf "%s\n" "45. $at_setup_line: testing $at_desc ..."
4175 $at_traceon
4176
4177
4178 cat >mh_profile <<'_ATEOF'
4179 Charset: auto
4180 _ATEOF
4181
4182 cat >input.fmt <<'_ATEOF'
4183 %(void(num 10))%(modulo 2)
4184 %(void(num 5))%(modulo 2)
4185 _ATEOF
4186
4187 cat >message <<'_ATEOF'
4188
4189
4190 _ATEOF
4191
4192 { set +x
4193 printf "%s\n" "$at_srcdir/fmtfunc.at:197: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4194 "
4195 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:197"
4196 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4197
4198 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4199 at_status=$? at_failed=false
4200 $at_check_filter
4201 at_fn_diff_devnull "$at_stderr" || at_failed=:
4202 echo >>"$at_stdout"; printf "%s\n" "0
4203 1
4204 " | \
4205 $at_diff - "$at_stdout" || at_failed=:
4206 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:197"
4207 $at_failed && at_fn_log_failure
4208 $at_traceon; }
4209
4210 set +x
4211 $at_times_p && times >"$at_times_file"
4212 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4213 read at_status <"$at_status_file"
4214 #AT_STOP_45
4215 #AT_START_46
4216 at_fn_group_banner 46 'fmtfunc.at:208' \
4217 "getenv" " " 4
4218 at_xfail=no
4219 (
4220 printf "%s\n" "46. $at_setup_line: testing $at_desc ..."
4221 $at_traceon
4222
4223
4224 cat >input.fmt <<'_ATEOF'
4225 %(getenv MH_TEST)
4226 _ATEOF
4227
4228 cat >message <<'_ATEOF'
4229
4230
4231 _ATEOF
4232
4233 { set +x
4234 printf "%s\n" "$at_srcdir/fmtfunc.at:215: MH=/dev/null MH_TEST=defined fmtcheck -form input.fmt -width 80 message
4235 "
4236 at_fn_check_prepare_notrace 'an embedded newline' "fmtfunc.at:215"
4237 ( $at_check_trace; MH=/dev/null MH_TEST=defined fmtcheck -form input.fmt -width 80 message
4238
4239 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4240 at_status=$? at_failed=false
4241 $at_check_filter
4242 at_fn_diff_devnull "$at_stderr" || at_failed=:
4243 echo >>"$at_stdout"; printf "%s\n" "defined
4244 " | \
4245 $at_diff - "$at_stdout" || at_failed=:
4246 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:215"
4247 $at_failed && at_fn_log_failure
4248 $at_traceon; }
4249
4250 set +x
4251 $at_times_p && times >"$at_times_file"
4252 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4253 read at_status <"$at_status_file"
4254 #AT_STOP_46
4255 #AT_START_47
4256 at_fn_group_banner 47 'fmtfunc.at:222' \
4257 "profile" " " 4
4258 at_xfail=no
4259 (
4260 printf "%s\n" "47. $at_setup_line: testing $at_desc ..."
4261 $at_traceon
4262
4263 xo
4264 cat >input.fmt <<'_ATEOF'
4265 %(profile Local-Mailbox)
4266 %(profile undefined)
4267 %(profile moreproc)
4268 _ATEOF
4269
4270 cat >message <<'_ATEOF'
4271
4272
4273 _ATEOF
4274
4275 cat >mh_profile <<'_ATEOF'
4276 Local-Mailbox: [email protected]
4277 moreproc: simple-more
4278 _ATEOF
4279
4280 { set +x
4281 printf "%s\n" "$at_srcdir/fmtfunc.at:234: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -width 80 message
4282 "
4283 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:234"
4284 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -width 80 message
4285
4286 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4287 at_status=$? at_failed=false
4288 $at_check_filter
4289 at_fn_diff_devnull "$at_stderr" || at_failed=:
4290 echo >>"$at_stdout"; printf "%s\n" "[email protected]
4291
4292 simple-more
4293 " | \
4294 $at_diff - "$at_stdout" || at_failed=:
4295 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:234"
4296 $at_failed && at_fn_log_failure
4297 $at_traceon; }
4298
4299 set +x
4300 $at_times_p && times >"$at_times_file"
4301 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4302 read at_status <"$at_status_file"
4303 #AT_STOP_47
4304 #AT_START_48
4305 at_fn_group_banner 48 'fmtfunc.at:243' \
4306 "nonzero" " " 4
4307 at_xfail=no
4308 (
4309 printf "%s\n" "48. $at_setup_line: testing $at_desc ..."
4310 $at_traceon
4311
4312
4313 cat >mh_profile <<'_ATEOF'
4314 Charset: auto
4315 _ATEOF
4316
4317 cat >input.fmt <<'_ATEOF'
4318 %(nonzero(num 10))
4319 %(nonzero(num))
4320 %(void(width))%(nonzero)
4321 _ATEOF
4322
4323 cat >message <<'_ATEOF'
4324
4325
4326 _ATEOF
4327
4328 { set +x
4329 printf "%s\n" "$at_srcdir/fmtfunc.at:243: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4330 "
4331 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:243"
4332 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4333
4334 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4335 at_status=$? at_failed=false
4336 $at_check_filter
4337 at_fn_diff_devnull "$at_stderr" || at_failed=:
4338 echo >>"$at_stdout"; printf "%s\n" "1
4339 0
4340 1
4341 " | \
4342 $at_diff - "$at_stdout" || at_failed=:
4343 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:243"
4344 $at_failed && at_fn_log_failure
4345 $at_traceon; }
4346
4347 set +x
4348 $at_times_p && times >"$at_times_file"
4349 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4350 read at_status <"$at_status_file"
4351 #AT_STOP_48
4352 #AT_START_49
4353 at_fn_group_banner 49 'fmtfunc.at:256' \
4354 "zero" " " 4
4355 at_xfail=no
4356 (
4357 printf "%s\n" "49. $at_setup_line: testing $at_desc ..."
4358 $at_traceon
4359
4360
4361 cat >mh_profile <<'_ATEOF'
4362 Charset: auto
4363 _ATEOF
4364
4365 cat >input.fmt <<'_ATEOF'
4366 %(zero(num 10))
4367 %(zero(num))
4368 %(void(width))%(zero)
4369 _ATEOF
4370
4371 cat >message <<'_ATEOF'
4372
4373
4374 _ATEOF
4375
4376 { set +x
4377 printf "%s\n" "$at_srcdir/fmtfunc.at:256: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4378 "
4379 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:256"
4380 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4381
4382 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4383 at_status=$? at_failed=false
4384 $at_check_filter
4385 at_fn_diff_devnull "$at_stderr" || at_failed=:
4386 echo >>"$at_stdout"; printf "%s\n" "0
4387 1
4388 0
4389 " | \
4390 $at_diff - "$at_stdout" || at_failed=:
4391 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:256"
4392 $at_failed && at_fn_log_failure
4393 $at_traceon; }
4394
4395 set +x
4396 $at_times_p && times >"$at_times_file"
4397 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4398 read at_status <"$at_status_file"
4399 #AT_STOP_49
4400 #AT_START_50
4401 at_fn_group_banner 50 'fmtfunc.at:269' \
4402 "null" " " 4
4403 at_xfail=no
4404 (
4405 printf "%s\n" "50. $at_setup_line: testing $at_desc ..."
4406 $at_traceon
4407
4408
4409 cat >mh_profile <<'_ATEOF'
4410 Charset: auto
4411 _ATEOF
4412
4413 cat >input.fmt <<'_ATEOF'
4414 %(lit input)%(null)
4415 %(lit)%(null)
4416 _ATEOF
4417
4418 cat >message <<'_ATEOF'
4419
4420
4421 _ATEOF
4422
4423 { set +x
4424 printf "%s\n" "$at_srcdir/fmtfunc.at:269: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4425 "
4426 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:269"
4427 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4428
4429 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4430 at_status=$? at_failed=false
4431 $at_check_filter
4432 at_fn_diff_devnull "$at_stderr" || at_failed=:
4433 echo >>"$at_stdout"; printf "%s\n" "input0
4434 1
4435 " | \
4436 $at_diff - "$at_stdout" || at_failed=:
4437 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:269"
4438 $at_failed && at_fn_log_failure
4439 $at_traceon; }
4440
4441 set +x
4442 $at_times_p && times >"$at_times_file"
4443 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4444 read at_status <"$at_status_file"
4445 #AT_STOP_50
4446 #AT_START_51
4447 at_fn_group_banner 51 'fmtfunc.at:280' \
4448 "nonnull" " " 4
4449 at_xfail=no
4450 (
4451 printf "%s\n" "51. $at_setup_line: testing $at_desc ..."
4452 $at_traceon
4453
4454
4455 cat >mh_profile <<'_ATEOF'
4456 Charset: auto
4457 _ATEOF
4458
4459 cat >input.fmt <<'_ATEOF'
4460 %(lit input)%(nonnull)
4461 %(lit)%(nonnull)
4462 _ATEOF
4463
4464 cat >message <<'_ATEOF'
4465
4466
4467 _ATEOF
4468
4469 { set +x
4470 printf "%s\n" "$at_srcdir/fmtfunc.at:280: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4471 "
4472 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:280"
4473 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4474
4475 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4476 at_status=$? at_failed=false
4477 $at_check_filter
4478 at_fn_diff_devnull "$at_stderr" || at_failed=:
4479 echo >>"$at_stdout"; printf "%s\n" "input1
4480 0
4481 " | \
4482 $at_diff - "$at_stdout" || at_failed=:
4483 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:280"
4484 $at_failed && at_fn_log_failure
4485 $at_traceon; }
4486
4487 set +x
4488 $at_times_p && times >"$at_times_file"
4489 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4490 read at_status <"$at_status_file"
4491 #AT_STOP_51
4492 #AT_START_52
4493 at_fn_group_banner 52 'fmtfunc.at:291' \
4494 "comp" " " 4
4495 at_xfail=no
4496 (
4497 printf "%s\n" "52. $at_setup_line: testing $at_desc ..."
4498 $at_traceon
4499
4500
4501 cat >mh_profile <<'_ATEOF'
4502 Charset: auto
4503 _ATEOF
4504
4505 cat >input.fmt <<'_ATEOF'
4506 %(comp{From})
4507 _ATEOF
4508
4509 cat >message <<'_ATEOF'
4510 From: [email protected]
4511
4512 _ATEOF
4513
4514 { set +x
4515 printf "%s\n" "$at_srcdir/fmtfunc.at:291: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4516 "
4517 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:291"
4518 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4519
4520 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4521 at_status=$? at_failed=false
4522 $at_check_filter
4523 at_fn_diff_devnull "$at_stderr" || at_failed=:
4524 echo >>"$at_stdout"; printf "%s\n" "[email protected]
4525 " | \
4526 $at_diff - "$at_stdout" || at_failed=:
4527 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:291"
4528 $at_failed && at_fn_log_failure
4529 $at_traceon; }
4530
4531 set +x
4532 $at_times_p && times >"$at_times_file"
4533 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4534 read at_status <"$at_status_file"
4535 #AT_STOP_52
4536 #AT_START_53
4537 at_fn_group_banner 53 'fmtfunc.at:300' \
4538 "compval" " " 4
4539 at_xfail=no
4540 (
4541 printf "%s\n" "53. $at_setup_line: testing $at_desc ..."
4542 $at_traceon
4543
4544
4545 cat >mh_profile <<'_ATEOF'
4546 Charset: auto
4547 _ATEOF
4548
4549 cat >input.fmt <<'_ATEOF'
4550 %(comp{X-Level})
4551 _ATEOF
4552
4553 cat >message <<'_ATEOF'
4554 From: [email protected]
4555 X-Level: 8
4556
4557 _ATEOF
4558
4559 { set +x
4560 printf "%s\n" "$at_srcdir/fmtfunc.at:300: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4561 "
4562 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:300"
4563 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4564
4565 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4566 at_status=$? at_failed=false
4567 $at_check_filter
4568 at_fn_diff_devnull "$at_stderr" || at_failed=:
4569 echo >>"$at_stdout"; printf "%s\n" "8
4570 " | \
4571 $at_diff - "$at_stdout" || at_failed=:
4572 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:300"
4573 $at_failed && at_fn_log_failure
4574 $at_traceon; }
4575
4576 set +x
4577 $at_times_p && times >"$at_times_file"
4578 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4579 read at_status <"$at_status_file"
4580 #AT_STOP_53
4581 #AT_START_54
4582 at_fn_group_banner 54 'fmtfunc.at:311' \
4583 "decode" " " 4
4584 at_xfail=no
4585 (
4586 printf "%s\n" "54. $at_setup_line: testing $at_desc ..."
4587 $at_traceon
4588
4589
4590 cat >mh_profile <<'_ATEOF'
4591 Charset: auto
4592 _ATEOF
4593
4594 cat >input.fmt <<'_ATEOF'
4595 %(decode{Subject})
4596 _ATEOF
4597
4598 cat >message <<'_ATEOF'
4599 Subject: =?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?= ... =?ISO-8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?=
4600
4601 body
4602 _ATEOF
4603
4604 { set +x
4605 printf "%s\n" "$at_srcdir/fmtfunc.at:311: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4606 "
4607 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:311"
4608 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4609
4610 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4611 at_status=$? at_failed=false
4612 $at_check_filter
4613 at_fn_diff_devnull "$at_stderr" || at_failed=:
4614 echo >>"$at_stdout"; printf "%s\n" "If you can read this yo ... u understand the example.
4615 " | \
4616 $at_diff - "$at_stdout" || at_failed=:
4617 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:311"
4618 $at_failed && at_fn_log_failure
4619 $at_traceon; }
4620
4621 set +x
4622 $at_times_p && times >"$at_times_file"
4623 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4624 read at_status <"$at_status_file"
4625 #AT_STOP_54
4626 #AT_START_55
4627 at_fn_group_banner 55 'fmtfunc.at:323' \
4628 "trim" " " 4
4629 at_xfail=no
4630 (
4631 printf "%s\n" "55. $at_setup_line: testing $at_desc ..."
4632 $at_traceon
4633
4634
4635 cat >mh_profile <<'_ATEOF'
4636 Charset: auto
4637 _ATEOF
4638
4639 cat >input.fmt <<'_ATEOF'
4640 %(void(lit trailing ))%(strlen)
4641 %(trim)%(strlen)
4642 _ATEOF
4643
4644 cat >message <<'_ATEOF'
4645
4646
4647 _ATEOF
4648
4649 { set +x
4650 printf "%s\n" "$at_srcdir/fmtfunc.at:323: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4651 "
4652 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:323"
4653 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4654
4655 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4656 at_status=$? at_failed=false
4657 $at_check_filter
4658 at_fn_diff_devnull "$at_stderr" || at_failed=:
4659 echo >>"$at_stdout"; printf "%s\n" "12
4660 8
4661 " | \
4662 $at_diff - "$at_stdout" || at_failed=:
4663 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:323"
4664 $at_failed && at_fn_log_failure
4665 $at_traceon; }
4666
4667 set +x
4668 $at_times_p && times >"$at_times_file"
4669 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4670 read at_status <"$at_status_file"
4671 #AT_STOP_55
4672 #AT_START_56
4673 at_fn_group_banner 56 'fmtfunc.at:334' \
4674 "putstr" " " 4
4675 at_xfail=no
4676 (
4677 printf "%s\n" "56. $at_setup_line: testing $at_desc ..."
4678 $at_traceon
4679
4680
4681 cat >mh_profile <<'_ATEOF'
4682 Charset: auto
4683 _ATEOF
4684
4685 cat >input.fmt <<'_ATEOF'
4686 %(void(lit string))%(putstr)
4687 %(putstr test)
4688 %(putstr{from})
4689 %(putstr(msg))
4690 _ATEOF
4691
4692 cat >message <<'_ATEOF'
4693 From: [email protected]
4694
4695 _ATEOF
4696
4697 { set +x
4698 printf "%s\n" "$at_srcdir/fmtfunc.at:334: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4699 "
4700 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:334"
4701 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4702
4703 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4704 at_status=$? at_failed=false
4705 $at_check_filter
4706 at_fn_diff_devnull "$at_stderr" || at_failed=:
4707 echo >>"$at_stdout"; printf "%s\n" "string
4708 test
4709 [email protected]
4710 1
4711 " | \
4712 $at_diff - "$at_stdout" || at_failed=:
4713 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:334"
4714 $at_failed && at_fn_log_failure
4715 $at_traceon; }
4716
4717 set +x
4718 $at_times_p && times >"$at_times_file"
4719 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4720 read at_status <"$at_status_file"
4721 #AT_STOP_56
4722 #AT_START_57
4723 at_fn_group_banner 57 'fmtfunc.at:349' \
4724 "putstrf" " " 4
4725 at_xfail=no
4726 (
4727 printf "%s\n" "57. $at_setup_line: testing $at_desc ..."
4728 $at_traceon
4729
4730
4731 cat >mh_profile <<'_ATEOF'
4732 Charset: auto
4733 _ATEOF
4734
4735 cat >input.fmt <<'_ATEOF'
4736 %(void(comp{Subject}))%-20(putstrf)
4737 _ATEOF
4738
4739 cat >message <<'_ATEOF'
4740 From: [email protected]
4741 Subject: test message
4742
4743 body
4744 _ATEOF
4745
4746 { set +x
4747 printf "%s\n" "$at_srcdir/fmtfunc.at:349: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4748 "
4749 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:349"
4750 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4751
4752 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4753 at_status=$? at_failed=false
4754 $at_check_filter
4755 at_fn_diff_devnull "$at_stderr" || at_failed=:
4756 echo >>"$at_stdout"; printf "%s\n" " test message
4757 " | \
4758 $at_diff - "$at_stdout" || at_failed=:
4759 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:349"
4760 $at_failed && at_fn_log_failure
4761 $at_traceon; }
4762
4763 set +x
4764 $at_times_p && times >"$at_times_file"
4765 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4766 read at_status <"$at_status_file"
4767 #AT_STOP_57
4768 #AT_START_58
4769 at_fn_group_banner 58 'fmtfunc.at:360' \
4770 "putnum" " " 4
4771 at_xfail=no
4772 (
4773 printf "%s\n" "58. $at_setup_line: testing $at_desc ..."
4774 $at_traceon
4775
4776
4777 cat >mh_profile <<'_ATEOF'
4778 Charset: auto
4779 _ATEOF
4780
4781 cat >input.fmt <<'_ATEOF'
4782 %(void(num 10))%(putnum)
4783 %(putnum 15)
4784 %(putnum{X-Number})
4785 %(putnum(msg))
4786 _ATEOF
4787
4788 cat >message <<'_ATEOF'
4789 From: [email protected]
4790 X-Number: 8
4791
4792 body
4793 _ATEOF
4794
4795 { set +x
4796 printf "%s\n" "$at_srcdir/fmtfunc.at:360: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4797 "
4798 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:360"
4799 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4800
4801 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4802 at_status=$? at_failed=false
4803 $at_check_filter
4804 at_fn_diff_devnull "$at_stderr" || at_failed=:
4805 echo >>"$at_stdout"; printf "%s\n" "10
4806 15
4807 8
4808 1
4809 " | \
4810 $at_diff - "$at_stdout" || at_failed=:
4811 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:360"
4812 $at_failed && at_fn_log_failure
4813 $at_traceon; }
4814
4815 set +x
4816 $at_times_p && times >"$at_times_file"
4817 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4818 read at_status <"$at_status_file"
4819 #AT_STOP_58
4820 #AT_START_59
4821 at_fn_group_banner 59 'fmtfunc.at:377' \
4822 "putnumf" " " 4
4823 at_xfail=no
4824 (
4825 printf "%s\n" "59. $at_setup_line: testing $at_desc ..."
4826 $at_traceon
4827
4828
4829 cat >mh_profile <<'_ATEOF'
4830 Charset: auto
4831 _ATEOF
4832
4833 cat >input.fmt <<'_ATEOF'
4834 %(void(num 10))%03(putnumf)
4835 %(void(num 65535))%03(putnumf)
4836 _ATEOF
4837
4838 cat >message <<'_ATEOF'
4839
4840
4841 _ATEOF
4842
4843 { set +x
4844 printf "%s\n" "$at_srcdir/fmtfunc.at:377: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4845 "
4846 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:377"
4847 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4848
4849 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4850 at_status=$? at_failed=false
4851 $at_check_filter
4852 at_fn_diff_devnull "$at_stderr" || at_failed=:
4853 echo >>"$at_stdout"; printf "%s\n" "010
4854 ?35
4855 " | \
4856 $at_diff - "$at_stdout" || at_failed=:
4857 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:377"
4858 $at_failed && at_fn_log_failure
4859 $at_traceon; }
4860
4861 set +x
4862 $at_times_p && times >"$at_times_file"
4863 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4864 read at_status <"$at_status_file"
4865 #AT_STOP_59
4866 #AT_START_60
4867 at_fn_group_banner 60 'fmtfunc.at:390' \
4868 "nodate" " " 4
4869 at_xfail=no
4870 (
4871 printf "%s\n" "60. $at_setup_line: testing $at_desc ..."
4872 $at_traceon
4873
4874
4875 cat >mh_profile <<'_ATEOF'
4876 Charset: auto
4877 _ATEOF
4878
4879 cat >input.fmt <<'_ATEOF'
4880 %(nodate{date})
4881 %(nodate{from})
4882 _ATEOF
4883
4884 cat >message <<'_ATEOF'
4885 From: [email protected]
4886 Date: Sat, 01 Jul 2017 08:00:01 +0300
4887
4888 body
4889 _ATEOF
4890
4891 { set +x
4892 printf "%s\n" "$at_srcdir/fmtfunc.at:390: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4893 "
4894 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:390"
4895 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4896
4897 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4898 at_status=$? at_failed=false
4899 $at_check_filter
4900 at_fn_diff_devnull "$at_stderr" || at_failed=:
4901 echo >>"$at_stdout"; printf "%s\n" "0
4902 1
4903 " | \
4904 $at_diff - "$at_stdout" || at_failed=:
4905 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:390"
4906 $at_failed && at_fn_log_failure
4907 $at_traceon; }
4908
4909 set +x
4910 $at_times_p && times >"$at_times_file"
4911 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4912 read at_status <"$at_status_file"
4913 #AT_STOP_60
4914 #AT_START_61
4915 at_fn_group_banner 61 'fmtfunc.at:403' \
4916 "formataddr" " " 4
4917 at_xfail=no
4918 (
4919 printf "%s\n" "61. $at_setup_line: testing $at_desc ..."
4920 $at_traceon
4921
4922
4923 cat >mh_profile <<'_ATEOF'
4924 Charset: auto
4925 _ATEOF
4926
4927 cat >input.fmt <<'_ATEOF'
4928 %(formataddr{From})%(formataddr{To})%(formataddr{Reply-To})%(putstr)
4929 _ATEOF
4930
4931 cat >message <<'_ATEOF'
4932 From: [email protected]
4933 To: [email protected]
4934 Reply-To: [email protected]
4935
4936 data
4937 _ATEOF
4938
4939 { set +x
4940 printf "%s\n" "$at_srcdir/fmtfunc.at:403: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4941 "
4942 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:403"
4943 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4944
4945 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4946 at_status=$? at_failed=false
4947 $at_check_filter
4948 at_fn_diff_devnull "$at_stderr" || at_failed=:
4949 echo >>"$at_stdout"; printf "%s\n" "<[email protected]>,<[email protected]>
4950 " | \
4951 $at_diff - "$at_stdout" || at_failed=:
4952 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:403"
4953 $at_failed && at_fn_log_failure
4954 $at_traceon; }
4955
4956 set +x
4957 $at_times_p && times >"$at_times_file"
4958 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4959 read at_status <"$at_status_file"
4960 #AT_STOP_61
4961 #AT_START_62
4962 at_fn_group_banner 62 'fmtfunc.at:415' \
4963 "sec" " " 4
4964 at_xfail=no
4965 (
4966 printf "%s\n" "62. $at_setup_line: testing $at_desc ..."
4967 $at_traceon
4968
4969
4970 cat >mh_profile <<'_ATEOF'
4971 Charset: auto
4972 _ATEOF
4973
4974 cat >input.fmt <<'_ATEOF'
4975 %(sec{Date})
4976 _ATEOF
4977
4978 cat >message <<'_ATEOF'
4979 Date: Mon, 3 Jul 2017 13:17:58 +0300
4980
4981 _ATEOF
4982
4983 { set +x
4984 printf "%s\n" "$at_srcdir/fmtfunc.at:415: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4985 "
4986 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:415"
4987 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
4988
4989 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4990 at_status=$? at_failed=false
4991 $at_check_filter
4992 at_fn_diff_devnull "$at_stderr" || at_failed=:
4993 echo >>"$at_stdout"; printf "%s\n" "58
4994 " | \
4995 $at_diff - "$at_stdout" || at_failed=:
4996 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:415"
4997 $at_failed && at_fn_log_failure
4998 $at_traceon; }
4999
5000 set +x
5001 $at_times_p && times >"$at_times_file"
5002 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5003 read at_status <"$at_status_file"
5004 #AT_STOP_62
5005 #AT_START_63
5006 at_fn_group_banner 63 'fmtfunc.at:424' \
5007 "min" " " 4
5008 at_xfail=no
5009 (
5010 printf "%s\n" "63. $at_setup_line: testing $at_desc ..."
5011 $at_traceon
5012
5013
5014 cat >mh_profile <<'_ATEOF'
5015 Charset: auto
5016 _ATEOF
5017
5018 cat >input.fmt <<'_ATEOF'
5019 %(min{Date})
5020 _ATEOF
5021
5022 cat >message <<'_ATEOF'
5023 Date: Mon, 3 Jul 2017 13:17:58 +0300
5024
5025 _ATEOF
5026
5027 { set +x
5028 printf "%s\n" "$at_srcdir/fmtfunc.at:424: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5029 "
5030 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:424"
5031 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5032
5033 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5034 at_status=$? at_failed=false
5035 $at_check_filter
5036 at_fn_diff_devnull "$at_stderr" || at_failed=:
5037 echo >>"$at_stdout"; printf "%s\n" "17
5038 " | \
5039 $at_diff - "$at_stdout" || at_failed=:
5040 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:424"
5041 $at_failed && at_fn_log_failure
5042 $at_traceon; }
5043
5044 set +x
5045 $at_times_p && times >"$at_times_file"
5046 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5047 read at_status <"$at_status_file"
5048 #AT_STOP_63
5049 #AT_START_64
5050 at_fn_group_banner 64 'fmtfunc.at:433' \
5051 "hour" " " 4
5052 at_xfail=no
5053 (
5054 printf "%s\n" "64. $at_setup_line: testing $at_desc ..."
5055 $at_traceon
5056
5057
5058 cat >mh_profile <<'_ATEOF'
5059 Charset: auto
5060 _ATEOF
5061
5062 cat >input.fmt <<'_ATEOF'
5063 %(hour{Date})
5064 _ATEOF
5065
5066 cat >message <<'_ATEOF'
5067 Date: Mon, 3 Jul 2017 13:17:58 +0300
5068
5069 _ATEOF
5070
5071 { set +x
5072 printf "%s\n" "$at_srcdir/fmtfunc.at:433: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5073 "
5074 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:433"
5075 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5076
5077 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5078 at_status=$? at_failed=false
5079 $at_check_filter
5080 at_fn_diff_devnull "$at_stderr" || at_failed=:
5081 echo >>"$at_stdout"; printf "%s\n" "13
5082 " | \
5083 $at_diff - "$at_stdout" || at_failed=:
5084 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:433"
5085 $at_failed && at_fn_log_failure
5086 $at_traceon; }
5087
5088 set +x
5089 $at_times_p && times >"$at_times_file"
5090 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5091 read at_status <"$at_status_file"
5092 #AT_STOP_64
5093 #AT_START_65
5094 at_fn_group_banner 65 'fmtfunc.at:442' \
5095 "wday" " " 4
5096 at_xfail=no
5097 (
5098 printf "%s\n" "65. $at_setup_line: testing $at_desc ..."
5099 $at_traceon
5100
5101
5102 cat >mh_profile <<'_ATEOF'
5103 Charset: auto
5104 _ATEOF
5105
5106 cat >input.fmt <<'_ATEOF'
5107 %(wday{Date})
5108 _ATEOF
5109
5110 cat >message <<'_ATEOF'
5111 Date: Mon, 3 Jul 2017 13:17:58 +0300
5112
5113 _ATEOF
5114
5115 { set +x
5116 printf "%s\n" "$at_srcdir/fmtfunc.at:442: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5117 "
5118 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:442"
5119 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5120
5121 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5122 at_status=$? at_failed=false
5123 $at_check_filter
5124 at_fn_diff_devnull "$at_stderr" || at_failed=:
5125 echo >>"$at_stdout"; printf "%s\n" "1
5126 " | \
5127 $at_diff - "$at_stdout" || at_failed=:
5128 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:442"
5129 $at_failed && at_fn_log_failure
5130 $at_traceon; }
5131
5132 set +x
5133 $at_times_p && times >"$at_times_file"
5134 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5135 read at_status <"$at_status_file"
5136 #AT_STOP_65
5137 #AT_START_66
5138 at_fn_group_banner 66 'fmtfunc.at:451' \
5139 "day" " " 4
5140 at_xfail=no
5141 (
5142 printf "%s\n" "66. $at_setup_line: testing $at_desc ..."
5143 $at_traceon
5144
5145
5146 cat >mh_profile <<'_ATEOF'
5147 Charset: auto
5148 _ATEOF
5149
5150 cat >input.fmt <<'_ATEOF'
5151 %(day{Date})
5152 _ATEOF
5153
5154 cat >message <<'_ATEOF'
5155 Date: Mon, 3 Jul 2017 13:17:58 +0300
5156
5157 _ATEOF
5158
5159 { set +x
5160 printf "%s\n" "$at_srcdir/fmtfunc.at:451: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5161 "
5162 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:451"
5163 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5164
5165 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5166 at_status=$? at_failed=false
5167 $at_check_filter
5168 at_fn_diff_devnull "$at_stderr" || at_failed=:
5169 echo >>"$at_stdout"; printf "%s\n" "Mon
5170 " | \
5171 $at_diff - "$at_stdout" || at_failed=:
5172 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:451"
5173 $at_failed && at_fn_log_failure
5174 $at_traceon; }
5175
5176 set +x
5177 $at_times_p && times >"$at_times_file"
5178 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5179 read at_status <"$at_status_file"
5180 #AT_STOP_66
5181 #AT_START_67
5182 at_fn_group_banner 67 'fmtfunc.at:460' \
5183 "weekday" " " 4
5184 at_xfail=no
5185 (
5186 printf "%s\n" "67. $at_setup_line: testing $at_desc ..."
5187 $at_traceon
5188
5189
5190 cat >mh_profile <<'_ATEOF'
5191 Charset: auto
5192 _ATEOF
5193
5194 cat >input.fmt <<'_ATEOF'
5195 %(weekday{Date})
5196 _ATEOF
5197
5198 cat >message <<'_ATEOF'
5199 Date: Mon, 3 Jul 2017 13:17:58 +0300
5200
5201 _ATEOF
5202
5203 { set +x
5204 printf "%s\n" "$at_srcdir/fmtfunc.at:460: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5205 "
5206 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:460"
5207 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5208
5209 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5210 at_status=$? at_failed=false
5211 $at_check_filter
5212 at_fn_diff_devnull "$at_stderr" || at_failed=:
5213 echo >>"$at_stdout"; printf "%s\n" "Monday
5214 " | \
5215 $at_diff - "$at_stdout" || at_failed=:
5216 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:460"
5217 $at_failed && at_fn_log_failure
5218 $at_traceon; }
5219
5220 set +x
5221 $at_times_p && times >"$at_times_file"
5222 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5223 read at_status <"$at_status_file"
5224 #AT_STOP_67
5225 #AT_START_68
5226 at_fn_group_banner 68 'fmtfunc.at:469' \
5227 "sday" " " 4
5228 at_xfail=no
5229 (
5230 printf "%s\n" "68. $at_setup_line: testing $at_desc ..."
5231 $at_traceon
5232
5233
5234 cat >mh_profile <<'_ATEOF'
5235 Charset: auto
5236 _ATEOF
5237
5238 cat >input.fmt <<'_ATEOF'
5239 %(sday{Date})
5240 %(sday{X-Date})
5241 _ATEOF
5242
5243 cat >message <<'_ATEOF'
5244 Date: Mon, 3 Jul 2017 13:17:58 +0300
5245 X-Date: 3 Jul 2017 13:17:58 +0300
5246
5247 _ATEOF
5248
5249 { set +x
5250 printf "%s\n" "$at_srcdir/fmtfunc.at:469: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5251 "
5252 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:469"
5253 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5254
5255 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5256 at_status=$? at_failed=false
5257 $at_check_filter
5258 at_fn_diff_devnull "$at_stderr" || at_failed=:
5259 echo >>"$at_stdout"; printf "%s\n" "1
5260 0
5261 " | \
5262 $at_diff - "$at_stdout" || at_failed=:
5263 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:469"
5264 $at_failed && at_fn_log_failure
5265 $at_traceon; }
5266
5267 set +x
5268 $at_times_p && times >"$at_times_file"
5269 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5270 read at_status <"$at_status_file"
5271 #AT_STOP_68
5272 #AT_START_69
5273 at_fn_group_banner 69 'fmtfunc.at:481' \
5274 "mday" " " 4
5275 at_xfail=no
5276 (
5277 printf "%s\n" "69. $at_setup_line: testing $at_desc ..."
5278 $at_traceon
5279
5280
5281 cat >mh_profile <<'_ATEOF'
5282 Charset: auto
5283 _ATEOF
5284
5285 cat >input.fmt <<'_ATEOF'
5286 %(mday{Date})
5287 _ATEOF
5288
5289 cat >message <<'_ATEOF'
5290 Date: Mon, 3 Jul 2017 13:17:58 +0300
5291
5292 _ATEOF
5293
5294 { set +x
5295 printf "%s\n" "$at_srcdir/fmtfunc.at:481: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5296 "
5297 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:481"
5298 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5299
5300 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5301 at_status=$? at_failed=false
5302 $at_check_filter
5303 at_fn_diff_devnull "$at_stderr" || at_failed=:
5304 echo >>"$at_stdout"; printf "%s\n" "3
5305 " | \
5306 $at_diff - "$at_stdout" || at_failed=:
5307 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:481"
5308 $at_failed && at_fn_log_failure
5309 $at_traceon; }
5310
5311 set +x
5312 $at_times_p && times >"$at_times_file"
5313 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5314 read at_status <"$at_status_file"
5315 #AT_STOP_69
5316 #AT_START_70
5317 at_fn_group_banner 70 'fmtfunc.at:490' \
5318 "yday" " " 4
5319 at_xfail=no
5320 (
5321 printf "%s\n" "70. $at_setup_line: testing $at_desc ..."
5322 $at_traceon
5323
5324
5325 cat >mh_profile <<'_ATEOF'
5326 Charset: auto
5327 _ATEOF
5328
5329 cat >input.fmt <<'_ATEOF'
5330 %(yday{Date})
5331 _ATEOF
5332
5333 cat >message <<'_ATEOF'
5334 Date: Mon, 3 Jul 2017 13:17:58 +0300
5335
5336 _ATEOF
5337
5338 { set +x
5339 printf "%s\n" "$at_srcdir/fmtfunc.at:490: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5340 "
5341 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:490"
5342 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5343
5344 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5345 at_status=$? at_failed=false
5346 $at_check_filter
5347 at_fn_diff_devnull "$at_stderr" || at_failed=:
5348 echo >>"$at_stdout"; printf "%s\n" "183
5349 " | \
5350 $at_diff - "$at_stdout" || at_failed=:
5351 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:490"
5352 $at_failed && at_fn_log_failure
5353 $at_traceon; }
5354
5355 set +x
5356 $at_times_p && times >"$at_times_file"
5357 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5358 read at_status <"$at_status_file"
5359 #AT_STOP_70
5360 #AT_START_71
5361 at_fn_group_banner 71 'fmtfunc.at:499' \
5362 "mon" " " 4
5363 at_xfail=no
5364 (
5365 printf "%s\n" "71. $at_setup_line: testing $at_desc ..."
5366 $at_traceon
5367
5368
5369 cat >mh_profile <<'_ATEOF'
5370 Charset: auto
5371 _ATEOF
5372
5373 cat >input.fmt <<'_ATEOF'
5374 %(mon{Date})
5375 _ATEOF
5376
5377 cat >message <<'_ATEOF'
5378 Date: Mon, 3 Jul 2017 13:17:58 +0300
5379
5380 _ATEOF
5381
5382 { set +x
5383 printf "%s\n" "$at_srcdir/fmtfunc.at:499: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5384 "
5385 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:499"
5386 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5387
5388 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5389 at_status=$? at_failed=false
5390 $at_check_filter
5391 at_fn_diff_devnull "$at_stderr" || at_failed=:
5392 echo >>"$at_stdout"; printf "%s\n" "7
5393 " | \
5394 $at_diff - "$at_stdout" || at_failed=:
5395 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:499"
5396 $at_failed && at_fn_log_failure
5397 $at_traceon; }
5398
5399 set +x
5400 $at_times_p && times >"$at_times_file"
5401 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5402 read at_status <"$at_status_file"
5403 #AT_STOP_71
5404 #AT_START_72
5405 at_fn_group_banner 72 'fmtfunc.at:508' \
5406 "month" " " 4
5407 at_xfail=no
5408 (
5409 printf "%s\n" "72. $at_setup_line: testing $at_desc ..."
5410 $at_traceon
5411
5412
5413 cat >mh_profile <<'_ATEOF'
5414 Charset: auto
5415 _ATEOF
5416
5417 cat >input.fmt <<'_ATEOF'
5418 %(month{Date})
5419 _ATEOF
5420
5421 cat >message <<'_ATEOF'
5422 Date: Mon, 3 Jul 2017 13:17:58 +0300
5423
5424 _ATEOF
5425
5426 { set +x
5427 printf "%s\n" "$at_srcdir/fmtfunc.at:508: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5428 "
5429 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:508"
5430 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5431
5432 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5433 at_status=$? at_failed=false
5434 $at_check_filter
5435 at_fn_diff_devnull "$at_stderr" || at_failed=:
5436 echo >>"$at_stdout"; printf "%s\n" "Jul
5437 " | \
5438 $at_diff - "$at_stdout" || at_failed=:
5439 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:508"
5440 $at_failed && at_fn_log_failure
5441 $at_traceon; }
5442
5443 set +x
5444 $at_times_p && times >"$at_times_file"
5445 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5446 read at_status <"$at_status_file"
5447 #AT_STOP_72
5448 #AT_START_73
5449 at_fn_group_banner 73 'fmtfunc.at:517' \
5450 "lmonth" " " 4
5451 at_xfail=no
5452 (
5453 printf "%s\n" "73. $at_setup_line: testing $at_desc ..."
5454 $at_traceon
5455
5456
5457 cat >mh_profile <<'_ATEOF'
5458 Charset: auto
5459 _ATEOF
5460
5461 cat >input.fmt <<'_ATEOF'
5462 %(lmonth{Date})
5463 _ATEOF
5464
5465 cat >message <<'_ATEOF'
5466 Date: Mon, 3 Jul 2017 13:17:58 +0300
5467
5468 _ATEOF
5469
5470 { set +x
5471 printf "%s\n" "$at_srcdir/fmtfunc.at:517: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5472 "
5473 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:517"
5474 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5475
5476 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5477 at_status=$? at_failed=false
5478 $at_check_filter
5479 at_fn_diff_devnull "$at_stderr" || at_failed=:
5480 echo >>"$at_stdout"; printf "%s\n" "July
5481 " | \
5482 $at_diff - "$at_stdout" || at_failed=:
5483 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:517"
5484 $at_failed && at_fn_log_failure
5485 $at_traceon; }
5486
5487 set +x
5488 $at_times_p && times >"$at_times_file"
5489 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5490 read at_status <"$at_status_file"
5491 #AT_STOP_73
5492 #AT_START_74
5493 at_fn_group_banner 74 'fmtfunc.at:526' \
5494 "year" " " 4
5495 at_xfail=no
5496 (
5497 printf "%s\n" "74. $at_setup_line: testing $at_desc ..."
5498 $at_traceon
5499
5500
5501 cat >mh_profile <<'_ATEOF'
5502 Charset: auto
5503 _ATEOF
5504
5505 cat >input.fmt <<'_ATEOF'
5506 %(year{Date})
5507 _ATEOF
5508
5509 cat >message <<'_ATEOF'
5510 Date: Mon, 3 Jul 2017 13:17:58 +0300
5511
5512 _ATEOF
5513
5514 { set +x
5515 printf "%s\n" "$at_srcdir/fmtfunc.at:526: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5516 "
5517 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:526"
5518 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5519
5520 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5521 at_status=$? at_failed=false
5522 $at_check_filter
5523 at_fn_diff_devnull "$at_stderr" || at_failed=:
5524 echo >>"$at_stdout"; printf "%s\n" "2017
5525 " | \
5526 $at_diff - "$at_stdout" || at_failed=:
5527 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:526"
5528 $at_failed && at_fn_log_failure
5529 $at_traceon; }
5530
5531 set +x
5532 $at_times_p && times >"$at_times_file"
5533 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5534 read at_status <"$at_status_file"
5535 #AT_STOP_74
5536 #AT_START_75
5537 at_fn_group_banner 75 'fmtfunc.at:537' \
5538 "tzone" " " 4
5539 at_xfail=no
5540 (
5541 printf "%s\n" "75. $at_setup_line: testing $at_desc ..."
5542 $at_traceon
5543
5544
5545 cat >mh_profile <<'_ATEOF'
5546 Charset: auto
5547 _ATEOF
5548
5549 cat >input.fmt <<'_ATEOF'
5550 %(tzone{Date})
5551 %(tzone{X-Date-1})
5552 %(tzone{X-Date-2})
5553 %(tzone{X-Date-3})
5554 _ATEOF
5555
5556 cat >message <<'_ATEOF'
5557 Date: Mon, 3 Jul 2017 13:17:58 +0300
5558 X-Date-1: Mon, 3 Jul 2017 13:17:58 -0500
5559 X-Date-2: Mon, 3 Jul 2017 13:17:58 +0000
5560 X-Date-3: Mon, 3 Jul 2017 13:17:58 0000
5561
5562
5563 _ATEOF
5564
5565 { set +x
5566 printf "%s\n" "$at_srcdir/fmtfunc.at:537: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5567 "
5568 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:537"
5569 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5570
5571 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5572 at_status=$? at_failed=false
5573 $at_check_filter
5574 at_fn_diff_devnull "$at_stderr" || at_failed=:
5575 echo >>"$at_stdout"; printf "%s\n" "+0300
5576 -0500
5577 +0000
5578 +0000
5579 " | \
5580 $at_diff - "$at_stdout" || at_failed=:
5581 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:537"
5582 $at_failed && at_fn_log_failure
5583 $at_traceon; }
5584
5585 set +x
5586 $at_times_p && times >"$at_times_file"
5587 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5588 read at_status <"$at_status_file"
5589 #AT_STOP_75
5590 #AT_START_76
5591 at_fn_group_banner 76 'fmtfunc.at:556' \
5592 "szone" " " 4
5593 at_xfail=no
5594 (
5595 printf "%s\n" "76. $at_setup_line: testing $at_desc ..."
5596 $at_traceon
5597
5598
5599 cat >mh_profile <<'_ATEOF'
5600 Charset: auto
5601 _ATEOF
5602
5603 cat >input.fmt <<'_ATEOF'
5604 %(szone{Date})
5605 %(szone{X-Date})
5606 _ATEOF
5607
5608 cat >message <<'_ATEOF'
5609 Date: Mon, 3 Jul 2017 13:17:58 +0300
5610 X-Date: Mon, 3 Jul 2017 13:17:58
5611
5612 _ATEOF
5613
5614 { set +x
5615 printf "%s\n" "$at_srcdir/fmtfunc.at:556: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5616 "
5617 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:556"
5618 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5619
5620 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5621 at_status=$? at_failed=false
5622 $at_check_filter
5623 at_fn_diff_devnull "$at_stderr" || at_failed=:
5624 echo >>"$at_stdout"; printf "%s\n" "1
5625 0
5626 " | \
5627 $at_diff - "$at_stdout" || at_failed=:
5628 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:556"
5629 $at_failed && at_fn_log_failure
5630 $at_traceon; }
5631
5632 set +x
5633 $at_times_p && times >"$at_times_file"
5634 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5635 read at_status <"$at_status_file"
5636 #AT_STOP_76
5637 #AT_START_77
5638 at_fn_group_banner 77 'fmtfunc.at:593' \
5639 "proper" " " 4
5640 at_xfail=no
5641 (
5642 printf "%s\n" "77. $at_setup_line: testing $at_desc ..."
5643 $at_traceon
5644
5645
5646 cat >mh_profile <<'_ATEOF'
5647 Charset: auto
5648 _ATEOF
5649
5650 cat >input.fmt <<'_ATEOF'
5651 %(proper{From})
5652 _ATEOF
5653
5654 cat >message <<'_ATEOF'
5655 From: Sergey <[email protected]>
5656
5657 text
5658 _ATEOF
5659
5660 { set +x
5661 printf "%s\n" "$at_srcdir/fmtfunc.at:593: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5662 "
5663 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:593"
5664 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5665
5666 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5667 at_status=$? at_failed=false
5668 $at_check_filter
5669 at_fn_diff_devnull "$at_stderr" || at_failed=:
5670 echo >>"$at_stdout"; printf "%s\n" "Sergey <[email protected]>
5671 " | \
5672 $at_diff - "$at_stdout" || at_failed=:
5673 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:593"
5674 $at_failed && at_fn_log_failure
5675 $at_traceon; }
5676
5677 set +x
5678 $at_times_p && times >"$at_times_file"
5679 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5680 read at_status <"$at_status_file"
5681 #AT_STOP_77
5682 #AT_START_78
5683 at_fn_group_banner 78 'fmtfunc.at:603' \
5684 "friendly" " " 4
5685 at_xfail=no
5686 (
5687 printf "%s\n" "78. $at_setup_line: testing $at_desc ..."
5688 $at_traceon
5689
5690
5691 cat >mh_profile <<'_ATEOF'
5692 Charset: auto
5693 _ATEOF
5694
5695 cat >input.fmt <<'_ATEOF'
5696 %(friendly{From})
5697 %(friendly{To})
5698 _ATEOF
5699
5700 cat >message <<'_ATEOF'
5701 From: Sergey <[email protected]>
5702 To: [email protected]
5703
5704 text
5705 _ATEOF
5706
5707 { set +x
5708 printf "%s\n" "$at_srcdir/fmtfunc.at:603: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5709 "
5710 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:603"
5711 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5712
5713 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5714 at_status=$? at_failed=false
5715 $at_check_filter
5716 at_fn_diff_devnull "$at_stderr" || at_failed=:
5717 echo >>"$at_stdout"; printf "%s\n" "Sergey
5718 [email protected]
5719 " | \
5720 $at_diff - "$at_stdout" || at_failed=:
5721 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:603"
5722 $at_failed && at_fn_log_failure
5723 $at_traceon; }
5724
5725 set +x
5726 $at_times_p && times >"$at_times_file"
5727 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5728 read at_status <"$at_status_file"
5729 #AT_STOP_78
5730 #AT_START_79
5731 at_fn_group_banner 79 'fmtfunc.at:616' \
5732 "addr" " " 4
5733 at_xfail=no
5734 (
5735 printf "%s\n" "79. $at_setup_line: testing $at_desc ..."
5736 $at_traceon
5737
5738
5739 cat >mh_profile <<'_ATEOF'
5740 Charset: auto
5741 _ATEOF
5742
5743 cat >input.fmt <<'_ATEOF'
5744 %(addr{From})
5745 %(addr{To})
5746 _ATEOF
5747
5748 cat >message <<'_ATEOF'
5749 From: Sergey <[email protected]>
5750 To: [email protected]
5751
5752 text
5753 _ATEOF
5754
5755 { set +x
5756 printf "%s\n" "$at_srcdir/fmtfunc.at:616: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5757 "
5758 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:616"
5759 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5760
5761 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5762 at_status=$? at_failed=false
5763 $at_check_filter
5764 at_fn_diff_devnull "$at_stderr" || at_failed=:
5765 echo >>"$at_stdout"; printf "%s\n" "[email protected]
5766 [email protected]
5767 " | \
5768 $at_diff - "$at_stdout" || at_failed=:
5769 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:616"
5770 $at_failed && at_fn_log_failure
5771 $at_traceon; }
5772
5773 set +x
5774 $at_times_p && times >"$at_times_file"
5775 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5776 read at_status <"$at_status_file"
5777 #AT_STOP_79
5778 #AT_START_80
5779 at_fn_group_banner 80 'fmtfunc.at:629' \
5780 "pers" " " 4
5781 at_xfail=no
5782 (
5783 printf "%s\n" "80. $at_setup_line: testing $at_desc ..."
5784 $at_traceon
5785
5786
5787 cat >mh_profile <<'_ATEOF'
5788 Charset: auto
5789 _ATEOF
5790
5791 cat >input.fmt <<'_ATEOF'
5792 from=%(pers{From})
5793 to=%(pers{To})
5794 _ATEOF
5795
5796 cat >message <<'_ATEOF'
5797 From: Sergey <[email protected]>
5798 To: [email protected]
5799
5800 text
5801 _ATEOF
5802
5803 { set +x
5804 printf "%s\n" "$at_srcdir/fmtfunc.at:629: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5805 "
5806 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:629"
5807 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5808
5809 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5810 at_status=$? at_failed=false
5811 $at_check_filter
5812 at_fn_diff_devnull "$at_stderr" || at_failed=:
5813 echo >>"$at_stdout"; printf "%s\n" "from=Sergey
5814 to=
5815 " | \
5816 $at_diff - "$at_stdout" || at_failed=:
5817 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:629"
5818 $at_failed && at_fn_log_failure
5819 $at_traceon; }
5820
5821 set +x
5822 $at_times_p && times >"$at_times_file"
5823 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5824 read at_status <"$at_status_file"
5825 #AT_STOP_80
5826 #AT_START_81
5827 at_fn_group_banner 81 'fmtfunc.at:644' \
5828 "mbox" " " 4
5829 at_xfail=no
5830 (
5831 printf "%s\n" "81. $at_setup_line: testing $at_desc ..."
5832 $at_traceon
5833
5834
5835 cat >mh_profile <<'_ATEOF'
5836 Charset: auto
5837 _ATEOF
5838
5839 cat >input.fmt <<'_ATEOF'
5840 %(mbox{From})
5841 _ATEOF
5842
5843 cat >message <<'_ATEOF'
5844 From: Sergey <[email protected]>
5845
5846 _ATEOF
5847
5848 { set +x
5849 printf "%s\n" "$at_srcdir/fmtfunc.at:644: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5850 "
5851 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:644"
5852 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5853
5854 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5855 at_status=$? at_failed=false
5856 $at_check_filter
5857 at_fn_diff_devnull "$at_stderr" || at_failed=:
5858 echo >>"$at_stdout"; printf "%s\n" "gray
5859 " | \
5860 $at_diff - "$at_stdout" || at_failed=:
5861 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:644"
5862 $at_failed && at_fn_log_failure
5863 $at_traceon; }
5864
5865 set +x
5866 $at_times_p && times >"$at_times_file"
5867 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5868 read at_status <"$at_status_file"
5869 #AT_STOP_81
5870 #AT_START_82
5871 at_fn_group_banner 82 'fmtfunc.at:653' \
5872 "mymbox" " " 4
5873 at_xfail=no
5874 (
5875 printf "%s\n" "82. $at_setup_line: testing $at_desc ..."
5876 $at_traceon
5877
5878
5879 cat >mh_profile <<'_ATEOF'
5880 Charset: auto
5881 Local-Mailbox: [email protected]
5882 Alternate-Mailboxes: gray, *@mailutils.*
5883 _ATEOF
5884
5885 cat >message <<'_ATEOF'
5886 From: [email protected]
5887 X-From-1: gray@localhost
5888 X-From-2: [email protected]
5889 X-From-3: [email protected]
5890 _ATEOF
5891
5892 cat >input.fmt <<'_ATEOF'
5893 %(mymbox{From})
5894 %(mymbox{X-From-1})
5895 %(mymbox{X-From-2})
5896 %(mymbox{X-From-3})
5897 _ATEOF
5898
5899 { set +x
5900 printf "%s\n" "$at_srcdir/fmtfunc.at:669: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5901 "
5902 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:669"
5903 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5904
5905 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5906 at_status=$? at_failed=false
5907 $at_check_filter
5908 at_fn_diff_devnull "$at_stderr" || at_failed=:
5909 echo >>"$at_stdout"; printf "%s\n" "1
5910 1
5911 1
5912 0
5913 " | \
5914 $at_diff - "$at_stdout" || at_failed=:
5915 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:669"
5916 $at_failed && at_fn_log_failure
5917 $at_traceon; }
5918
5919 set +x
5920 $at_times_p && times >"$at_times_file"
5921 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5922 read at_status <"$at_status_file"
5923 #AT_STOP_82
5924 #AT_START_83
5925 at_fn_group_banner 83 'fmtfunc.at:679' \
5926 "host" " " 4
5927 at_xfail=no
5928 (
5929 printf "%s\n" "83. $at_setup_line: testing $at_desc ..."
5930 $at_traceon
5931
5932
5933 cat >mh_profile <<'_ATEOF'
5934 Charset: auto
5935 _ATEOF
5936
5937 cat >input.fmt <<'_ATEOF'
5938 %(host{From})
5939 _ATEOF
5940
5941 cat >message <<'_ATEOF'
5942 From: Sergey <[email protected]>
5943
5944 _ATEOF
5945
5946 { set +x
5947 printf "%s\n" "$at_srcdir/fmtfunc.at:679: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5948 "
5949 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:679"
5950 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5951
5952 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5953 at_status=$? at_failed=false
5954 $at_check_filter
5955 at_fn_diff_devnull "$at_stderr" || at_failed=:
5956 echo >>"$at_stdout"; printf "%s\n" "gnu.org
5957 " | \
5958 $at_diff - "$at_stdout" || at_failed=:
5959 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:679"
5960 $at_failed && at_fn_log_failure
5961 $at_traceon; }
5962
5963 set +x
5964 $at_times_p && times >"$at_times_file"
5965 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5966 read at_status <"$at_status_file"
5967 #AT_STOP_83
5968 #AT_START_84
5969 at_fn_group_banner 84 'fmtfunc.at:688' \
5970 "nohost" " " 4
5971 at_xfail=no
5972 (
5973 printf "%s\n" "84. $at_setup_line: testing $at_desc ..."
5974 $at_traceon
5975
5976
5977 cat >mh_profile <<'_ATEOF'
5978 Charset: auto
5979 _ATEOF
5980
5981 cat >input.fmt <<'_ATEOF'
5982 %(nohost{From})
5983 %(nohost{To})
5984 %(nohost{Sender})
5985 _ATEOF
5986
5987 cat >message <<'_ATEOF'
5988 From: gray
5989 To: [email protected]
5990
5991 _ATEOF
5992
5993 { set +x
5994 printf "%s\n" "$at_srcdir/fmtfunc.at:688: MH=\`pwd\`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5995 "
5996 at_fn_check_prepare_notrace 'a `...` command substitution' "fmtfunc.at:688"
5997 ( $at_check_trace; MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
5998
5999 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6000 at_status=$? at_failed=false
6001 $at_check_filter
6002 at_fn_diff_devnull "$at_stderr" || at_failed=:
6003 echo >>"$at_stdout"; printf "%s\n" "1
6004 0
6005 1
6006 " | \
6007 $at_diff - "$at_stdout" || at_failed=:
6008 at_fn_check_status 0 $at_status "$at_srcdir/fmtfunc.at:688"
6009 $at_failed && at_fn_log_failure
6010 $at_traceon; }
6011
6012 set +x
6013 $at_times_p && times >"$at_times_file"
6014 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6015 read at_status <"$at_status_file"
6016 #AT_STOP_84
6017 #AT_START_85
6018 at_fn_group_banner 85 'mhseq.at:22' \
6019 "mhseq: existing message number" " " 5
6020 at_xfail=no
6021 (
6022 printf "%s\n" "85. $at_setup_line: testing $at_desc ..."
6023 $at_traceon
6024
6025
6026
6027 test -d Mail || mkdir Mail
6028 HOME=`pwd`
6029 export HOME
6030 MH=$HOME/mh_profile
6031 export MH
6032 cat > $MH <<EOT
6033 Path: $HOME/Mail
6034 mhetcdir: $abs_top_srcdir/mh/etc
6035 moreproc: /bin/cat
6036 EOT
6037 MTSTAILOR=$HOME/mtstailor
6038 export MTSTAILOR
6039 exec <&-
6040
6041 { set +x
6042 printf "%s\n" "$at_srcdir/mhseq.at:22:
6043 mbox2dir -m Mail/inbox \$spooldir/mbox1
6044 mhseq 1
6045 "
6046 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:22"
6047 ( $at_check_trace;
6048 mbox2dir -m Mail/inbox $spooldir/mbox1
6049 mhseq 1
6050
6051 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6052 at_status=$? at_failed=false
6053 $at_check_filter
6054 at_fn_diff_devnull "$at_stderr" || at_failed=:
6055 echo >>"$at_stdout"; printf "%s\n" "1
6056 " | \
6057 $at_diff - "$at_stdout" || at_failed=:
6058 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:22"
6059 $at_failed && at_fn_log_failure
6060 $at_traceon; }
6061
6062 set +x
6063 $at_times_p && times >"$at_times_file"
6064 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6065 read at_status <"$at_status_file"
6066 #AT_STOP_85
6067 #AT_START_86
6068 at_fn_group_banner 86 'mhseq.at:30' \
6069 "mhseq: not existing message number" " " 5
6070 at_xfail=no
6071 (
6072 printf "%s\n" "86. $at_setup_line: testing $at_desc ..."
6073 $at_traceon
6074
6075
6076
6077 test -d Mail || mkdir Mail
6078 HOME=`pwd`
6079 export HOME
6080 MH=$HOME/mh_profile
6081 export MH
6082 cat > $MH <<EOT
6083 Path: $HOME/Mail
6084 mhetcdir: $abs_top_srcdir/mh/etc
6085 moreproc: /bin/cat
6086 EOT
6087 MTSTAILOR=$HOME/mtstailor
6088 export MTSTAILOR
6089 exec <&-
6090
6091 { set +x
6092 printf "%s\n" "$at_srcdir/mhseq.at:30:
6093 mbox2dir -m Mail/inbox \$spooldir/mbox1
6094 mhseq 100
6095 "
6096 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:30"
6097 ( $at_check_trace;
6098 mbox2dir -m Mail/inbox $spooldir/mbox1
6099 mhseq 100
6100
6101 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6102 at_status=$? at_failed=false
6103 $at_check_filter
6104 echo >>"$at_stderr"; printf "%s\n" "mhseq: message 100 does not exist
6105 " | \
6106 $at_diff - "$at_stderr" || at_failed=:
6107 at_fn_diff_devnull "$at_stdout" || at_failed=:
6108 at_fn_check_status 1 $at_status "$at_srcdir/mhseq.at:30"
6109 $at_failed && at_fn_log_failure
6110 $at_traceon; }
6111
6112 set +x
6113 $at_times_p && times >"$at_times_file"
6114 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6115 read at_status <"$at_status_file"
6116 #AT_STOP_86
6117 #AT_START_87
6118 at_fn_group_banner 87 'mhseq.at:40' \
6119 "mhseq: contiguous message range" " " 5
6120 at_xfail=no
6121 (
6122 printf "%s\n" "87. $at_setup_line: testing $at_desc ..."
6123 $at_traceon
6124
6125
6126
6127 test -d Mail || mkdir Mail
6128 HOME=`pwd`
6129 export HOME
6130 MH=$HOME/mh_profile
6131 export MH
6132 cat > $MH <<EOT
6133 Path: $HOME/Mail
6134 mhetcdir: $abs_top_srcdir/mh/etc
6135 moreproc: /bin/cat
6136 EOT
6137 MTSTAILOR=$HOME/mtstailor
6138 export MTSTAILOR
6139 exec <&-
6140
6141 { set +x
6142 printf "%s\n" "$at_srcdir/mhseq.at:40:
6143 mbox2dir -m Mail/inbox \$spooldir/mbox1
6144 mhseq 2-5
6145 "
6146 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:40"
6147 ( $at_check_trace;
6148 mbox2dir -m Mail/inbox $spooldir/mbox1
6149 mhseq 2-5
6150
6151 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6152 at_status=$? at_failed=false
6153 $at_check_filter
6154 at_fn_diff_devnull "$at_stderr" || at_failed=:
6155 echo >>"$at_stdout"; printf "%s\n" "2
6156 3
6157 4
6158 5
6159 " | \
6160 $at_diff - "$at_stdout" || at_failed=:
6161 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:40"
6162 $at_failed && at_fn_log_failure
6163 $at_traceon; }
6164
6165 set +x
6166 $at_times_p && times >"$at_times_file"
6167 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6168 read at_status <"$at_status_file"
6169 #AT_STOP_87
6170 #AT_START_88
6171 at_fn_group_banner 88 'mhseq.at:51' \
6172 "mhseq: reversed contiguous message range" " " 5
6173 at_xfail=no
6174 (
6175 printf "%s\n" "88. $at_setup_line: testing $at_desc ..."
6176 $at_traceon
6177
6178
6179
6180 test -d Mail || mkdir Mail
6181 HOME=`pwd`
6182 export HOME
6183 MH=$HOME/mh_profile
6184 export MH
6185 cat > $MH <<EOT
6186 Path: $HOME/Mail
6187 mhetcdir: $abs_top_srcdir/mh/etc
6188 moreproc: /bin/cat
6189 EOT
6190 MTSTAILOR=$HOME/mtstailor
6191 export MTSTAILOR
6192 exec <&-
6193
6194 { set +x
6195 printf "%s\n" "$at_srcdir/mhseq.at:51:
6196 mbox2dir -m Mail/inbox \$spooldir/mbox1
6197 mhseq 5-2
6198 "
6199 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:51"
6200 ( $at_check_trace;
6201 mbox2dir -m Mail/inbox $spooldir/mbox1
6202 mhseq 5-2
6203
6204 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6205 at_status=$? at_failed=false
6206 $at_check_filter
6207 at_fn_diff_devnull "$at_stderr" || at_failed=:
6208 echo >>"$at_stdout"; printf "%s\n" "2
6209 3
6210 4
6211 5
6212 " | \
6213 $at_diff - "$at_stdout" || at_failed=:
6214 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:51"
6215 $at_failed && at_fn_log_failure
6216 $at_traceon; }
6217
6218 set +x
6219 $at_times_p && times >"$at_times_file"
6220 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6221 read at_status <"$at_status_file"
6222 #AT_STOP_88
6223 #AT_START_89
6224 at_fn_group_banner 89 'mhseq.at:62' \
6225 "mhseq: reversed non-contiguous message range" " " 5
6226 at_xfail=no
6227 (
6228 printf "%s\n" "89. $at_setup_line: testing $at_desc ..."
6229 $at_traceon
6230
6231
6232
6233 test -d Mail || mkdir Mail
6234 HOME=`pwd`
6235 export HOME
6236 MH=$HOME/mh_profile
6237 export MH
6238 cat > $MH <<EOT
6239 Path: $HOME/Mail
6240 mhetcdir: $abs_top_srcdir/mh/etc
6241 moreproc: /bin/cat
6242 EOT
6243 MTSTAILOR=$HOME/mtstailor
6244 export MTSTAILOR
6245 exec <&-
6246
6247 { set +x
6248 printf "%s\n" "$at_srcdir/mhseq.at:62:
6249 mbox2dir -m Mail/inbox \$spooldir/mbox1
6250 rm Mail/inbox/3 Mail/inbox/4
6251
6252 # First, set all modes to 700
6253 find Mail/inbox | xargs chmod 700
6254 # Then, remove executable bit from regular files
6255 find Mail/inbox -type f | xargs chmod -x
6256
6257 mhseq 5-2
6258 "
6259 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:62"
6260 ( $at_check_trace;
6261 mbox2dir -m Mail/inbox $spooldir/mbox1
6262 rm Mail/inbox/3 Mail/inbox/4
6263
6264 # First, set all modes to 700
6265 find Mail/inbox | xargs chmod 700
6266 # Then, remove executable bit from regular files
6267 find Mail/inbox -type f | xargs chmod -x
6268
6269 mhseq 5-2
6270
6271 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6272 at_status=$? at_failed=false
6273 $at_check_filter
6274 at_fn_diff_devnull "$at_stderr" || at_failed=:
6275 echo >>"$at_stdout"; printf "%s\n" "2
6276 5
6277 " | \
6278 $at_diff - "$at_stdout" || at_failed=:
6279 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:62"
6280 $at_failed && at_fn_log_failure
6281 $at_traceon; }
6282
6283 set +x
6284 $at_times_p && times >"$at_times_file"
6285 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6286 read at_status <"$at_status_file"
6287 #AT_STOP_89
6288 #AT_START_90
6289 at_fn_group_banner 90 'mhseq.at:73' \
6290 "mhseq: message range (left fixup)" " " 5
6291 at_xfail=no
6292 (
6293 printf "%s\n" "90. $at_setup_line: testing $at_desc ..."
6294 $at_traceon
6295
6296
6297
6298 test -d Mail || mkdir Mail
6299 HOME=`pwd`
6300 export HOME
6301 MH=$HOME/mh_profile
6302 export MH
6303 cat > $MH <<EOT
6304 Path: $HOME/Mail
6305 mhetcdir: $abs_top_srcdir/mh/etc
6306 moreproc: /bin/cat
6307 EOT
6308 MTSTAILOR=$HOME/mtstailor
6309 export MTSTAILOR
6310 exec <&-
6311
6312 { set +x
6313 printf "%s\n" "$at_srcdir/mhseq.at:73:
6314 mbox2dir -m Mail/inbox \$spooldir/mbox1
6315 rm Mail/inbox/1 Mail/inbox/2
6316
6317 # First, set all modes to 700
6318 find Mail/inbox | xargs chmod 700
6319 # Then, remove executable bit from regular files
6320 find Mail/inbox -type f | xargs chmod -x
6321
6322 mhseq 1-5
6323 "
6324 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:73"
6325 ( $at_check_trace;
6326 mbox2dir -m Mail/inbox $spooldir/mbox1
6327 rm Mail/inbox/1 Mail/inbox/2
6328
6329 # First, set all modes to 700
6330 find Mail/inbox | xargs chmod 700
6331 # Then, remove executable bit from regular files
6332 find Mail/inbox -type f | xargs chmod -x
6333
6334 mhseq 1-5
6335
6336 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6337 at_status=$? at_failed=false
6338 $at_check_filter
6339 at_fn_diff_devnull "$at_stderr" || at_failed=:
6340 echo >>"$at_stdout"; printf "%s\n" "3
6341 4
6342 5
6343 " | \
6344 $at_diff - "$at_stdout" || at_failed=:
6345 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:73"
6346 $at_failed && at_fn_log_failure
6347 $at_traceon; }
6348
6349 set +x
6350 $at_times_p && times >"$at_times_file"
6351 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6352 read at_status <"$at_status_file"
6353 #AT_STOP_90
6354 #AT_START_91
6355 at_fn_group_banner 91 'mhseq.at:85' \
6356 "mhseq: message range (right fixup)" " " 5
6357 at_xfail=no
6358 (
6359 printf "%s\n" "91. $at_setup_line: testing $at_desc ..."
6360 $at_traceon
6361
6362
6363
6364 test -d Mail || mkdir Mail
6365 HOME=`pwd`
6366 export HOME
6367 MH=$HOME/mh_profile
6368 export MH
6369 cat > $MH <<EOT
6370 Path: $HOME/Mail
6371 mhetcdir: $abs_top_srcdir/mh/etc
6372 moreproc: /bin/cat
6373 EOT
6374 MTSTAILOR=$HOME/mtstailor
6375 export MTSTAILOR
6376 exec <&-
6377
6378 { set +x
6379 printf "%s\n" "$at_srcdir/mhseq.at:85:
6380 mbox2dir -m Mail/inbox \$spooldir/mbox1
6381 rm Mail/inbox/4 Mail/inbox/5
6382
6383 # First, set all modes to 700
6384 find Mail/inbox | xargs chmod 700
6385 # Then, remove executable bit from regular files
6386 find Mail/inbox -type f | xargs chmod -x
6387
6388 mhseq 1-5
6389 "
6390 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:85"
6391 ( $at_check_trace;
6392 mbox2dir -m Mail/inbox $spooldir/mbox1
6393 rm Mail/inbox/4 Mail/inbox/5
6394
6395 # First, set all modes to 700
6396 find Mail/inbox | xargs chmod 700
6397 # Then, remove executable bit from regular files
6398 find Mail/inbox -type f | xargs chmod -x
6399
6400 mhseq 1-5
6401
6402 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6403 at_status=$? at_failed=false
6404 $at_check_filter
6405 at_fn_diff_devnull "$at_stderr" || at_failed=:
6406 echo >>"$at_stdout"; printf "%s\n" "1
6407 2
6408 3
6409 " | \
6410 $at_diff - "$at_stdout" || at_failed=:
6411 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:85"
6412 $at_failed && at_fn_log_failure
6413 $at_traceon; }
6414
6415 set +x
6416 $at_times_p && times >"$at_times_file"
6417 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6418 read at_status <"$at_status_file"
6419 #AT_STOP_91
6420 #AT_START_92
6421 at_fn_group_banner 92 'mhseq.at:97' \
6422 "mhseq: message range (both fixups)" " " 5
6423 at_xfail=no
6424 (
6425 printf "%s\n" "92. $at_setup_line: testing $at_desc ..."
6426 $at_traceon
6427
6428
6429
6430 test -d Mail || mkdir Mail
6431 HOME=`pwd`
6432 export HOME
6433 MH=$HOME/mh_profile
6434 export MH
6435 cat > $MH <<EOT
6436 Path: $HOME/Mail
6437 mhetcdir: $abs_top_srcdir/mh/etc
6438 moreproc: /bin/cat
6439 EOT
6440 MTSTAILOR=$HOME/mtstailor
6441 export MTSTAILOR
6442 exec <&-
6443
6444 { set +x
6445 printf "%s\n" "$at_srcdir/mhseq.at:97:
6446 mbox2dir -m Mail/inbox \$spooldir/mbox1
6447 rm Mail/inbox/1 Mail/inbox/5
6448
6449 # First, set all modes to 700
6450 find Mail/inbox | xargs chmod 700
6451 # Then, remove executable bit from regular files
6452 find Mail/inbox -type f | xargs chmod -x
6453
6454 mhseq 1-5
6455 "
6456 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:97"
6457 ( $at_check_trace;
6458 mbox2dir -m Mail/inbox $spooldir/mbox1
6459 rm Mail/inbox/1 Mail/inbox/5
6460
6461 # First, set all modes to 700
6462 find Mail/inbox | xargs chmod 700
6463 # Then, remove executable bit from regular files
6464 find Mail/inbox -type f | xargs chmod -x
6465
6466 mhseq 1-5
6467
6468 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6469 at_status=$? at_failed=false
6470 $at_check_filter
6471 at_fn_diff_devnull "$at_stderr" || at_failed=:
6472 echo >>"$at_stdout"; printf "%s\n" "2
6473 3
6474 4
6475 " | \
6476 $at_diff - "$at_stdout" || at_failed=:
6477 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:97"
6478 $at_failed && at_fn_log_failure
6479 $at_traceon; }
6480
6481 set +x
6482 $at_times_p && times >"$at_times_file"
6483 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6484 read at_status <"$at_status_file"
6485 #AT_STOP_92
6486 #AT_START_93
6487 at_fn_group_banner 93 'mhseq.at:109' \
6488 "mhseq: non-existent message range (left)" " " 5
6489 at_xfail=no
6490 (
6491 printf "%s\n" "93. $at_setup_line: testing $at_desc ..."
6492 $at_traceon
6493
6494
6495
6496 test -d Mail || mkdir Mail
6497 HOME=`pwd`
6498 export HOME
6499 MH=$HOME/mh_profile
6500 export MH
6501 cat > $MH <<EOT
6502 Path: $HOME/Mail
6503 mhetcdir: $abs_top_srcdir/mh/etc
6504 moreproc: /bin/cat
6505 EOT
6506 MTSTAILOR=$HOME/mtstailor
6507 export MTSTAILOR
6508 exec <&-
6509
6510 { set +x
6511 printf "%s\n" "$at_srcdir/mhseq.at:109:
6512 mbox2dir -m Mail/inbox \$spooldir/mbox1
6513 rm Mail/inbox/1 Mail/inbox/2 Mail/inbox/3
6514
6515 # First, set all modes to 700
6516 find Mail/inbox | xargs chmod 700
6517 # Then, remove executable bit from regular files
6518 find Mail/inbox -type f | xargs chmod -x
6519
6520 mhseq 1-2
6521 "
6522 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:109"
6523 ( $at_check_trace;
6524 mbox2dir -m Mail/inbox $spooldir/mbox1
6525 rm Mail/inbox/1 Mail/inbox/2 Mail/inbox/3
6526
6527 # First, set all modes to 700
6528 find Mail/inbox | xargs chmod 700
6529 # Then, remove executable bit from regular files
6530 find Mail/inbox -type f | xargs chmod -x
6531
6532 mhseq 1-2
6533
6534 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6535 at_status=$? at_failed=false
6536 $at_check_filter
6537 echo >>"$at_stderr"; printf "%s\n" "mhseq: no messages in range 1-2
6538 " | \
6539 $at_diff - "$at_stderr" || at_failed=:
6540 at_fn_diff_devnull "$at_stdout" || at_failed=:
6541 at_fn_check_status 1 $at_status "$at_srcdir/mhseq.at:109"
6542 $at_failed && at_fn_log_failure
6543 $at_traceon; }
6544
6545 set +x
6546 $at_times_p && times >"$at_times_file"
6547 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6548 read at_status <"$at_status_file"
6549 #AT_STOP_93
6550 #AT_START_94
6551 at_fn_group_banner 94 'mhseq.at:120' \
6552 "mhseq: non-existent message range (right)" " " 5
6553 at_xfail=no
6554 (
6555 printf "%s\n" "94. $at_setup_line: testing $at_desc ..."
6556 $at_traceon
6557
6558
6559
6560 test -d Mail || mkdir Mail
6561 HOME=`pwd`
6562 export HOME
6563 MH=$HOME/mh_profile
6564 export MH
6565 cat > $MH <<EOT
6566 Path: $HOME/Mail
6567 mhetcdir: $abs_top_srcdir/mh/etc
6568 moreproc: /bin/cat
6569 EOT
6570 MTSTAILOR=$HOME/mtstailor
6571 export MTSTAILOR
6572 exec <&-
6573
6574 { set +x
6575 printf "%s\n" "$at_srcdir/mhseq.at:120:
6576 mbox2dir -m Mail/inbox \$spooldir/mbox1
6577 mhseq 6-10
6578 "
6579 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:120"
6580 ( $at_check_trace;
6581 mbox2dir -m Mail/inbox $spooldir/mbox1
6582 mhseq 6-10
6583
6584 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6585 at_status=$? at_failed=false
6586 $at_check_filter
6587 echo >>"$at_stderr"; printf "%s\n" "mhseq: no messages in range 6-10
6588 " | \
6589 $at_diff - "$at_stderr" || at_failed=:
6590 at_fn_diff_devnull "$at_stdout" || at_failed=:
6591 at_fn_check_status 1 $at_status "$at_srcdir/mhseq.at:120"
6592 $at_failed && at_fn_log_failure
6593 $at_traceon; }
6594
6595 set +x
6596 $at_times_p && times >"$at_times_file"
6597 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6598 read at_status <"$at_status_file"
6599 #AT_STOP_94
6600 #AT_START_95
6601 at_fn_group_banner 95 'mhseq.at:129' \
6602 "mhseq: message set addition" " " 5
6603 at_xfail=no
6604 (
6605 printf "%s\n" "95. $at_setup_line: testing $at_desc ..."
6606 $at_traceon
6607
6608
6609
6610 test -d Mail || mkdir Mail
6611 HOME=`pwd`
6612 export HOME
6613 MH=$HOME/mh_profile
6614 export MH
6615 cat > $MH <<EOT
6616 Path: $HOME/Mail
6617 mhetcdir: $abs_top_srcdir/mh/etc
6618 moreproc: /bin/cat
6619 EOT
6620 MTSTAILOR=$HOME/mtstailor
6621 export MTSTAILOR
6622 exec <&-
6623
6624 { set +x
6625 printf "%s\n" "$at_srcdir/mhseq.at:129:
6626 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
6627 mhseq 5 8-10 15-20
6628 "
6629 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:129"
6630 ( $at_check_trace;
6631 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
6632 mhseq 5 8-10 15-20
6633
6634 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6635 at_status=$? at_failed=false
6636 $at_check_filter
6637 at_fn_diff_devnull "$at_stderr" || at_failed=:
6638 echo >>"$at_stdout"; printf "%s\n" "5
6639 8
6640 9
6641 10
6642 15
6643 16
6644 17
6645 18
6646 19
6647 20
6648 " | \
6649 $at_diff - "$at_stdout" || at_failed=:
6650 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:129"
6651 $at_failed && at_fn_log_failure
6652 $at_traceon; }
6653
6654 set +x
6655 $at_times_p && times >"$at_times_file"
6656 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6657 read at_status <"$at_status_file"
6658 #AT_STOP_95
6659 #AT_START_96
6660 at_fn_group_banner 96 'mhseq.at:146' \
6661 "mhseq: message set optimization" " " 5
6662 at_xfail=no
6663 (
6664 printf "%s\n" "96. $at_setup_line: testing $at_desc ..."
6665 $at_traceon
6666
6667
6668
6669 test -d Mail || mkdir Mail
6670 HOME=`pwd`
6671 export HOME
6672 MH=$HOME/mh_profile
6673 export MH
6674 cat > $MH <<EOT
6675 Path: $HOME/Mail
6676 mhetcdir: $abs_top_srcdir/mh/etc
6677 moreproc: /bin/cat
6678 EOT
6679 MTSTAILOR=$HOME/mtstailor
6680 export MTSTAILOR
6681 exec <&-
6682
6683 { set +x
6684 printf "%s\n" "$at_srcdir/mhseq.at:146:
6685 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
6686 rm Mail/inbox/17 Mail/inbox/19
6687
6688 # First, set all modes to 700
6689 find Mail/inbox | xargs chmod 700
6690 # Then, remove executable bit from regular files
6691 find Mail/inbox -type f | xargs chmod -x
6692
6693 mhseq 5 1-10 15-20
6694 "
6695 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:146"
6696 ( $at_check_trace;
6697 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
6698 rm Mail/inbox/17 Mail/inbox/19
6699
6700 # First, set all modes to 700
6701 find Mail/inbox | xargs chmod 700
6702 # Then, remove executable bit from regular files
6703 find Mail/inbox -type f | xargs chmod -x
6704
6705 mhseq 5 1-10 15-20
6706
6707 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6708 at_status=$? at_failed=false
6709 $at_check_filter
6710 at_fn_diff_devnull "$at_stderr" || at_failed=:
6711 echo >>"$at_stdout"; printf "%s\n" "1
6712 2
6713 3
6714 4
6715 5
6716 6
6717 7
6718 8
6719 9
6720 10
6721 15
6722 16
6723 18
6724 20
6725 " | \
6726 $at_diff - "$at_stdout" || at_failed=:
6727 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:146"
6728 $at_failed && at_fn_log_failure
6729 $at_traceon; }
6730
6731 set +x
6732 $at_times_p && times >"$at_times_file"
6733 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6734 read at_status <"$at_status_file"
6735 #AT_STOP_96
6736 #AT_START_97
6737 at_fn_group_banner 97 'mhseq.at:169' \
6738 "mhseq: counted range (positive)" " " 5
6739 at_xfail=no
6740 (
6741 printf "%s\n" "97. $at_setup_line: testing $at_desc ..."
6742 $at_traceon
6743
6744
6745
6746 test -d Mail || mkdir Mail
6747 HOME=`pwd`
6748 export HOME
6749 MH=$HOME/mh_profile
6750 export MH
6751 cat > $MH <<EOT
6752 Path: $HOME/Mail
6753 mhetcdir: $abs_top_srcdir/mh/etc
6754 moreproc: /bin/cat
6755 EOT
6756 MTSTAILOR=$HOME/mtstailor
6757 export MTSTAILOR
6758 exec <&-
6759
6760 { set +x
6761 printf "%s\n" "$at_srcdir/mhseq.at:169:
6762 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
6763 mhseq 10:4
6764 "
6765 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:169"
6766 ( $at_check_trace;
6767 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
6768 mhseq 10:4
6769
6770 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6771 at_status=$? at_failed=false
6772 $at_check_filter
6773 at_fn_diff_devnull "$at_stderr" || at_failed=:
6774 echo >>"$at_stdout"; printf "%s\n" "10
6775 11
6776 12
6777 13
6778 " | \
6779 $at_diff - "$at_stdout" || at_failed=:
6780 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:169"
6781 $at_failed && at_fn_log_failure
6782 $at_traceon; }
6783
6784 set +x
6785 $at_times_p && times >"$at_times_file"
6786 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6787 read at_status <"$at_status_file"
6788 #AT_STOP_97
6789 #AT_START_98
6790 at_fn_group_banner 98 'mhseq.at:180' \
6791 "mhseq: non-contiguous counted range (positive)" " " 5
6792 at_xfail=no
6793 (
6794 printf "%s\n" "98. $at_setup_line: testing $at_desc ..."
6795 $at_traceon
6796
6797
6798
6799 test -d Mail || mkdir Mail
6800 HOME=`pwd`
6801 export HOME
6802 MH=$HOME/mh_profile
6803 export MH
6804 cat > $MH <<EOT
6805 Path: $HOME/Mail
6806 mhetcdir: $abs_top_srcdir/mh/etc
6807 moreproc: /bin/cat
6808 EOT
6809 MTSTAILOR=$HOME/mtstailor
6810 export MTSTAILOR
6811 exec <&-
6812
6813 { set +x
6814 printf "%s\n" "$at_srcdir/mhseq.at:180:
6815 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
6816 rm Mail/inbox/12 Mail/inbox/14
6817
6818 # First, set all modes to 700
6819 find Mail/inbox | xargs chmod 700
6820 # Then, remove executable bit from regular files
6821 find Mail/inbox -type f | xargs chmod -x
6822
6823 mhseq 10:4
6824 "
6825 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:180"
6826 ( $at_check_trace;
6827 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
6828 rm Mail/inbox/12 Mail/inbox/14
6829
6830 # First, set all modes to 700
6831 find Mail/inbox | xargs chmod 700
6832 # Then, remove executable bit from regular files
6833 find Mail/inbox -type f | xargs chmod -x
6834
6835 mhseq 10:4
6836
6837 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6838 at_status=$? at_failed=false
6839 $at_check_filter
6840 at_fn_diff_devnull "$at_stderr" || at_failed=:
6841 echo >>"$at_stdout"; printf "%s\n" "10
6842 11
6843 13
6844 15
6845 " | \
6846 $at_diff - "$at_stdout" || at_failed=:
6847 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:180"
6848 $at_failed && at_fn_log_failure
6849 $at_traceon; }
6850
6851 set +x
6852 $at_times_p && times >"$at_times_file"
6853 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6854 read at_status <"$at_status_file"
6855 #AT_STOP_98
6856 #AT_START_99
6857 at_fn_group_banner 99 'mhseq.at:193' \
6858 "mhseq: counted range (positive, left fixup)" " " 5
6859 at_xfail=no
6860 (
6861 printf "%s\n" "99. $at_setup_line: testing $at_desc ..."
6862 $at_traceon
6863
6864
6865
6866 test -d Mail || mkdir Mail
6867 HOME=`pwd`
6868 export HOME
6869 MH=$HOME/mh_profile
6870 export MH
6871 cat > $MH <<EOT
6872 Path: $HOME/Mail
6873 mhetcdir: $abs_top_srcdir/mh/etc
6874 moreproc: /bin/cat
6875 EOT
6876 MTSTAILOR=$HOME/mtstailor
6877 export MTSTAILOR
6878 exec <&-
6879
6880 { set +x
6881 printf "%s\n" "$at_srcdir/mhseq.at:193:
6882 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
6883 rm Mail/inbox/1 Mail/inbox/2
6884
6885 # First, set all modes to 700
6886 find Mail/inbox | xargs chmod 700
6887 # Then, remove executable bit from regular files
6888 find Mail/inbox -type f | xargs chmod -x
6889
6890 mhseq 1:3
6891 "
6892 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:193"
6893 ( $at_check_trace;
6894 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
6895 rm Mail/inbox/1 Mail/inbox/2
6896
6897 # First, set all modes to 700
6898 find Mail/inbox | xargs chmod 700
6899 # Then, remove executable bit from regular files
6900 find Mail/inbox -type f | xargs chmod -x
6901
6902 mhseq 1:3
6903
6904 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6905 at_status=$? at_failed=false
6906 $at_check_filter
6907 at_fn_diff_devnull "$at_stderr" || at_failed=:
6908 echo >>"$at_stdout"; printf "%s\n" "3
6909 4
6910 5
6911 " | \
6912 $at_diff - "$at_stdout" || at_failed=:
6913 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:193"
6914 $at_failed && at_fn_log_failure
6915 $at_traceon; }
6916
6917 set +x
6918 $at_times_p && times >"$at_times_file"
6919 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6920 read at_status <"$at_status_file"
6921 #AT_STOP_99
6922 #AT_START_100
6923 at_fn_group_banner 100 'mhseq.at:205' \
6924 "mhseq: counted range (positive, right fixup)" " " 5
6925 at_xfail=no
6926 (
6927 printf "%s\n" "100. $at_setup_line: testing $at_desc ..."
6928 $at_traceon
6929
6930
6931
6932 test -d Mail || mkdir Mail
6933 HOME=`pwd`
6934 export HOME
6935 MH=$HOME/mh_profile
6936 export MH
6937 cat > $MH <<EOT
6938 Path: $HOME/Mail
6939 mhetcdir: $abs_top_srcdir/mh/etc
6940 moreproc: /bin/cat
6941 EOT
6942 MTSTAILOR=$HOME/mtstailor
6943 export MTSTAILOR
6944 exec <&-
6945
6946 { set +x
6947 printf "%s\n" "$at_srcdir/mhseq.at:205:
6948 mbox2dir -m Mail/inbox \$spooldir/mbox1
6949 mhseq 2:10
6950 "
6951 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:205"
6952 ( $at_check_trace;
6953 mbox2dir -m Mail/inbox $spooldir/mbox1
6954 mhseq 2:10
6955
6956 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6957 at_status=$? at_failed=false
6958 $at_check_filter
6959 at_fn_diff_devnull "$at_stderr" || at_failed=:
6960 echo >>"$at_stdout"; printf "%s\n" "2
6961 3
6962 4
6963 5
6964 " | \
6965 $at_diff - "$at_stdout" || at_failed=:
6966 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:205"
6967 $at_failed && at_fn_log_failure
6968 $at_traceon; }
6969
6970 set +x
6971 $at_times_p && times >"$at_times_file"
6972 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6973 read at_status <"$at_status_file"
6974 #AT_STOP_100
6975 #AT_START_101
6976 at_fn_group_banner 101 'mhseq.at:216' \
6977 "mhseq: invalid counted range (negative)" " " 5
6978 at_xfail=no
6979 (
6980 printf "%s\n" "101. $at_setup_line: testing $at_desc ..."
6981 $at_traceon
6982
6983
6984
6985 test -d Mail || mkdir Mail
6986 HOME=`pwd`
6987 export HOME
6988 MH=$HOME/mh_profile
6989 export MH
6990 cat > $MH <<EOT
6991 Path: $HOME/Mail
6992 mhetcdir: $abs_top_srcdir/mh/etc
6993 moreproc: /bin/cat
6994 EOT
6995 MTSTAILOR=$HOME/mtstailor
6996 export MTSTAILOR
6997 exec <&-
6998
6999 { set +x
7000 printf "%s\n" "$at_srcdir/mhseq.at:216:
7001 mbox2dir -m Mail/inbox \$spooldir/mbox1
7002 rm Mail/inbox/1 Mail/inbox/2
7003
7004 # First, set all modes to 700
7005 find Mail/inbox | xargs chmod 700
7006 # Then, remove executable bit from regular files
7007 find Mail/inbox -type f | xargs chmod -x
7008
7009 mhseq 10:2
7010 "
7011 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:216"
7012 ( $at_check_trace;
7013 mbox2dir -m Mail/inbox $spooldir/mbox1
7014 rm Mail/inbox/1 Mail/inbox/2
7015
7016 # First, set all modes to 700
7017 find Mail/inbox | xargs chmod 700
7018 # Then, remove executable bit from regular files
7019 find Mail/inbox -type f | xargs chmod -x
7020
7021 mhseq 10:2
7022
7023 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7024 at_status=$? at_failed=false
7025 $at_check_filter
7026 echo >>"$at_stderr"; printf "%s\n" "mhseq: no messages in range 10:2
7027 " | \
7028 $at_diff - "$at_stderr" || at_failed=:
7029 at_fn_diff_devnull "$at_stdout" || at_failed=:
7030 at_fn_check_status 1 $at_status "$at_srcdir/mhseq.at:216"
7031 $at_failed && at_fn_log_failure
7032 $at_traceon; }
7033
7034 set +x
7035 $at_times_p && times >"$at_times_file"
7036 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7037 read at_status <"$at_status_file"
7038 #AT_STOP_101
7039 #AT_START_102
7040 at_fn_group_banner 102 'mhseq.at:227' \
7041 "mhseq: counted range (negative)" " " 5
7042 at_xfail=no
7043 (
7044 printf "%s\n" "102. $at_setup_line: testing $at_desc ..."
7045 $at_traceon
7046
7047
7048
7049 test -d Mail || mkdir Mail
7050 HOME=`pwd`
7051 export HOME
7052 MH=$HOME/mh_profile
7053 export MH
7054 cat > $MH <<EOT
7055 Path: $HOME/Mail
7056 mhetcdir: $abs_top_srcdir/mh/etc
7057 moreproc: /bin/cat
7058 EOT
7059 MTSTAILOR=$HOME/mtstailor
7060 export MTSTAILOR
7061 exec <&-
7062
7063 { set +x
7064 printf "%s\n" "$at_srcdir/mhseq.at:227:
7065 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
7066 mhseq 10:-4
7067 "
7068 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:227"
7069 ( $at_check_trace;
7070 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
7071 mhseq 10:-4
7072
7073 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7074 at_status=$? at_failed=false
7075 $at_check_filter
7076 at_fn_diff_devnull "$at_stderr" || at_failed=:
7077 echo >>"$at_stdout"; printf "%s\n" "7
7078 8
7079 9
7080 10
7081 " | \
7082 $at_diff - "$at_stdout" || at_failed=:
7083 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:227"
7084 $at_failed && at_fn_log_failure
7085 $at_traceon; }
7086
7087 set +x
7088 $at_times_p && times >"$at_times_file"
7089 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7090 read at_status <"$at_status_file"
7091 #AT_STOP_102
7092 #AT_START_103
7093 at_fn_group_banner 103 'mhseq.at:238' \
7094 "mhseq: non-contiguous counted range (negative)" " " 5
7095 at_xfail=no
7096 (
7097 printf "%s\n" "103. $at_setup_line: testing $at_desc ..."
7098 $at_traceon
7099
7100
7101
7102 test -d Mail || mkdir Mail
7103 HOME=`pwd`
7104 export HOME
7105 MH=$HOME/mh_profile
7106 export MH
7107 cat > $MH <<EOT
7108 Path: $HOME/Mail
7109 mhetcdir: $abs_top_srcdir/mh/etc
7110 moreproc: /bin/cat
7111 EOT
7112 MTSTAILOR=$HOME/mtstailor
7113 export MTSTAILOR
7114 exec <&-
7115
7116 { set +x
7117 printf "%s\n" "$at_srcdir/mhseq.at:238:
7118 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
7119 rm Mail/inbox/8 Mail/inbox/6
7120
7121 # First, set all modes to 700
7122 find Mail/inbox | xargs chmod 700
7123 # Then, remove executable bit from regular files
7124 find Mail/inbox -type f | xargs chmod -x
7125
7126 mhseq 10:-4
7127 "
7128 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:238"
7129 ( $at_check_trace;
7130 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
7131 rm Mail/inbox/8 Mail/inbox/6
7132
7133 # First, set all modes to 700
7134 find Mail/inbox | xargs chmod 700
7135 # Then, remove executable bit from regular files
7136 find Mail/inbox -type f | xargs chmod -x
7137
7138 mhseq 10:-4
7139
7140 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7141 at_status=$? at_failed=false
7142 $at_check_filter
7143 at_fn_diff_devnull "$at_stderr" || at_failed=:
7144 echo >>"$at_stdout"; printf "%s\n" "5
7145 7
7146 9
7147 10
7148 " | \
7149 $at_diff - "$at_stdout" || at_failed=:
7150 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:238"
7151 $at_failed && at_fn_log_failure
7152 $at_traceon; }
7153
7154 set +x
7155 $at_times_p && times >"$at_times_file"
7156 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7157 read at_status <"$at_status_file"
7158 #AT_STOP_103
7159 #AT_START_104
7160 at_fn_group_banner 104 'mhseq.at:251' \
7161 "mhseq: counted range (negative, left fixup)" " " 5
7162 at_xfail=no
7163 (
7164 printf "%s\n" "104. $at_setup_line: testing $at_desc ..."
7165 $at_traceon
7166
7167
7168
7169 test -d Mail || mkdir Mail
7170 HOME=`pwd`
7171 export HOME
7172 MH=$HOME/mh_profile
7173 export MH
7174 cat > $MH <<EOT
7175 Path: $HOME/Mail
7176 mhetcdir: $abs_top_srcdir/mh/etc
7177 moreproc: /bin/cat
7178 EOT
7179 MTSTAILOR=$HOME/mtstailor
7180 export MTSTAILOR
7181 exec <&-
7182
7183 { set +x
7184 printf "%s\n" "$at_srcdir/mhseq.at:251:
7185 mbox2dir -m Mail/inbox \$spooldir/mbox1
7186 rm Mail/inbox/1 Mail/inbox/2
7187
7188 # First, set all modes to 700
7189 find Mail/inbox | xargs chmod 700
7190 # Then, remove executable bit from regular files
7191 find Mail/inbox -type f | xargs chmod -x
7192
7193 mhseq 4:-30
7194 "
7195 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:251"
7196 ( $at_check_trace;
7197 mbox2dir -m Mail/inbox $spooldir/mbox1
7198 rm Mail/inbox/1 Mail/inbox/2
7199
7200 # First, set all modes to 700
7201 find Mail/inbox | xargs chmod 700
7202 # Then, remove executable bit from regular files
7203 find Mail/inbox -type f | xargs chmod -x
7204
7205 mhseq 4:-30
7206
7207 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7208 at_status=$? at_failed=false
7209 $at_check_filter
7210 at_fn_diff_devnull "$at_stderr" || at_failed=:
7211 echo >>"$at_stdout"; printf "%s\n" "3
7212 4
7213 " | \
7214 $at_diff - "$at_stdout" || at_failed=:
7215 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:251"
7216 $at_failed && at_fn_log_failure
7217 $at_traceon; }
7218
7219 set +x
7220 $at_times_p && times >"$at_times_file"
7221 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7222 read at_status <"$at_status_file"
7223 #AT_STOP_104
7224 #AT_START_105
7225 at_fn_group_banner 105 'mhseq.at:262' \
7226 "mhseq: counted range (negative, right fixup)" " " 5
7227 at_xfail=no
7228 (
7229 printf "%s\n" "105. $at_setup_line: testing $at_desc ..."
7230 $at_traceon
7231
7232
7233
7234 test -d Mail || mkdir Mail
7235 HOME=`pwd`
7236 export HOME
7237 MH=$HOME/mh_profile
7238 export MH
7239 cat > $MH <<EOT
7240 Path: $HOME/Mail
7241 mhetcdir: $abs_top_srcdir/mh/etc
7242 moreproc: /bin/cat
7243 EOT
7244 MTSTAILOR=$HOME/mtstailor
7245 export MTSTAILOR
7246 exec <&-
7247
7248 { set +x
7249 printf "%s\n" "$at_srcdir/mhseq.at:262:
7250 mbox2dir -m Mail/inbox \$spooldir/mbox1
7251 rm Mail/inbox/1 Mail/inbox/2
7252
7253 # First, set all modes to 700
7254 find Mail/inbox | xargs chmod 700
7255 # Then, remove executable bit from regular files
7256 find Mail/inbox -type f | xargs chmod -x
7257
7258 mhseq 4:30
7259 "
7260 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:262"
7261 ( $at_check_trace;
7262 mbox2dir -m Mail/inbox $spooldir/mbox1
7263 rm Mail/inbox/1 Mail/inbox/2
7264
7265 # First, set all modes to 700
7266 find Mail/inbox | xargs chmod 700
7267 # Then, remove executable bit from regular files
7268 find Mail/inbox -type f | xargs chmod -x
7269
7270 mhseq 4:30
7271
7272 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7273 at_status=$? at_failed=false
7274 $at_check_filter
7275 at_fn_diff_devnull "$at_stderr" || at_failed=:
7276 echo >>"$at_stdout"; printf "%s\n" "4
7277 5
7278 " | \
7279 $at_diff - "$at_stdout" || at_failed=:
7280 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:262"
7281 $at_failed && at_fn_log_failure
7282 $at_traceon; }
7283
7284 set +x
7285 $at_times_p && times >"$at_times_file"
7286 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7287 read at_status <"$at_status_file"
7288 #AT_STOP_105
7289 #AT_START_106
7290 at_fn_group_banner 106 'mhseq.at:273' \
7291 "mhseq: invalid counted range (negative)" " " 5
7292 at_xfail=no
7293 (
7294 printf "%s\n" "106. $at_setup_line: testing $at_desc ..."
7295 $at_traceon
7296
7297
7298
7299 test -d Mail || mkdir Mail
7300 HOME=`pwd`
7301 export HOME
7302 MH=$HOME/mh_profile
7303 export MH
7304 cat > $MH <<EOT
7305 Path: $HOME/Mail
7306 mhetcdir: $abs_top_srcdir/mh/etc
7307 moreproc: /bin/cat
7308 EOT
7309 MTSTAILOR=$HOME/mtstailor
7310 export MTSTAILOR
7311 exec <&-
7312
7313 { set +x
7314 printf "%s\n" "$at_srcdir/mhseq.at:273:
7315 mbox2dir -m Mail/inbox \$spooldir/mbox1
7316 rm Mail/inbox/1 Mail/inbox/2
7317
7318 # First, set all modes to 700
7319 find Mail/inbox | xargs chmod 700
7320 # Then, remove executable bit from regular files
7321 find Mail/inbox -type f | xargs chmod -x
7322
7323 mhseq 1:-30
7324 "
7325 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:273"
7326 ( $at_check_trace;
7327 mbox2dir -m Mail/inbox $spooldir/mbox1
7328 rm Mail/inbox/1 Mail/inbox/2
7329
7330 # First, set all modes to 700
7331 find Mail/inbox | xargs chmod 700
7332 # Then, remove executable bit from regular files
7333 find Mail/inbox -type f | xargs chmod -x
7334
7335 mhseq 1:-30
7336
7337 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7338 at_status=$? at_failed=false
7339 $at_check_filter
7340 echo >>"$at_stderr"; printf "%s\n" "mhseq: no messages in range 1:-30
7341 " | \
7342 $at_diff - "$at_stderr" || at_failed=:
7343 at_fn_diff_devnull "$at_stdout" || at_failed=:
7344 at_fn_check_status 1 $at_status "$at_srcdir/mhseq.at:273"
7345 $at_failed && at_fn_log_failure
7346 $at_traceon; }
7347
7348 set +x
7349 $at_times_p && times >"$at_times_file"
7350 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7351 read at_status <"$at_status_file"
7352 #AT_STOP_106
7353 #AT_START_107
7354 at_fn_group_banner 107 'mhseq.at:284' \
7355 "mhseq: cur" " " 5
7356 at_xfail=no
7357 (
7358 printf "%s\n" "107. $at_setup_line: testing $at_desc ..."
7359 $at_traceon
7360
7361
7362
7363 test -d Mail || mkdir Mail
7364 HOME=`pwd`
7365 export HOME
7366 MH=$HOME/mh_profile
7367 export MH
7368 cat > $MH <<EOT
7369 Path: $HOME/Mail
7370 mhetcdir: $abs_top_srcdir/mh/etc
7371 moreproc: /bin/cat
7372 EOT
7373 MTSTAILOR=$HOME/mtstailor
7374 export MTSTAILOR
7375 exec <&-
7376
7377 { set +x
7378 printf "%s\n" "$at_srcdir/mhseq.at:284:
7379 mbox2dir -m Mail/inbox \$spooldir/mbox1
7380 echo \"cur: 3\" > Mail/inbox/.mh_sequences
7381
7382 # First, set all modes to 700
7383 find Mail/inbox | xargs chmod 700
7384 # Then, remove executable bit from regular files
7385 find Mail/inbox -type f | xargs chmod -x
7386
7387 mhseq cur
7388 "
7389 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:284"
7390 ( $at_check_trace;
7391 mbox2dir -m Mail/inbox $spooldir/mbox1
7392 echo "cur: 3" > Mail/inbox/.mh_sequences
7393
7394 # First, set all modes to 700
7395 find Mail/inbox | xargs chmod 700
7396 # Then, remove executable bit from regular files
7397 find Mail/inbox -type f | xargs chmod -x
7398
7399 mhseq cur
7400
7401 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7402 at_status=$? at_failed=false
7403 $at_check_filter
7404 at_fn_diff_devnull "$at_stderr" || at_failed=:
7405 echo >>"$at_stdout"; printf "%s\n" "3
7406 " | \
7407 $at_diff - "$at_stdout" || at_failed=:
7408 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:284"
7409 $at_failed && at_fn_log_failure
7410 $at_traceon; }
7411
7412 set +x
7413 $at_times_p && times >"$at_times_file"
7414 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7415 read at_status <"$at_status_file"
7416 #AT_STOP_107
7417 #AT_START_108
7418 at_fn_group_banner 108 'mhseq.at:294' \
7419 "mhseq: cur:n -- default direction" " " 5
7420 at_xfail=no
7421 (
7422 printf "%s\n" "108. $at_setup_line: testing $at_desc ..."
7423 $at_traceon
7424
7425
7426
7427 test -d Mail || mkdir Mail
7428 HOME=`pwd`
7429 export HOME
7430 MH=$HOME/mh_profile
7431 export MH
7432 cat > $MH <<EOT
7433 Path: $HOME/Mail
7434 mhetcdir: $abs_top_srcdir/mh/etc
7435 moreproc: /bin/cat
7436 EOT
7437 MTSTAILOR=$HOME/mtstailor
7438 export MTSTAILOR
7439 exec <&-
7440
7441 { set +x
7442 printf "%s\n" "$at_srcdir/mhseq.at:294:
7443 mbox2dir -m Mail/inbox \$spooldir/mbox1
7444 echo \"cur: 3\" > Mail/inbox/.mh_sequences
7445
7446 # First, set all modes to 700
7447 find Mail/inbox | xargs chmod 700
7448 # Then, remove executable bit from regular files
7449 find Mail/inbox -type f | xargs chmod -x
7450
7451 mhseq cur:2
7452 "
7453 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:294"
7454 ( $at_check_trace;
7455 mbox2dir -m Mail/inbox $spooldir/mbox1
7456 echo "cur: 3" > Mail/inbox/.mh_sequences
7457
7458 # First, set all modes to 700
7459 find Mail/inbox | xargs chmod 700
7460 # Then, remove executable bit from regular files
7461 find Mail/inbox -type f | xargs chmod -x
7462
7463 mhseq cur:2
7464
7465 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7466 at_status=$? at_failed=false
7467 $at_check_filter
7468 at_fn_diff_devnull "$at_stderr" || at_failed=:
7469 echo >>"$at_stdout"; printf "%s\n" "3
7470 4
7471 " | \
7472 $at_diff - "$at_stdout" || at_failed=:
7473 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:294"
7474 $at_failed && at_fn_log_failure
7475 $at_traceon; }
7476
7477 set +x
7478 $at_times_p && times >"$at_times_file"
7479 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7480 read at_status <"$at_status_file"
7481 #AT_STOP_108
7482 #AT_START_109
7483 at_fn_group_banner 109 'mhseq.at:305' \
7484 "mhseq: cur:n -- explicit dir (negative)" " " 5
7485 at_xfail=no
7486 (
7487 printf "%s\n" "109. $at_setup_line: testing $at_desc ..."
7488 $at_traceon
7489
7490
7491
7492 test -d Mail || mkdir Mail
7493 HOME=`pwd`
7494 export HOME
7495 MH=$HOME/mh_profile
7496 export MH
7497 cat > $MH <<EOT
7498 Path: $HOME/Mail
7499 mhetcdir: $abs_top_srcdir/mh/etc
7500 moreproc: /bin/cat
7501 EOT
7502 MTSTAILOR=$HOME/mtstailor
7503 export MTSTAILOR
7504 exec <&-
7505
7506 { set +x
7507 printf "%s\n" "$at_srcdir/mhseq.at:305:
7508 mbox2dir -m Mail/inbox \$spooldir/mbox1
7509 echo \"cur: 3\" > Mail/inbox/.mh_sequences
7510
7511 # First, set all modes to 700
7512 find Mail/inbox | xargs chmod 700
7513 # Then, remove executable bit from regular files
7514 find Mail/inbox -type f | xargs chmod -x
7515
7516 mhseq cur:-2
7517 "
7518 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:305"
7519 ( $at_check_trace;
7520 mbox2dir -m Mail/inbox $spooldir/mbox1
7521 echo "cur: 3" > Mail/inbox/.mh_sequences
7522
7523 # First, set all modes to 700
7524 find Mail/inbox | xargs chmod 700
7525 # Then, remove executable bit from regular files
7526 find Mail/inbox -type f | xargs chmod -x
7527
7528 mhseq cur:-2
7529
7530 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7531 at_status=$? at_failed=false
7532 $at_check_filter
7533 at_fn_diff_devnull "$at_stderr" || at_failed=:
7534 echo >>"$at_stdout"; printf "%s\n" "2
7535 3
7536 " | \
7537 $at_diff - "$at_stdout" || at_failed=:
7538 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:305"
7539 $at_failed && at_fn_log_failure
7540 $at_traceon; }
7541
7542 set +x
7543 $at_times_p && times >"$at_times_file"
7544 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7545 read at_status <"$at_status_file"
7546 #AT_STOP_109
7547 #AT_START_110
7548 at_fn_group_banner 110 'mhseq.at:316' \
7549 "mhseq: cur:n -- explicit dir (positive)" " " 5
7550 at_xfail=no
7551 (
7552 printf "%s\n" "110. $at_setup_line: testing $at_desc ..."
7553 $at_traceon
7554
7555
7556
7557 test -d Mail || mkdir Mail
7558 HOME=`pwd`
7559 export HOME
7560 MH=$HOME/mh_profile
7561 export MH
7562 cat > $MH <<EOT
7563 Path: $HOME/Mail
7564 mhetcdir: $abs_top_srcdir/mh/etc
7565 moreproc: /bin/cat
7566 EOT
7567 MTSTAILOR=$HOME/mtstailor
7568 export MTSTAILOR
7569 exec <&-
7570
7571 { set +x
7572 printf "%s\n" "$at_srcdir/mhseq.at:316:
7573 mbox2dir -m Mail/inbox \$spooldir/mbox1
7574 echo \"cur: 3\" > Mail/inbox/.mh_sequences
7575
7576 # First, set all modes to 700
7577 find Mail/inbox | xargs chmod 700
7578 # Then, remove executable bit from regular files
7579 find Mail/inbox -type f | xargs chmod -x
7580
7581 mhseq cur:+2
7582 "
7583 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:316"
7584 ( $at_check_trace;
7585 mbox2dir -m Mail/inbox $spooldir/mbox1
7586 echo "cur: 3" > Mail/inbox/.mh_sequences
7587
7588 # First, set all modes to 700
7589 find Mail/inbox | xargs chmod 700
7590 # Then, remove executable bit from regular files
7591 find Mail/inbox -type f | xargs chmod -x
7592
7593 mhseq cur:+2
7594
7595 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7596 at_status=$? at_failed=false
7597 $at_check_filter
7598 at_fn_diff_devnull "$at_stderr" || at_failed=:
7599 echo >>"$at_stdout"; printf "%s\n" "3
7600 4
7601 " | \
7602 $at_diff - "$at_stdout" || at_failed=:
7603 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:316"
7604 $at_failed && at_fn_log_failure
7605 $at_traceon; }
7606
7607 set +x
7608 $at_times_p && times >"$at_times_file"
7609 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7610 read at_status <"$at_status_file"
7611 #AT_STOP_110
7612 #AT_START_111
7613 at_fn_group_banner 111 'mhseq.at:327' \
7614 "mhseq: next" " " 5
7615 at_xfail=no
7616 (
7617 printf "%s\n" "111. $at_setup_line: testing $at_desc ..."
7618 $at_traceon
7619
7620
7621
7622 test -d Mail || mkdir Mail
7623 HOME=`pwd`
7624 export HOME
7625 MH=$HOME/mh_profile
7626 export MH
7627 cat > $MH <<EOT
7628 Path: $HOME/Mail
7629 mhetcdir: $abs_top_srcdir/mh/etc
7630 moreproc: /bin/cat
7631 EOT
7632 MTSTAILOR=$HOME/mtstailor
7633 export MTSTAILOR
7634 exec <&-
7635
7636 { set +x
7637 printf "%s\n" "$at_srcdir/mhseq.at:327:
7638 mbox2dir -m Mail/inbox \$spooldir/mbox1
7639 echo \"cur: 3\" > Mail/inbox/.mh_sequences
7640 rm Mail/inbox/4
7641
7642 # First, set all modes to 700
7643 find Mail/inbox | xargs chmod 700
7644 # Then, remove executable bit from regular files
7645 find Mail/inbox -type f | xargs chmod -x
7646
7647 mhseq next
7648 "
7649 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:327"
7650 ( $at_check_trace;
7651 mbox2dir -m Mail/inbox $spooldir/mbox1
7652 echo "cur: 3" > Mail/inbox/.mh_sequences
7653 rm Mail/inbox/4
7654
7655 # First, set all modes to 700
7656 find Mail/inbox | xargs chmod 700
7657 # Then, remove executable bit from regular files
7658 find Mail/inbox -type f | xargs chmod -x
7659
7660 mhseq next
7661
7662 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7663 at_status=$? at_failed=false
7664 $at_check_filter
7665 at_fn_diff_devnull "$at_stderr" || at_failed=:
7666 echo >>"$at_stdout"; printf "%s\n" "5
7667 " | \
7668 $at_diff - "$at_stdout" || at_failed=:
7669 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:327"
7670 $at_failed && at_fn_log_failure
7671 $at_traceon; }
7672
7673 set +x
7674 $at_times_p && times >"$at_times_file"
7675 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7676 read at_status <"$at_status_file"
7677 #AT_STOP_111
7678 #AT_START_112
7679 at_fn_group_banner 112 'mhseq.at:338' \
7680 "mhseq: next:n -- default direction" " " 5
7681 at_xfail=no
7682 (
7683 printf "%s\n" "112. $at_setup_line: testing $at_desc ..."
7684 $at_traceon
7685
7686
7687
7688 test -d Mail || mkdir Mail
7689 HOME=`pwd`
7690 export HOME
7691 MH=$HOME/mh_profile
7692 export MH
7693 cat > $MH <<EOT
7694 Path: $HOME/Mail
7695 mhetcdir: $abs_top_srcdir/mh/etc
7696 moreproc: /bin/cat
7697 EOT
7698 MTSTAILOR=$HOME/mtstailor
7699 export MTSTAILOR
7700 exec <&-
7701
7702 { set +x
7703 printf "%s\n" "$at_srcdir/mhseq.at:338:
7704 mbox2dir -m Mail/inbox \$spooldir/mbox1
7705 echo \"cur: 3\" > Mail/inbox/.mh_sequences
7706
7707 # First, set all modes to 700
7708 find Mail/inbox | xargs chmod 700
7709 # Then, remove executable bit from regular files
7710 find Mail/inbox -type f | xargs chmod -x
7711
7712 mhseq next:2
7713 "
7714 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:338"
7715 ( $at_check_trace;
7716 mbox2dir -m Mail/inbox $spooldir/mbox1
7717 echo "cur: 3" > Mail/inbox/.mh_sequences
7718
7719 # First, set all modes to 700
7720 find Mail/inbox | xargs chmod 700
7721 # Then, remove executable bit from regular files
7722 find Mail/inbox -type f | xargs chmod -x
7723
7724 mhseq next:2
7725
7726 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7727 at_status=$? at_failed=false
7728 $at_check_filter
7729 at_fn_diff_devnull "$at_stderr" || at_failed=:
7730 echo >>"$at_stdout"; printf "%s\n" "4
7731 5
7732 " | \
7733 $at_diff - "$at_stdout" || at_failed=:
7734 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:338"
7735 $at_failed && at_fn_log_failure
7736 $at_traceon; }
7737
7738 set +x
7739 $at_times_p && times >"$at_times_file"
7740 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7741 read at_status <"$at_status_file"
7742 #AT_STOP_112
7743 #AT_START_113
7744 at_fn_group_banner 113 'mhseq.at:349' \
7745 "mhseq: prev" " " 5
7746 at_xfail=no
7747 (
7748 printf "%s\n" "113. $at_setup_line: testing $at_desc ..."
7749 $at_traceon
7750
7751
7752
7753 test -d Mail || mkdir Mail
7754 HOME=`pwd`
7755 export HOME
7756 MH=$HOME/mh_profile
7757 export MH
7758 cat > $MH <<EOT
7759 Path: $HOME/Mail
7760 mhetcdir: $abs_top_srcdir/mh/etc
7761 moreproc: /bin/cat
7762 EOT
7763 MTSTAILOR=$HOME/mtstailor
7764 export MTSTAILOR
7765 exec <&-
7766
7767 { set +x
7768 printf "%s\n" "$at_srcdir/mhseq.at:349:
7769 mbox2dir -m Mail/inbox \$spooldir/mbox1
7770 echo \"cur: 3\" > Mail/inbox/.mh_sequences
7771 rm Mail/inbox/2
7772
7773 # First, set all modes to 700
7774 find Mail/inbox | xargs chmod 700
7775 # Then, remove executable bit from regular files
7776 find Mail/inbox -type f | xargs chmod -x
7777
7778 mhseq prev
7779 "
7780 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:349"
7781 ( $at_check_trace;
7782 mbox2dir -m Mail/inbox $spooldir/mbox1
7783 echo "cur: 3" > Mail/inbox/.mh_sequences
7784 rm Mail/inbox/2
7785
7786 # First, set all modes to 700
7787 find Mail/inbox | xargs chmod 700
7788 # Then, remove executable bit from regular files
7789 find Mail/inbox -type f | xargs chmod -x
7790
7791 mhseq prev
7792
7793 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7794 at_status=$? at_failed=false
7795 $at_check_filter
7796 at_fn_diff_devnull "$at_stderr" || at_failed=:
7797 echo >>"$at_stdout"; printf "%s\n" "1
7798 " | \
7799 $at_diff - "$at_stdout" || at_failed=:
7800 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:349"
7801 $at_failed && at_fn_log_failure
7802 $at_traceon; }
7803
7804 set +x
7805 $at_times_p && times >"$at_times_file"
7806 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7807 read at_status <"$at_status_file"
7808 #AT_STOP_113
7809 #AT_START_114
7810 at_fn_group_banner 114 'mhseq.at:360' \
7811 "mhseq: prev:n -- default direction" " " 5
7812 at_xfail=no
7813 (
7814 printf "%s\n" "114. $at_setup_line: testing $at_desc ..."
7815 $at_traceon
7816
7817
7818
7819 test -d Mail || mkdir Mail
7820 HOME=`pwd`
7821 export HOME
7822 MH=$HOME/mh_profile
7823 export MH
7824 cat > $MH <<EOT
7825 Path: $HOME/Mail
7826 mhetcdir: $abs_top_srcdir/mh/etc
7827 moreproc: /bin/cat
7828 EOT
7829 MTSTAILOR=$HOME/mtstailor
7830 export MTSTAILOR
7831 exec <&-
7832
7833 { set +x
7834 printf "%s\n" "$at_srcdir/mhseq.at:360:
7835 mbox2dir -m Mail/inbox \$spooldir/mbox1
7836 echo \"cur: 3\" > Mail/inbox/.mh_sequences
7837
7838 # First, set all modes to 700
7839 find Mail/inbox | xargs chmod 700
7840 # Then, remove executable bit from regular files
7841 find Mail/inbox -type f | xargs chmod -x
7842
7843 mhseq prev:2
7844 "
7845 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:360"
7846 ( $at_check_trace;
7847 mbox2dir -m Mail/inbox $spooldir/mbox1
7848 echo "cur: 3" > Mail/inbox/.mh_sequences
7849
7850 # First, set all modes to 700
7851 find Mail/inbox | xargs chmod 700
7852 # Then, remove executable bit from regular files
7853 find Mail/inbox -type f | xargs chmod -x
7854
7855 mhseq prev:2
7856
7857 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7858 at_status=$? at_failed=false
7859 $at_check_filter
7860 at_fn_diff_devnull "$at_stderr" || at_failed=:
7861 echo >>"$at_stdout"; printf "%s\n" "1
7862 2
7863 " | \
7864 $at_diff - "$at_stdout" || at_failed=:
7865 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:360"
7866 $at_failed && at_fn_log_failure
7867 $at_traceon; }
7868
7869 set +x
7870 $at_times_p && times >"$at_times_file"
7871 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7872 read at_status <"$at_status_file"
7873 #AT_STOP_114
7874 #AT_START_115
7875 at_fn_group_banner 115 'mhseq.at:371' \
7876 "mhseq: first" " " 5
7877 at_xfail=no
7878 (
7879 printf "%s\n" "115. $at_setup_line: testing $at_desc ..."
7880 $at_traceon
7881
7882
7883
7884 test -d Mail || mkdir Mail
7885 HOME=`pwd`
7886 export HOME
7887 MH=$HOME/mh_profile
7888 export MH
7889 cat > $MH <<EOT
7890 Path: $HOME/Mail
7891 mhetcdir: $abs_top_srcdir/mh/etc
7892 moreproc: /bin/cat
7893 EOT
7894 MTSTAILOR=$HOME/mtstailor
7895 export MTSTAILOR
7896 exec <&-
7897
7898 { set +x
7899 printf "%s\n" "$at_srcdir/mhseq.at:371:
7900 mbox2dir -m Mail/inbox \$spooldir/mbox1
7901 rm Mail/inbox/1
7902
7903 # First, set all modes to 700
7904 find Mail/inbox | xargs chmod 700
7905 # Then, remove executable bit from regular files
7906 find Mail/inbox -type f | xargs chmod -x
7907
7908 mhseq first
7909 "
7910 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:371"
7911 ( $at_check_trace;
7912 mbox2dir -m Mail/inbox $spooldir/mbox1
7913 rm Mail/inbox/1
7914
7915 # First, set all modes to 700
7916 find Mail/inbox | xargs chmod 700
7917 # Then, remove executable bit from regular files
7918 find Mail/inbox -type f | xargs chmod -x
7919
7920 mhseq first
7921
7922 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7923 at_status=$? at_failed=false
7924 $at_check_filter
7925 at_fn_diff_devnull "$at_stderr" || at_failed=:
7926 echo >>"$at_stdout"; printf "%s\n" "2
7927 " | \
7928 $at_diff - "$at_stdout" || at_failed=:
7929 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:371"
7930 $at_failed && at_fn_log_failure
7931 $at_traceon; }
7932
7933 set +x
7934 $at_times_p && times >"$at_times_file"
7935 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7936 read at_status <"$at_status_file"
7937 #AT_STOP_115
7938 #AT_START_116
7939 at_fn_group_banner 116 'mhseq.at:381' \
7940 "mhseq: first:n -- default direction" " " 5
7941 at_xfail=no
7942 (
7943 printf "%s\n" "116. $at_setup_line: testing $at_desc ..."
7944 $at_traceon
7945
7946
7947
7948 test -d Mail || mkdir Mail
7949 HOME=`pwd`
7950 export HOME
7951 MH=$HOME/mh_profile
7952 export MH
7953 cat > $MH <<EOT
7954 Path: $HOME/Mail
7955 mhetcdir: $abs_top_srcdir/mh/etc
7956 moreproc: /bin/cat
7957 EOT
7958 MTSTAILOR=$HOME/mtstailor
7959 export MTSTAILOR
7960 exec <&-
7961
7962 { set +x
7963 printf "%s\n" "$at_srcdir/mhseq.at:381:
7964 mbox2dir -m Mail/inbox \$spooldir/mbox1
7965 rm Mail/inbox/1
7966
7967 # First, set all modes to 700
7968 find Mail/inbox | xargs chmod 700
7969 # Then, remove executable bit from regular files
7970 find Mail/inbox -type f | xargs chmod -x
7971
7972 mhseq first:2
7973 "
7974 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:381"
7975 ( $at_check_trace;
7976 mbox2dir -m Mail/inbox $spooldir/mbox1
7977 rm Mail/inbox/1
7978
7979 # First, set all modes to 700
7980 find Mail/inbox | xargs chmod 700
7981 # Then, remove executable bit from regular files
7982 find Mail/inbox -type f | xargs chmod -x
7983
7984 mhseq first:2
7985
7986 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7987 at_status=$? at_failed=false
7988 $at_check_filter
7989 at_fn_diff_devnull "$at_stderr" || at_failed=:
7990 echo >>"$at_stdout"; printf "%s\n" "2
7991 3
7992 " | \
7993 $at_diff - "$at_stdout" || at_failed=:
7994 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:381"
7995 $at_failed && at_fn_log_failure
7996 $at_traceon; }
7997
7998 set +x
7999 $at_times_p && times >"$at_times_file"
8000 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8001 read at_status <"$at_status_file"
8002 #AT_STOP_116
8003 #AT_START_117
8004 at_fn_group_banner 117 'mhseq.at:392' \
8005 "mhseq: last" " " 5
8006 at_xfail=no
8007 (
8008 printf "%s\n" "117. $at_setup_line: testing $at_desc ..."
8009 $at_traceon
8010
8011
8012
8013 test -d Mail || mkdir Mail
8014 HOME=`pwd`
8015 export HOME
8016 MH=$HOME/mh_profile
8017 export MH
8018 cat > $MH <<EOT
8019 Path: $HOME/Mail
8020 mhetcdir: $abs_top_srcdir/mh/etc
8021 moreproc: /bin/cat
8022 EOT
8023 MTSTAILOR=$HOME/mtstailor
8024 export MTSTAILOR
8025 exec <&-
8026
8027 { set +x
8028 printf "%s\n" "$at_srcdir/mhseq.at:392:
8029 mbox2dir -m Mail/inbox \$spooldir/mbox1
8030 mhseq last
8031 "
8032 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:392"
8033 ( $at_check_trace;
8034 mbox2dir -m Mail/inbox $spooldir/mbox1
8035 mhseq last
8036
8037 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8038 at_status=$? at_failed=false
8039 $at_check_filter
8040 at_fn_diff_devnull "$at_stderr" || at_failed=:
8041 echo >>"$at_stdout"; printf "%s\n" "5
8042 " | \
8043 $at_diff - "$at_stdout" || at_failed=:
8044 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:392"
8045 $at_failed && at_fn_log_failure
8046 $at_traceon; }
8047
8048 set +x
8049 $at_times_p && times >"$at_times_file"
8050 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8051 read at_status <"$at_status_file"
8052 #AT_STOP_117
8053 #AT_START_118
8054 at_fn_group_banner 118 'mhseq.at:400' \
8055 "mhseq: last:n -- default direction" " " 5
8056 at_xfail=no
8057 (
8058 printf "%s\n" "118. $at_setup_line: testing $at_desc ..."
8059 $at_traceon
8060
8061
8062
8063 test -d Mail || mkdir Mail
8064 HOME=`pwd`
8065 export HOME
8066 MH=$HOME/mh_profile
8067 export MH
8068 cat > $MH <<EOT
8069 Path: $HOME/Mail
8070 mhetcdir: $abs_top_srcdir/mh/etc
8071 moreproc: /bin/cat
8072 EOT
8073 MTSTAILOR=$HOME/mtstailor
8074 export MTSTAILOR
8075 exec <&-
8076
8077 { set +x
8078 printf "%s\n" "$at_srcdir/mhseq.at:400:
8079 mbox2dir -m Mail/inbox \$spooldir/mbox1
8080 mhseq last:2
8081 "
8082 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:400"
8083 ( $at_check_trace;
8084 mbox2dir -m Mail/inbox $spooldir/mbox1
8085 mhseq last:2
8086
8087 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8088 at_status=$? at_failed=false
8089 $at_check_filter
8090 at_fn_diff_devnull "$at_stderr" || at_failed=:
8091 echo >>"$at_stdout"; printf "%s\n" "4
8092 5
8093 " | \
8094 $at_diff - "$at_stdout" || at_failed=:
8095 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:400"
8096 $at_failed && at_fn_log_failure
8097 $at_traceon; }
8098
8099 set +x
8100 $at_times_p && times >"$at_times_file"
8101 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8102 read at_status <"$at_status_file"
8103 #AT_STOP_118
8104 #AT_START_119
8105 at_fn_group_banner 119 'mhseq.at:409' \
8106 "mhseq: sparse increasing message range (left fixup in the middle)" "" 5
8107 at_xfail=no
8108 (
8109 printf "%s\n" "119. $at_setup_line: testing $at_desc ..."
8110 $at_traceon
8111
8112
8113
8114 test -d Mail || mkdir Mail
8115 HOME=`pwd`
8116 export HOME
8117 MH=$HOME/mh_profile
8118 export MH
8119 cat > $MH <<EOT
8120 Path: $HOME/Mail
8121 mhetcdir: $abs_top_srcdir/mh/etc
8122 moreproc: /bin/cat
8123 EOT
8124 MTSTAILOR=$HOME/mtstailor
8125 export MTSTAILOR
8126 exec <&-
8127
8128 { set +x
8129 printf "%s\n" "$at_srcdir/mhseq.at:409:
8130 { set +x
8131 printf \"%s\\n\" \"\$at_srcdir/mhseq.at:409: cat >names <<'_ATEOF'
8132 1
8133 2
8134 8
8135 15
8136 20
8137 _ATEOF
8138
8139 mbox2dir -m -i names Mail/inbox \\\$spooldir/mbox1
8140 \"
8141 at_fn_check_prepare_notrace 'an embedded newline' \"mhseq.at:409\"
8142 ( \$at_check_trace; cat >names <<'_ATEOF'
8143 1
8144 2
8145 8
8146 15
8147 20
8148 _ATEOF
8149
8150 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
8151
8152 ) >>\"\$at_stdout\" 2>>\"\$at_stderr\" 5>&-
8153 at_status=\$? at_failed=false
8154 \$at_check_filter
8155 at_fn_diff_devnull \"\$at_stderr\" || at_failed=:
8156 at_fn_diff_devnull \"\$at_stdout\" || at_failed=:
8157 at_fn_check_status 0 \$at_status \"\$at_srcdir/mhseq.at:409\"
8158 \$at_failed && at_fn_log_failure
8159 \$at_traceon; }
8160
8161
8162 # First, set all modes to 700
8163 find Mail/inbox | xargs chmod 700
8164 # Then, remove executable bit from regular files
8165 find Mail/inbox -type f | xargs chmod -x
8166
8167 mhseq 5-15
8168 "
8169 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:409"
8170 ( $at_check_trace;
8171 { set +x
8172 printf "%s\n" "$at_srcdir/mhseq.at:409: cat >names <<'_ATEOF'
8173 1
8174 2
8175 8
8176 15
8177 20
8178 _ATEOF
8179
8180 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
8181 "
8182 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:409"
8183 ( $at_check_trace; cat >names <<'_ATEOF'
8184 1
8185 2
8186 8
8187 15
8188 20
8189 _ATEOF
8190
8191 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
8192
8193 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8194 at_status=$? at_failed=false
8195 $at_check_filter
8196 at_fn_diff_devnull "$at_stderr" || at_failed=:
8197 at_fn_diff_devnull "$at_stdout" || at_failed=:
8198 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:409"
8199 $at_failed && at_fn_log_failure
8200 $at_traceon; }
8201
8202
8203 # First, set all modes to 700
8204 find Mail/inbox | xargs chmod 700
8205 # Then, remove executable bit from regular files
8206 find Mail/inbox -type f | xargs chmod -x
8207
8208 mhseq 5-15
8209
8210 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8211 at_status=$? at_failed=false
8212 $at_check_filter
8213 at_fn_diff_devnull "$at_stderr" || at_failed=:
8214 echo >>"$at_stdout"; printf "%s\n" "8
8215 15
8216 " | \
8217 $at_diff - "$at_stdout" || at_failed=:
8218 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:409"
8219 $at_failed && at_fn_log_failure
8220 $at_traceon; }
8221
8222 set +x
8223 $at_times_p && times >"$at_times_file"
8224 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8225 read at_status <"$at_status_file"
8226 #AT_STOP_119
8227 #AT_START_120
8228 at_fn_group_banner 120 'mhseq.at:428' \
8229 "mhseq: sparse increasing message range (right fixup in the middle)" "" 5
8230 at_xfail=no
8231 (
8232 printf "%s\n" "120. $at_setup_line: testing $at_desc ..."
8233 $at_traceon
8234
8235
8236
8237 test -d Mail || mkdir Mail
8238 HOME=`pwd`
8239 export HOME
8240 MH=$HOME/mh_profile
8241 export MH
8242 cat > $MH <<EOT
8243 Path: $HOME/Mail
8244 mhetcdir: $abs_top_srcdir/mh/etc
8245 moreproc: /bin/cat
8246 EOT
8247 MTSTAILOR=$HOME/mtstailor
8248 export MTSTAILOR
8249 exec <&-
8250
8251 { set +x
8252 printf "%s\n" "$at_srcdir/mhseq.at:428:
8253 cat >names <<'_ATEOF'
8254 1
8255 2
8256 8
8257 15
8258 20
8259 _ATEOF
8260
8261 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
8262
8263 # First, set all modes to 700
8264 find Mail/inbox | xargs chmod 700
8265 # Then, remove executable bit from regular files
8266 find Mail/inbox -type f | xargs chmod -x
8267
8268 mhseq 8-17
8269 "
8270 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:428"
8271 ( $at_check_trace;
8272 cat >names <<'_ATEOF'
8273 1
8274 2
8275 8
8276 15
8277 20
8278 _ATEOF
8279
8280 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
8281
8282 # First, set all modes to 700
8283 find Mail/inbox | xargs chmod 700
8284 # Then, remove executable bit from regular files
8285 find Mail/inbox -type f | xargs chmod -x
8286
8287 mhseq 8-17
8288
8289 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8290 at_status=$? at_failed=false
8291 $at_check_filter
8292 at_fn_diff_devnull "$at_stderr" || at_failed=:
8293 echo >>"$at_stdout"; printf "%s\n" "8
8294 15
8295 " | \
8296 $at_diff - "$at_stdout" || at_failed=:
8297 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:428"
8298 $at_failed && at_fn_log_failure
8299 $at_traceon; }
8300
8301 set +x
8302 $at_times_p && times >"$at_times_file"
8303 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8304 read at_status <"$at_status_file"
8305 #AT_STOP_120
8306 #AT_START_121
8307 at_fn_group_banner 121 'mhseq.at:446' \
8308 "mhseq: sparse increasing message range (both fixups in the middle)" "" 5
8309 at_xfail=no
8310 (
8311 printf "%s\n" "121. $at_setup_line: testing $at_desc ..."
8312 $at_traceon
8313
8314
8315
8316 test -d Mail || mkdir Mail
8317 HOME=`pwd`
8318 export HOME
8319 MH=$HOME/mh_profile
8320 export MH
8321 cat > $MH <<EOT
8322 Path: $HOME/Mail
8323 mhetcdir: $abs_top_srcdir/mh/etc
8324 moreproc: /bin/cat
8325 EOT
8326 MTSTAILOR=$HOME/mtstailor
8327 export MTSTAILOR
8328 exec <&-
8329
8330 { set +x
8331 printf "%s\n" "$at_srcdir/mhseq.at:446:
8332 cat >names <<'_ATEOF'
8333 1
8334 2
8335 8
8336 15
8337 20
8338 _ATEOF
8339
8340 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
8341
8342 # First, set all modes to 700
8343 find Mail/inbox | xargs chmod 700
8344 # Then, remove executable bit from regular files
8345 find Mail/inbox -type f | xargs chmod -x
8346
8347 mhseq 5-17
8348 "
8349 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:446"
8350 ( $at_check_trace;
8351 cat >names <<'_ATEOF'
8352 1
8353 2
8354 8
8355 15
8356 20
8357 _ATEOF
8358
8359 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
8360
8361 # First, set all modes to 700
8362 find Mail/inbox | xargs chmod 700
8363 # Then, remove executable bit from regular files
8364 find Mail/inbox -type f | xargs chmod -x
8365
8366 mhseq 5-17
8367
8368 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8369 at_status=$? at_failed=false
8370 $at_check_filter
8371 at_fn_diff_devnull "$at_stderr" || at_failed=:
8372 echo >>"$at_stdout"; printf "%s\n" "8
8373 15
8374 " | \
8375 $at_diff - "$at_stdout" || at_failed=:
8376 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:446"
8377 $at_failed && at_fn_log_failure
8378 $at_traceon; }
8379
8380 set +x
8381 $at_times_p && times >"$at_times_file"
8382 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8383 read at_status <"$at_status_file"
8384 #AT_STOP_121
8385 #AT_START_122
8386 at_fn_group_banner 122 'mhseq.at:464' \
8387 "mhseq: sparse decreasing message range (left fixup in the middle)" "" 5
8388 at_xfail=no
8389 (
8390 printf "%s\n" "122. $at_setup_line: testing $at_desc ..."
8391 $at_traceon
8392
8393
8394
8395 test -d Mail || mkdir Mail
8396 HOME=`pwd`
8397 export HOME
8398 MH=$HOME/mh_profile
8399 export MH
8400 cat > $MH <<EOT
8401 Path: $HOME/Mail
8402 mhetcdir: $abs_top_srcdir/mh/etc
8403 moreproc: /bin/cat
8404 EOT
8405 MTSTAILOR=$HOME/mtstailor
8406 export MTSTAILOR
8407 exec <&-
8408
8409 { set +x
8410 printf "%s\n" "$at_srcdir/mhseq.at:464:
8411 cat >names <<'_ATEOF'
8412 1
8413 2
8414 8
8415 15
8416 20
8417 _ATEOF
8418
8419 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
8420
8421 # First, set all modes to 700
8422 find Mail/inbox | xargs chmod 700
8423 # Then, remove executable bit from regular files
8424 find Mail/inbox -type f | xargs chmod -x
8425
8426 mhseq 15-5
8427 "
8428 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:464"
8429 ( $at_check_trace;
8430 cat >names <<'_ATEOF'
8431 1
8432 2
8433 8
8434 15
8435 20
8436 _ATEOF
8437
8438 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
8439
8440 # First, set all modes to 700
8441 find Mail/inbox | xargs chmod 700
8442 # Then, remove executable bit from regular files
8443 find Mail/inbox -type f | xargs chmod -x
8444
8445 mhseq 15-5
8446
8447 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8448 at_status=$? at_failed=false
8449 $at_check_filter
8450 at_fn_diff_devnull "$at_stderr" || at_failed=:
8451 echo >>"$at_stdout"; printf "%s\n" "8
8452 15
8453 " | \
8454 $at_diff - "$at_stdout" || at_failed=:
8455 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:464"
8456 $at_failed && at_fn_log_failure
8457 $at_traceon; }
8458
8459 set +x
8460 $at_times_p && times >"$at_times_file"
8461 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8462 read at_status <"$at_status_file"
8463 #AT_STOP_122
8464 #AT_START_123
8465 at_fn_group_banner 123 'mhseq.at:482' \
8466 "mhseq: sparse decreasing message range (right fixup in the middle)" "" 5
8467 at_xfail=no
8468 (
8469 printf "%s\n" "123. $at_setup_line: testing $at_desc ..."
8470 $at_traceon
8471
8472
8473
8474 test -d Mail || mkdir Mail
8475 HOME=`pwd`
8476 export HOME
8477 MH=$HOME/mh_profile
8478 export MH
8479 cat > $MH <<EOT
8480 Path: $HOME/Mail
8481 mhetcdir: $abs_top_srcdir/mh/etc
8482 moreproc: /bin/cat
8483 EOT
8484 MTSTAILOR=$HOME/mtstailor
8485 export MTSTAILOR
8486 exec <&-
8487
8488 { set +x
8489 printf "%s\n" "$at_srcdir/mhseq.at:482:
8490 cat >names <<'_ATEOF'
8491 1
8492 2
8493 8
8494 15
8495 20
8496 _ATEOF
8497
8498 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
8499
8500 # First, set all modes to 700
8501 find Mail/inbox | xargs chmod 700
8502 # Then, remove executable bit from regular files
8503 find Mail/inbox -type f | xargs chmod -x
8504
8505 mhseq 17-8
8506 "
8507 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:482"
8508 ( $at_check_trace;
8509 cat >names <<'_ATEOF'
8510 1
8511 2
8512 8
8513 15
8514 20
8515 _ATEOF
8516
8517 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
8518
8519 # First, set all modes to 700
8520 find Mail/inbox | xargs chmod 700
8521 # Then, remove executable bit from regular files
8522 find Mail/inbox -type f | xargs chmod -x
8523
8524 mhseq 17-8
8525
8526 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8527 at_status=$? at_failed=false
8528 $at_check_filter
8529 at_fn_diff_devnull "$at_stderr" || at_failed=:
8530 echo >>"$at_stdout"; printf "%s\n" "8
8531 15
8532 " | \
8533 $at_diff - "$at_stdout" || at_failed=:
8534 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:482"
8535 $at_failed && at_fn_log_failure
8536 $at_traceon; }
8537
8538 set +x
8539 $at_times_p && times >"$at_times_file"
8540 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8541 read at_status <"$at_status_file"
8542 #AT_STOP_123
8543 #AT_START_124
8544 at_fn_group_banner 124 'mhseq.at:500' \
8545 "mhseq: sparse decreasing message range (both fixups in the middle)" "" 5
8546 at_xfail=no
8547 (
8548 printf "%s\n" "124. $at_setup_line: testing $at_desc ..."
8549 $at_traceon
8550
8551
8552
8553 test -d Mail || mkdir Mail
8554 HOME=`pwd`
8555 export HOME
8556 MH=$HOME/mh_profile
8557 export MH
8558 cat > $MH <<EOT
8559 Path: $HOME/Mail
8560 mhetcdir: $abs_top_srcdir/mh/etc
8561 moreproc: /bin/cat
8562 EOT
8563 MTSTAILOR=$HOME/mtstailor
8564 export MTSTAILOR
8565 exec <&-
8566
8567 { set +x
8568 printf "%s\n" "$at_srcdir/mhseq.at:500:
8569 cat >names <<'_ATEOF'
8570 1
8571 2
8572 8
8573 15
8574 20
8575 _ATEOF
8576
8577 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
8578
8579 # First, set all modes to 700
8580 find Mail/inbox | xargs chmod 700
8581 # Then, remove executable bit from regular files
8582 find Mail/inbox -type f | xargs chmod -x
8583
8584 mhseq 17-5
8585 "
8586 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:500"
8587 ( $at_check_trace;
8588 cat >names <<'_ATEOF'
8589 1
8590 2
8591 8
8592 15
8593 20
8594 _ATEOF
8595
8596 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
8597
8598 # First, set all modes to 700
8599 find Mail/inbox | xargs chmod 700
8600 # Then, remove executable bit from regular files
8601 find Mail/inbox -type f | xargs chmod -x
8602
8603 mhseq 17-5
8604
8605 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8606 at_status=$? at_failed=false
8607 $at_check_filter
8608 at_fn_diff_devnull "$at_stderr" || at_failed=:
8609 echo >>"$at_stdout"; printf "%s\n" "8
8610 15
8611 " | \
8612 $at_diff - "$at_stdout" || at_failed=:
8613 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:500"
8614 $at_failed && at_fn_log_failure
8615 $at_traceon; }
8616
8617 set +x
8618 $at_times_p && times >"$at_times_file"
8619 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8620 read at_status <"$at_status_file"
8621 #AT_STOP_124
8622 #AT_START_125
8623 at_fn_group_banner 125 'mhseq.at:518' \
8624 "mhseq: sparse counted range (positive, fixup)" " " 5
8625 at_xfail=no
8626 (
8627 printf "%s\n" "125. $at_setup_line: testing $at_desc ..."
8628 $at_traceon
8629
8630
8631
8632 test -d Mail || mkdir Mail
8633 HOME=`pwd`
8634 export HOME
8635 MH=$HOME/mh_profile
8636 export MH
8637 cat > $MH <<EOT
8638 Path: $HOME/Mail
8639 mhetcdir: $abs_top_srcdir/mh/etc
8640 moreproc: /bin/cat
8641 EOT
8642 MTSTAILOR=$HOME/mtstailor
8643 export MTSTAILOR
8644 exec <&-
8645
8646 { set +x
8647 printf "%s\n" "$at_srcdir/mhseq.at:518:
8648 cat >names <<'_ATEOF'
8649 1
8650 2
8651 8
8652 15
8653 20
8654 _ATEOF
8655
8656 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
8657
8658 # First, set all modes to 700
8659 find Mail/inbox | xargs chmod 700
8660 # Then, remove executable bit from regular files
8661 find Mail/inbox -type f | xargs chmod -x
8662
8663 mhseq 3:2
8664 "
8665 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:518"
8666 ( $at_check_trace;
8667 cat >names <<'_ATEOF'
8668 1
8669 2
8670 8
8671 15
8672 20
8673 _ATEOF
8674
8675 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
8676
8677 # First, set all modes to 700
8678 find Mail/inbox | xargs chmod 700
8679 # Then, remove executable bit from regular files
8680 find Mail/inbox -type f | xargs chmod -x
8681
8682 mhseq 3:2
8683
8684 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8685 at_status=$? at_failed=false
8686 $at_check_filter
8687 at_fn_diff_devnull "$at_stderr" || at_failed=:
8688 echo >>"$at_stdout"; printf "%s\n" "8
8689 15
8690 " | \
8691 $at_diff - "$at_stdout" || at_failed=:
8692 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:518"
8693 $at_failed && at_fn_log_failure
8694 $at_traceon; }
8695
8696 set +x
8697 $at_times_p && times >"$at_times_file"
8698 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8699 read at_status <"$at_status_file"
8700 #AT_STOP_125
8701 #AT_START_126
8702 at_fn_group_banner 126 'mhseq.at:536' \
8703 "mhseq: sparse counted range (negative, fixup)" " " 5
8704 at_xfail=no
8705 (
8706 printf "%s\n" "126. $at_setup_line: testing $at_desc ..."
8707 $at_traceon
8708
8709
8710
8711 test -d Mail || mkdir Mail
8712 HOME=`pwd`
8713 export HOME
8714 MH=$HOME/mh_profile
8715 export MH
8716 cat > $MH <<EOT
8717 Path: $HOME/Mail
8718 mhetcdir: $abs_top_srcdir/mh/etc
8719 moreproc: /bin/cat
8720 EOT
8721 MTSTAILOR=$HOME/mtstailor
8722 export MTSTAILOR
8723 exec <&-
8724
8725 { set +x
8726 printf "%s\n" "$at_srcdir/mhseq.at:536:
8727 cat >names <<'_ATEOF'
8728 1
8729 2
8730 8
8731 15
8732 20
8733 _ATEOF
8734
8735 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
8736
8737 # First, set all modes to 700
8738 find Mail/inbox | xargs chmod 700
8739 # Then, remove executable bit from regular files
8740 find Mail/inbox -type f | xargs chmod -x
8741
8742 mhseq 17:-3
8743 "
8744 at_fn_check_prepare_notrace 'an embedded newline' "mhseq.at:536"
8745 ( $at_check_trace;
8746 cat >names <<'_ATEOF'
8747 1
8748 2
8749 8
8750 15
8751 20
8752 _ATEOF
8753
8754 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
8755
8756 # First, set all modes to 700
8757 find Mail/inbox | xargs chmod 700
8758 # Then, remove executable bit from regular files
8759 find Mail/inbox -type f | xargs chmod -x
8760
8761 mhseq 17:-3
8762
8763 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8764 at_status=$? at_failed=false
8765 $at_check_filter
8766 at_fn_diff_devnull "$at_stderr" || at_failed=:
8767 echo >>"$at_stdout"; printf "%s\n" "2
8768 8
8769 15
8770 " | \
8771 $at_diff - "$at_stdout" || at_failed=:
8772 at_fn_check_status 0 $at_status "$at_srcdir/mhseq.at:536"
8773 $at_failed && at_fn_log_failure
8774 $at_traceon; }
8775
8776 set +x
8777 $at_times_p && times >"$at_times_file"
8778 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8779 read at_status <"$at_status_file"
8780 #AT_STOP_126
8781 #AT_START_127
8782 at_fn_group_banner 127 'ali.at:20' \
8783 "ali: simple aliases" " " 6
8784 at_xfail=no
8785 (
8786 printf "%s\n" "127. $at_setup_line: testing $at_desc ..."
8787 $at_traceon
8788
8789
8790
8791 test -d Mail || mkdir Mail
8792 HOME=`pwd`
8793 export HOME
8794 MH=$HOME/mh_profile
8795 export MH
8796 cat > $MH <<EOT
8797 Path: $HOME/Mail
8798 mhetcdir: $abs_top_srcdir/mh/etc
8799 moreproc: /bin/cat
8800 EOT
8801 MTSTAILOR=$HOME/mtstailor
8802 export MTSTAILOR
8803 exec <&-
8804
8805 { set +x
8806 printf "%s\n" "$at_srcdir/ali.at:20:
8807 cat >mh_aliases <<'_ATEOF'
8808
8809 devel: gray, polak
8810 admin: gray, jeff
8811 _ATEOF
8812
8813 ali -a ./mh_aliases devel
8814 "
8815 at_fn_check_prepare_notrace 'an embedded newline' "ali.at:20"
8816 ( $at_check_trace;
8817 cat >mh_aliases <<'_ATEOF'
8818
8819 devel: gray, polak
8820 admin: gray, jeff
8821 _ATEOF
8822
8823 ali -a ./mh_aliases devel
8824
8825 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8826 at_status=$? at_failed=false
8827 $at_check_filter
8828 at_fn_diff_devnull "$at_stderr" || at_failed=:
8829 echo >>"$at_stdout"; printf "%s\n" "gray, polak
8830 " | \
8831 $at_diff - "$at_stdout" || at_failed=:
8832 at_fn_check_status 0 $at_status "$at_srcdir/ali.at:20"
8833 $at_failed && at_fn_log_failure
8834 $at_traceon; }
8835
8836 set +x
8837 $at_times_p && times >"$at_times_file"
8838 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8839 read at_status <"$at_status_file"
8840 #AT_STOP_127
8841 #AT_START_128
8842 at_fn_group_banner 128 'ali.at:31' \
8843 "ali: recursive aliases" " " 6
8844 at_xfail=no
8845 (
8846 printf "%s\n" "128. $at_setup_line: testing $at_desc ..."
8847 $at_traceon
8848
8849
8850
8851 test -d Mail || mkdir Mail
8852 HOME=`pwd`
8853 export HOME
8854 MH=$HOME/mh_profile
8855 export MH
8856 cat > $MH <<EOT
8857 Path: $HOME/Mail
8858 mhetcdir: $abs_top_srcdir/mh/etc
8859 moreproc: /bin/cat
8860 EOT
8861 MTSTAILOR=$HOME/mtstailor
8862 export MTSTAILOR
8863 exec <&-
8864
8865 { set +x
8866 printf "%s\n" "$at_srcdir/ali.at:31:
8867 cat >mh_aliases <<'_ATEOF'
8868
8869 devel: gray, polak, admin
8870 admin: gray, jeff
8871 _ATEOF
8872
8873 ali -a ./mh_aliases devel
8874 "
8875 at_fn_check_prepare_notrace 'an embedded newline' "ali.at:31"
8876 ( $at_check_trace;
8877 cat >mh_aliases <<'_ATEOF'
8878
8879 devel: gray, polak, admin
8880 admin: gray, jeff
8881 _ATEOF
8882
8883 ali -a ./mh_aliases devel
8884
8885 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8886 at_status=$? at_failed=false
8887 $at_check_filter
8888 at_fn_diff_devnull "$at_stderr" || at_failed=:
8889 echo >>"$at_stdout"; printf "%s\n" "gray, polak, gray, jeff
8890 " | \
8891 $at_diff - "$at_stdout" || at_failed=:
8892 at_fn_check_status 0 $at_status "$at_srcdir/ali.at:31"
8893 $at_failed && at_fn_log_failure
8894 $at_traceon; }
8895
8896 set +x
8897 $at_times_p && times >"$at_times_file"
8898 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8899 read at_status <"$at_status_file"
8900 #AT_STOP_128
8901 #AT_START_129
8902 at_fn_group_banner 129 'ali.at:42' \
8903 "ali: file inlcusion" " " 6
8904 at_xfail=no
8905 (
8906 printf "%s\n" "129. $at_setup_line: testing $at_desc ..."
8907 $at_traceon
8908
8909
8910
8911 test -d Mail || mkdir Mail
8912 HOME=`pwd`
8913 export HOME
8914 MH=$HOME/mh_profile
8915 export MH
8916 cat > $MH <<EOT
8917 Path: $HOME/Mail
8918 mhetcdir: $abs_top_srcdir/mh/etc
8919 moreproc: /bin/cat
8920 EOT
8921 MTSTAILOR=$HOME/mtstailor
8922 export MTSTAILOR
8923 exec <&-
8924
8925 { set +x
8926 printf "%s\n" "$at_srcdir/ali.at:42:
8927 cat >Mail/mh_aliases2 <<'_ATEOF'
8928
8929 admin: gray, jeff
8930 _ATEOF
8931
8932 cat >mh_aliases <<'_ATEOF'
8933
8934 devel: gray, polak, admin
8935 <mh_aliases2
8936 _ATEOF
8937
8938 ali -a ./mh_aliases devel
8939 "
8940 at_fn_check_prepare_notrace 'an embedded newline' "ali.at:42"
8941 ( $at_check_trace;
8942 cat >Mail/mh_aliases2 <<'_ATEOF'
8943
8944 admin: gray, jeff
8945 _ATEOF
8946
8947 cat >mh_aliases <<'_ATEOF'
8948
8949 devel: gray, polak, admin
8950 <mh_aliases2
8951 _ATEOF
8952
8953 ali -a ./mh_aliases devel
8954
8955 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8956 at_status=$? at_failed=false
8957 $at_check_filter
8958 at_fn_diff_devnull "$at_stderr" || at_failed=:
8959 echo >>"$at_stdout"; printf "%s\n" "gray, polak, gray, jeff
8960 " | \
8961 $at_diff - "$at_stdout" || at_failed=:
8962 at_fn_check_status 0 $at_status "$at_srcdir/ali.at:42"
8963 $at_failed && at_fn_log_failure
8964 $at_traceon; }
8965
8966 set +x
8967 $at_times_p && times >"$at_times_file"
8968 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8969 read at_status <"$at_status_file"
8970 #AT_STOP_129
8971 #AT_START_130
8972 at_fn_group_banner 130 'ali.at:56' \
8973 "ali: recursive inlcusion" " " 6
8974 at_xfail=no
8975 (
8976 printf "%s\n" "130. $at_setup_line: testing $at_desc ..."
8977 $at_traceon
8978
8979
8980
8981 test -d Mail || mkdir Mail
8982 HOME=`pwd`
8983 export HOME
8984 MH=$HOME/mh_profile
8985 export MH
8986 cat > $MH <<EOT
8987 Path: $HOME/Mail
8988 mhetcdir: $abs_top_srcdir/mh/etc
8989 moreproc: /bin/cat
8990 EOT
8991 MTSTAILOR=$HOME/mtstailor
8992 export MTSTAILOR
8993 exec <&-
8994
8995 { set +x
8996 printf "%s\n" "$at_srcdir/ali.at:56:
8997 cat >Mail/mh_aliases2 <<'_ATEOF'
8998
8999 <mh_aliases
9000 _ATEOF
9001
9002 cat >Mail/mh_aliases <<'_ATEOF'
9003
9004 devel: gray, polak, admin
9005 <mh_aliases2
9006 _ATEOF
9007
9008 ali -a ./Mail/mh_aliases devel 2>errout
9009 code=\$?
9010 dir=\`cd Mail;pwd\`
9011 sed \"s|\$dir/||g\" errout >&2
9012 exit \$code
9013 "
9014 at_fn_check_prepare_notrace 'a `...` command substitution' "ali.at:56"
9015 ( $at_check_trace;
9016 cat >Mail/mh_aliases2 <<'_ATEOF'
9017
9018 <mh_aliases
9019 _ATEOF
9020
9021 cat >Mail/mh_aliases <<'_ATEOF'
9022
9023 devel: gray, polak, admin
9024 <mh_aliases2
9025 _ATEOF
9026
9027 ali -a ./Mail/mh_aliases devel 2>errout
9028 code=$?
9029 dir=`cd Mail;pwd`
9030 sed "s|$dir/||g" errout >&2
9031 exit $code
9032
9033 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9034 at_status=$? at_failed=false
9035 $at_check_filter
9036 echo >>"$at_stderr"; printf "%s\n" "ali: mh_aliases2:2.1-11: recursive inclusion
9037 ali: mh_aliases2:2.1-11: \`mh_aliases' already included at top level
9038 " | \
9039 $at_diff - "$at_stderr" || at_failed=:
9040 echo >>"$at_stdout"; printf "%s\n" "gray, polak, admin
9041 " | \
9042 $at_diff - "$at_stdout" || at_failed=:
9043 at_fn_check_status 0 $at_status "$at_srcdir/ali.at:56"
9044 $at_failed && at_fn_log_failure
9045 $at_traceon; }
9046
9047 set +x
9048 $at_times_p && times >"$at_times_file"
9049 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9050 read at_status <"$at_status_file"
9051 #AT_STOP_130
9052 #AT_START_131
9053 at_fn_group_banner 131 'ali.at:77' \
9054 "ali: group name" " " 6
9055 at_xfail=no
9056 (
9057 printf "%s\n" "131. $at_setup_line: testing $at_desc ..."
9058 $at_traceon
9059
9060
9061
9062 test -d Mail || mkdir Mail
9063 HOME=`pwd`
9064 export HOME
9065 MH=$HOME/mh_profile
9066 export MH
9067 cat > $MH <<EOT
9068 Path: $HOME/Mail
9069 mhetcdir: $abs_top_srcdir/mh/etc
9070 moreproc: /bin/cat
9071 EOT
9072 MTSTAILOR=$HOME/mtstailor
9073 export MTSTAILOR
9074 exec <&-
9075
9076 { set +x
9077 printf "%s\n" "$at_srcdir/ali.at:77:
9078 cat /etc/group | awk -F : '/^#/ { next } \$4!=\"\" { print \$1; print \$4; exit 0 }' > tmpout
9079 test -s tmpout || exit 77
9080 sed -n '1s/.*/korzen: =&/p' tmpout > mh_aliases
9081 sed '1d' tmpout | tr -d ' ' > expout
9082 ali -a ./mh_aliases korzen | tr -d ' '
9083 "
9084 at_fn_check_prepare_notrace 'an embedded newline' "ali.at:77"
9085 ( $at_check_trace;
9086 cat /etc/group | awk -F : '/^#/ { next } $4!="" { print $1; print $4; exit 0 }' > tmpout
9087 test -s tmpout || exit 77
9088 sed -n '1s/.*/korzen: =&/p' tmpout > mh_aliases
9089 sed '1d' tmpout | tr -d ' ' > expout
9090 ali -a ./mh_aliases korzen | tr -d ' '
9091
9092 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9093 at_status=$? at_failed=false
9094 $at_check_filter
9095 at_fn_diff_devnull "$at_stderr" || at_failed=:
9096 $at_diff expout "$at_stdout" || at_failed=:
9097 at_fn_check_status 0 $at_status "$at_srcdir/ali.at:77"
9098 $at_failed && at_fn_log_failure
9099 $at_traceon; }
9100
9101 set +x
9102 $at_times_p && times >"$at_times_file"
9103 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9104 read at_status <"$at_status_file"
9105 #AT_STOP_131
9106 #AT_START_132
9107 at_fn_group_banner 132 'ali.at:87' \
9108 "ali: group id" " " 6
9109 at_xfail=no
9110 (
9111 printf "%s\n" "132. $at_setup_line: testing $at_desc ..."
9112 $at_traceon
9113
9114
9115
9116 test -d Mail || mkdir Mail
9117 HOME=`pwd`
9118 export HOME
9119 MH=$HOME/mh_profile
9120 export MH
9121 cat > $MH <<EOT
9122 Path: $HOME/Mail
9123 mhetcdir: $abs_top_srcdir/mh/etc
9124 moreproc: /bin/cat
9125 EOT
9126 MTSTAILOR=$HOME/mtstailor
9127 export MTSTAILOR
9128 exec <&-
9129
9130 { set +x
9131 printf "%s\n" "$at_srcdir/ali.at:87:
9132 awk -F : '/^#/ { next } \$4==0 { print \$1 } /etc/passwd' > expout
9133 test -s expout || exit 77
9134 name=\`awk -F : '/^#/ { next } \$3==0 { print \$1 }' /etc/group\`
9135 test -z \"\$name\" && exit 77
9136
9137 echo \"korzen: +\$name\" > mh_aliases
9138 # FIXME: Do I need to sort the output?
9139 ali -list -a ./mh_aliases korzen
9140 "
9141 at_fn_check_prepare_notrace 'a `...` command substitution' "ali.at:87"
9142 ( $at_check_trace;
9143 awk -F : '/^#/ { next } $4==0 { print $1 } /etc/passwd' > expout
9144 test -s expout || exit 77
9145 name=`awk -F : '/^#/ { next } $3==0 { print $1 }' /etc/group`
9146 test -z "$name" && exit 77
9147
9148 echo "korzen: +$name" > mh_aliases
9149 # FIXME: Do I need to sort the output?
9150 ali -list -a ./mh_aliases korzen
9151
9152 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9153 at_status=$? at_failed=false
9154 $at_check_filter
9155 at_fn_diff_devnull "$at_stderr" || at_failed=:
9156 $at_diff expout "$at_stdout" || at_failed=:
9157 at_fn_check_status 0 $at_status "$at_srcdir/ali.at:87"
9158 $at_failed && at_fn_log_failure
9159 $at_traceon; }
9160
9161 set +x
9162 $at_times_p && times >"$at_times_file"
9163 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9164 read at_status <"$at_status_file"
9165 #AT_STOP_132
9166 #AT_START_133
9167 at_fn_group_banner 133 'ali.at:100' \
9168 "ali: everybody" " " 6
9169 at_xfail=no
9170 (
9171 printf "%s\n" "133. $at_setup_line: testing $at_desc ..."
9172 $at_traceon
9173
9174
9175
9176 test -d Mail || mkdir Mail
9177 HOME=`pwd`
9178 export HOME
9179 MH=$HOME/mh_profile
9180 export MH
9181 cat > $MH <<EOT
9182 Path: $HOME/Mail
9183 mhetcdir: $abs_top_srcdir/mh/etc
9184 moreproc: /bin/cat
9185 EOT
9186 MTSTAILOR=$HOME/mtstailor
9187 export MTSTAILOR
9188 exec <&-
9189
9190 { set +x
9191 printf "%s\n" "$at_srcdir/ali.at:100:
9192 lu 200 > expout
9193 test -s expout || exit 77
9194 cat >mh_aliases <<'_ATEOF'
9195
9196 everybody: *
9197 _ATEOF
9198
9199 ali -list -a ./mh_aliases everybody
9200 "
9201 at_fn_check_prepare_notrace 'an embedded newline' "ali.at:100"
9202 ( $at_check_trace;
9203 lu 200 > expout
9204 test -s expout || exit 77
9205 cat >mh_aliases <<'_ATEOF'
9206
9207 everybody: *
9208 _ATEOF
9209
9210 ali -list -a ./mh_aliases everybody
9211
9212 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9213 at_status=$? at_failed=false
9214 $at_check_filter
9215 at_fn_diff_devnull "$at_stderr" || at_failed=:
9216 $at_diff expout "$at_stdout" || at_failed=:
9217 at_fn_check_status 0 $at_status "$at_srcdir/ali.at:100"
9218 $at_failed && at_fn_log_failure
9219 $at_traceon; }
9220
9221 set +x
9222 $at_times_p && times >"$at_times_file"
9223 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9224 read at_status <"$at_status_file"
9225 #AT_STOP_133
9226 #AT_START_134
9227 at_fn_group_banner 134 'ali.at:111' \
9228 "ali: executable file inlcusion" " " 6
9229 at_xfail=no
9230 (
9231 printf "%s\n" "134. $at_setup_line: testing $at_desc ..."
9232 $at_traceon
9233
9234
9235
9236 test -d Mail || mkdir Mail
9237 HOME=`pwd`
9238 export HOME
9239 MH=$HOME/mh_profile
9240 export MH
9241 cat > $MH <<EOT
9242 Path: $HOME/Mail
9243 mhetcdir: $abs_top_srcdir/mh/etc
9244 moreproc: /bin/cat
9245 EOT
9246 MTSTAILOR=$HOME/mtstailor
9247 export MTSTAILOR
9248 exec <&-
9249
9250 { set +x
9251 printf "%s\n" "$at_srcdir/ali.at:111:
9252 cat >Mail/ali.sh <<'_ATEOF'
9253 #! /bin/sh
9254 echo \"admin: gray, jeff\"
9255 _ATEOF
9256
9257 chmod +x Mail/ali.sh
9258 cat >mh_aliases <<'_ATEOF'
9259
9260 devel: gray, polak, admin
9261 <ali.sh
9262 _ATEOF
9263
9264 ali -a ./mh_aliases devel
9265 "
9266 at_fn_check_prepare_notrace 'an embedded newline' "ali.at:111"
9267 ( $at_check_trace;
9268 cat >Mail/ali.sh <<'_ATEOF'
9269 #! /bin/sh
9270 echo "admin: gray, jeff"
9271 _ATEOF
9272
9273 chmod +x Mail/ali.sh
9274 cat >mh_aliases <<'_ATEOF'
9275
9276 devel: gray, polak, admin
9277 <ali.sh
9278 _ATEOF
9279
9280 ali -a ./mh_aliases devel
9281
9282 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9283 at_status=$? at_failed=false
9284 $at_check_filter
9285 at_fn_diff_devnull "$at_stderr" || at_failed=:
9286 echo >>"$at_stdout"; printf "%s\n" "gray, polak, gray, jeff
9287 " | \
9288 $at_diff - "$at_stdout" || at_failed=:
9289 at_fn_check_status 0 $at_status "$at_srcdir/ali.at:111"
9290 $at_failed && at_fn_log_failure
9291 $at_traceon; }
9292
9293 set +x
9294 $at_times_p && times >"$at_times_file"
9295 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9296 read at_status <"$at_status_file"
9297 #AT_STOP_134
9298 #AT_START_135
9299 at_fn_group_banner 135 'folder.at:20' \
9300 "folder" " " 7
9301 at_xfail=no
9302 (
9303 printf "%s\n" "135. $at_setup_line: testing $at_desc ..."
9304 $at_traceon
9305
9306
9307
9308 test -d Mail || mkdir Mail
9309 HOME=`pwd`
9310 export HOME
9311 MH=$HOME/mh_profile
9312 export MH
9313 cat > $MH <<EOT
9314 Path: $HOME/Mail
9315 mhetcdir: $abs_top_srcdir/mh/etc
9316 moreproc: /bin/cat
9317 EOT
9318 MTSTAILOR=$HOME/mtstailor
9319 export MTSTAILOR
9320 exec <&-
9321
9322 { set +x
9323 printf "%s\n" "$at_srcdir/folder.at:20:
9324 mbox2dir -m Mail/inbox \$spooldir/mbox1
9325 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
9326 echo 'Current-Folder: inbox' > Mail/context
9327 folder
9328 "
9329 at_fn_check_prepare_notrace 'an embedded newline' "folder.at:20"
9330 ( $at_check_trace;
9331 mbox2dir -m Mail/inbox $spooldir/mbox1
9332 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
9333 echo 'Current-Folder: inbox' > Mail/context
9334 folder
9335
9336 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9337 at_status=$? at_failed=false
9338 $at_check_filter
9339 at_fn_diff_devnull "$at_stderr" || at_failed=:
9340 echo >>"$at_stdout"; printf "%s\n" " inbox+ has 5 messages ( 1- 5).
9341 " | \
9342 $at_diff - "$at_stdout" || at_failed=:
9343 at_fn_check_status 0 $at_status "$at_srcdir/folder.at:20"
9344 $at_failed && at_fn_log_failure
9345 $at_traceon; }
9346
9347 set +x
9348 $at_times_p && times >"$at_times_file"
9349 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9350 read at_status <"$at_status_file"
9351 #AT_STOP_135
9352 #AT_START_136
9353 at_fn_group_banner 136 'folder.at:30' \
9354 "folder -all" " " 7
9355 at_xfail=no
9356 (
9357 printf "%s\n" "136. $at_setup_line: testing $at_desc ..."
9358 $at_traceon
9359
9360
9361
9362 test -d Mail || mkdir Mail
9363 HOME=`pwd`
9364 export HOME
9365 MH=$HOME/mh_profile
9366 export MH
9367 cat > $MH <<EOT
9368 Path: $HOME/Mail
9369 mhetcdir: $abs_top_srcdir/mh/etc
9370 moreproc: /bin/cat
9371 EOT
9372 MTSTAILOR=$HOME/mtstailor
9373 export MTSTAILOR
9374 exec <&-
9375
9376 { set +x
9377 printf "%s\n" "$at_srcdir/folder.at:30:
9378 mbox2dir -m Mail/inbox \$spooldir/mbox1
9379 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
9380 echo 'Current-Folder: inbox' > Mail/context
9381 folder -all
9382 "
9383 at_fn_check_prepare_notrace 'an embedded newline' "folder.at:30"
9384 ( $at_check_trace;
9385 mbox2dir -m Mail/inbox $spooldir/mbox1
9386 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
9387 echo 'Current-Folder: inbox' > Mail/context
9388 folder -all
9389
9390 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9391 at_status=$? at_failed=false
9392 $at_check_filter
9393 at_fn_diff_devnull "$at_stderr" || at_failed=:
9394 echo >>"$at_stdout"; printf "%s\n" "Folder # of messages ( range ) cur msg (other files)
9395 inbox+ has 5 messages ( 1- 5).
9396 teaparty has 95 messages ( 1- 95).
9397
9398 TOTAL= 100 messages in 2 folders
9399 " | \
9400 $at_diff - "$at_stdout" || at_failed=:
9401 at_fn_check_status 0 $at_status "$at_srcdir/folder.at:30"
9402 $at_failed && at_fn_log_failure
9403 $at_traceon; }
9404
9405 set +x
9406 $at_times_p && times >"$at_times_file"
9407 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9408 read at_status <"$at_status_file"
9409 #AT_STOP_136
9410 #AT_START_137
9411 at_fn_group_banner 137 'folder.at:45' \
9412 "folder -all -fast" " " 7
9413 at_xfail=no
9414 (
9415 printf "%s\n" "137. $at_setup_line: testing $at_desc ..."
9416 $at_traceon
9417
9418
9419
9420 test -d Mail || mkdir Mail
9421 HOME=`pwd`
9422 export HOME
9423 MH=$HOME/mh_profile
9424 export MH
9425 cat > $MH <<EOT
9426 Path: $HOME/Mail
9427 mhetcdir: $abs_top_srcdir/mh/etc
9428 moreproc: /bin/cat
9429 EOT
9430 MTSTAILOR=$HOME/mtstailor
9431 export MTSTAILOR
9432 exec <&-
9433
9434 { set +x
9435 printf "%s\n" "$at_srcdir/folder.at:45:
9436 mbox2dir -m Mail/inbox \$spooldir/mbox1
9437 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
9438 echo 'Current-Folder: inbox' > Mail/context
9439 folder -all -fast
9440 "
9441 at_fn_check_prepare_notrace 'an embedded newline' "folder.at:45"
9442 ( $at_check_trace;
9443 mbox2dir -m Mail/inbox $spooldir/mbox1
9444 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
9445 echo 'Current-Folder: inbox' > Mail/context
9446 folder -all -fast
9447
9448 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9449 at_status=$? at_failed=false
9450 $at_check_filter
9451 at_fn_diff_devnull "$at_stderr" || at_failed=:
9452 echo >>"$at_stdout"; printf "%s\n" "inbox
9453 teaparty
9454 " | \
9455 $at_diff - "$at_stdout" || at_failed=:
9456 at_fn_check_status 0 $at_status "$at_srcdir/folder.at:45"
9457 $at_failed && at_fn_log_failure
9458 $at_traceon; }
9459
9460 set +x
9461 $at_times_p && times >"$at_times_file"
9462 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9463 read at_status <"$at_status_file"
9464 #AT_STOP_137
9465 #AT_START_138
9466 at_fn_group_banner 138 'folder.at:56' \
9467 "folder +mbox" " " 7
9468 at_xfail=no
9469 (
9470 printf "%s\n" "138. $at_setup_line: testing $at_desc ..."
9471 $at_traceon
9472
9473
9474
9475 test -d Mail || mkdir Mail
9476 HOME=`pwd`
9477 export HOME
9478 MH=$HOME/mh_profile
9479 export MH
9480 cat > $MH <<EOT
9481 Path: $HOME/Mail
9482 mhetcdir: $abs_top_srcdir/mh/etc
9483 moreproc: /bin/cat
9484 EOT
9485 MTSTAILOR=$HOME/mtstailor
9486 export MTSTAILOR
9487 exec <&-
9488
9489 { set +x
9490 printf "%s\n" "$at_srcdir/folder.at:56:
9491 mbox2dir -m Mail/inbox \$spooldir/mbox1
9492 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
9493 echo 'Current-Folder: inbox' > Mail/context
9494 folder +teaparty
9495 sed -n 's/^\\(Current-Folder\\): *\\(.*\\)/\\1: \\2/p' Mail/context
9496 "
9497 at_fn_check_prepare_notrace 'an embedded newline' "folder.at:56"
9498 ( $at_check_trace;
9499 mbox2dir -m Mail/inbox $spooldir/mbox1
9500 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
9501 echo 'Current-Folder: inbox' > Mail/context
9502 folder +teaparty
9503 sed -n 's/^\(Current-Folder\): *\(.*\)/\1: \2/p' Mail/context
9504
9505 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9506 at_status=$? at_failed=false
9507 $at_check_filter
9508 at_fn_diff_devnull "$at_stderr" || at_failed=:
9509 echo >>"$at_stdout"; printf "%s\n" " teaparty+ has 95 messages ( 1- 95).
9510 Current-Folder: teaparty
9511 " | \
9512 $at_diff - "$at_stdout" || at_failed=:
9513 at_fn_check_status 0 $at_status "$at_srcdir/folder.at:56"
9514 $at_failed && at_fn_log_failure
9515 $at_traceon; }
9516
9517 set +x
9518 $at_times_p && times >"$at_times_file"
9519 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9520 read at_status <"$at_status_file"
9521 #AT_STOP_138
9522 #AT_START_139
9523 at_fn_group_banner 139 'folder.at:69' \
9524 "folder +mbox msg" " " 7
9525 at_xfail=no
9526 (
9527 printf "%s\n" "139. $at_setup_line: testing $at_desc ..."
9528 $at_traceon
9529
9530
9531
9532 test -d Mail || mkdir Mail
9533 HOME=`pwd`
9534 export HOME
9535 MH=$HOME/mh_profile
9536 export MH
9537 cat > $MH <<EOT
9538 Path: $HOME/Mail
9539 mhetcdir: $abs_top_srcdir/mh/etc
9540 moreproc: /bin/cat
9541 EOT
9542 MTSTAILOR=$HOME/mtstailor
9543 export MTSTAILOR
9544 exec <&-
9545
9546 { set +x
9547 printf "%s\n" "$at_srcdir/folder.at:69:
9548 mbox2dir -m Mail/inbox \$spooldir/mbox1
9549 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
9550 echo 'Current-Folder: inbox' > Mail/context
9551 folder +teaparty 35
9552 sed -n 's/^\\(Current-Folder\\): *\\(.*\\)/context: \\1: \\2/p' Mail/context
9553 sed -n 's/^\\(cur\\): *\\(.*\\)/mh_sequences: \\1: \\2/p' Mail/teaparty/.mh_sequences
9554 "
9555 at_fn_check_prepare_notrace 'an embedded newline' "folder.at:69"
9556 ( $at_check_trace;
9557 mbox2dir -m Mail/inbox $spooldir/mbox1
9558 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
9559 echo 'Current-Folder: inbox' > Mail/context
9560 folder +teaparty 35
9561 sed -n 's/^\(Current-Folder\): *\(.*\)/context: \1: \2/p' Mail/context
9562 sed -n 's/^\(cur\): *\(.*\)/mh_sequences: \1: \2/p' Mail/teaparty/.mh_sequences
9563
9564 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9565 at_status=$? at_failed=false
9566 $at_check_filter
9567 at_fn_diff_devnull "$at_stderr" || at_failed=:
9568 echo >>"$at_stdout"; printf "%s\n" " teaparty+ has 95 messages ( 1- 95); cur= 35.
9569 context: Current-Folder: teaparty
9570 mh_sequences: cur: 35
9571 " | \
9572 $at_diff - "$at_stdout" || at_failed=:
9573 at_fn_check_status 0 $at_status "$at_srcdir/folder.at:69"
9574 $at_failed && at_fn_log_failure
9575 $at_traceon; }
9576
9577 set +x
9578 $at_times_p && times >"$at_times_file"
9579 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9580 read at_status <"$at_status_file"
9581 #AT_STOP_139
9582 #AT_START_140
9583 at_fn_group_banner 140 'folder.at:84' \
9584 "folder -pack" " " 7
9585 at_xfail=no
9586 (
9587 printf "%s\n" "140. $at_setup_line: testing $at_desc ..."
9588 $at_traceon
9589
9590
9591
9592 test -d Mail || mkdir Mail
9593 HOME=`pwd`
9594 export HOME
9595 MH=$HOME/mh_profile
9596 export MH
9597 cat > $MH <<EOT
9598 Path: $HOME/Mail
9599 mhetcdir: $abs_top_srcdir/mh/etc
9600 moreproc: /bin/cat
9601 EOT
9602 MTSTAILOR=$HOME/mtstailor
9603 export MTSTAILOR
9604 exec <&-
9605
9606 { set +x
9607 printf "%s\n" "$at_srcdir/folder.at:84:
9608 cat >names <<'_ATEOF'
9609 1
9610 20
9611 30
9612 40
9613 50
9614 _ATEOF
9615
9616 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
9617 folder -pack || exit \$?
9618 find Mail/inbox -not -name '.mu-prop' | sort
9619 "
9620 at_fn_check_prepare_notrace 'an embedded newline' "folder.at:84"
9621 ( $at_check_trace;
9622 cat >names <<'_ATEOF'
9623 1
9624 20
9625 30
9626 40
9627 50
9628 _ATEOF
9629
9630 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
9631 folder -pack || exit $?
9632 find Mail/inbox -not -name '.mu-prop' | sort
9633
9634 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9635 at_status=$? at_failed=false
9636 $at_check_filter
9637 at_fn_diff_devnull "$at_stderr" || at_failed=:
9638 echo >>"$at_stdout"; printf "%s\n" "Mail/inbox
9639 Mail/inbox/1
9640 Mail/inbox/2
9641 Mail/inbox/3
9642 Mail/inbox/4
9643 Mail/inbox/5
9644 " | \
9645 $at_diff - "$at_stdout" || at_failed=:
9646 at_fn_check_status 0 $at_status "$at_srcdir/folder.at:84"
9647 $at_failed && at_fn_log_failure
9648 $at_traceon; }
9649
9650 set +x
9651 $at_times_p && times >"$at_times_file"
9652 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9653 read at_status <"$at_status_file"
9654 #AT_STOP_140
9655 #AT_START_141
9656 at_fn_group_banner 141 'folder.at:105' \
9657 "folder -pack=N" " " 7
9658 at_xfail=no
9659 (
9660 printf "%s\n" "141. $at_setup_line: testing $at_desc ..."
9661 $at_traceon
9662
9663
9664
9665 test -d Mail || mkdir Mail
9666 HOME=`pwd`
9667 export HOME
9668 MH=$HOME/mh_profile
9669 export MH
9670 cat > $MH <<EOT
9671 Path: $HOME/Mail
9672 mhetcdir: $abs_top_srcdir/mh/etc
9673 moreproc: /bin/cat
9674 EOT
9675 MTSTAILOR=$HOME/mtstailor
9676 export MTSTAILOR
9677 exec <&-
9678
9679 { set +x
9680 printf "%s\n" "$at_srcdir/folder.at:105:
9681 cat >names <<'_ATEOF'
9682 10
9683 20
9684 30
9685 40
9686 50
9687 _ATEOF
9688
9689 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
9690 folder -pack=1 || exit \$?
9691 find Mail/inbox -not -name '.mu-prop' | sort
9692 "
9693 at_fn_check_prepare_notrace 'an embedded newline' "folder.at:105"
9694 ( $at_check_trace;
9695 cat >names <<'_ATEOF'
9696 10
9697 20
9698 30
9699 40
9700 50
9701 _ATEOF
9702
9703 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
9704 folder -pack=1 || exit $?
9705 find Mail/inbox -not -name '.mu-prop' | sort
9706
9707 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9708 at_status=$? at_failed=false
9709 $at_check_filter
9710 at_fn_diff_devnull "$at_stderr" || at_failed=:
9711 echo >>"$at_stdout"; printf "%s\n" "Mail/inbox
9712 Mail/inbox/1
9713 Mail/inbox/2
9714 Mail/inbox/3
9715 Mail/inbox/4
9716 Mail/inbox/5
9717 " | \
9718 $at_diff - "$at_stdout" || at_failed=:
9719 at_fn_check_status 0 $at_status "$at_srcdir/folder.at:105"
9720 $at_failed && at_fn_log_failure
9721 $at_traceon; }
9722
9723 set +x
9724 $at_times_p && times >"$at_times_file"
9725 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9726 read at_status <"$at_status_file"
9727 #AT_STOP_141
9728 #AT_START_142
9729 at_fn_group_banner 142 'folder.at:126' \
9730 "folder -push/-pop" " " 7
9731 at_xfail=no
9732 (
9733 printf "%s\n" "142. $at_setup_line: testing $at_desc ..."
9734 $at_traceon
9735
9736
9737
9738 test -d Mail || mkdir Mail
9739 HOME=`pwd`
9740 export HOME
9741 MH=$HOME/mh_profile
9742 export MH
9743 cat > $MH <<EOT
9744 Path: $HOME/Mail
9745 mhetcdir: $abs_top_srcdir/mh/etc
9746 moreproc: /bin/cat
9747 EOT
9748 MTSTAILOR=$HOME/mtstailor
9749 export MTSTAILOR
9750 exec <&-
9751
9752 { set +x
9753 printf "%s\n" "$at_srcdir/folder.at:126:
9754 mbox2dir -m Mail/inbox \$spooldir/mbox1
9755 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
9756 folder -push +teaparty
9757 folder -pop
9758 folder -push +teaparty
9759 folder -push
9760 folder -pop
9761 "
9762 at_fn_check_prepare_notrace 'an embedded newline' "folder.at:126"
9763 ( $at_check_trace;
9764 mbox2dir -m Mail/inbox $spooldir/mbox1
9765 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
9766 folder -push +teaparty
9767 folder -pop
9768 folder -push +teaparty
9769 folder -push
9770 folder -pop
9771
9772 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9773 at_status=$? at_failed=false
9774 $at_check_filter
9775 at_fn_diff_devnull "$at_stderr" || at_failed=:
9776 echo >>"$at_stdout"; printf "%s\n" "teaparty inbox
9777 inbox
9778 teaparty inbox
9779 inbox teaparty
9780 teaparty
9781 " | \
9782 $at_diff - "$at_stdout" || at_failed=:
9783 at_fn_check_status 0 $at_status "$at_srcdir/folder.at:126"
9784 $at_failed && at_fn_log_failure
9785 $at_traceon; }
9786
9787 set +x
9788 $at_times_p && times >"$at_times_file"
9789 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9790 read at_status <"$at_status_file"
9791 #AT_STOP_142
9792 #AT_START_143
9793 at_fn_group_banner 143 'folder.at:144' \
9794 "folder -create" " " 7
9795 at_xfail=no
9796 (
9797 printf "%s\n" "143. $at_setup_line: testing $at_desc ..."
9798 $at_traceon
9799
9800
9801
9802 test -d Mail || mkdir Mail
9803 HOME=`pwd`
9804 export HOME
9805 MH=$HOME/mh_profile
9806 export MH
9807 cat > $MH <<EOT
9808 Path: $HOME/Mail
9809 mhetcdir: $abs_top_srcdir/mh/etc
9810 moreproc: /bin/cat
9811 EOT
9812 MTSTAILOR=$HOME/mtstailor
9813 export MTSTAILOR
9814 exec <&-
9815
9816 { set +x
9817 printf "%s\n" "$at_srcdir/folder.at:144:
9818 folder -create +new
9819 "
9820 at_fn_check_prepare_notrace 'an embedded newline' "folder.at:144"
9821 ( $at_check_trace;
9822 folder -create +new
9823
9824 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9825 at_status=$? at_failed=false
9826 $at_check_filter
9827 at_fn_diff_devnull "$at_stderr" || at_failed=:
9828 echo >>"$at_stdout"; printf "%s\n" " new+ has no messages.
9829 " | \
9830 $at_diff - "$at_stdout" || at_failed=:
9831 at_fn_check_status 0 $at_status "$at_srcdir/folder.at:144"
9832 $at_failed && at_fn_log_failure
9833 $at_traceon; }
9834
9835 set +x
9836 $at_times_p && times >"$at_times_file"
9837 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9838 read at_status <"$at_status_file"
9839 #AT_STOP_143
9840 #AT_START_144
9841 at_fn_group_banner 144 'inc.at:20' \
9842 "inc -notruncate" " " 8
9843 at_xfail=no
9844 (
9845 printf "%s\n" "144. $at_setup_line: testing $at_desc ..."
9846 $at_traceon
9847
9848
9849
9850 test -d Mail || mkdir Mail
9851 HOME=`pwd`
9852 export HOME
9853 MH=$HOME/mh_profile
9854 export MH
9855 cat > $MH <<EOT
9856 Path: $HOME/Mail
9857 mhetcdir: $abs_top_srcdir/mh/etc
9858 moreproc: /bin/cat
9859 EOT
9860 MTSTAILOR=$HOME/mtstailor
9861 export MTSTAILOR
9862 exec <&-
9863
9864 { set +x
9865 printf "%s\n" "$at_srcdir/inc.at:20:
9866
9867
9868
9869
9870 cp -r \$abs_top_srcdir/testsuite/spool/mbox1 .
9871 if test -e ./mbox1; then
9872
9873 # First, set all modes to +w
9874 find ./mbox1 | xargs chmod +w
9875 # Then, remove executable bit from regular files
9876 find ./mbox1 -type f | xargs chmod -x
9877
9878 else
9879
9880 # First, set all modes to +w
9881 find . | xargs chmod +w
9882 # Then, remove executable bit from regular files
9883 find . -type f | xargs chmod -x
9884
9885 fi
9886
9887
9888
9889 inc -notruncate -file ./mbox1 | sed 's/ *\$//'
9890 cmp \$abs_top_srcdir/testsuite/spool/mbox1 mbox1
9891 "
9892 at_fn_check_prepare_notrace 'an embedded newline' "inc.at:20"
9893 ( $at_check_trace;
9894
9895
9896
9897
9898 cp -r $abs_top_srcdir/testsuite/spool/mbox1 .
9899 if test -e ./mbox1; then
9900
9901 # First, set all modes to +w
9902 find ./mbox1 | xargs chmod +w
9903 # Then, remove executable bit from regular files
9904 find ./mbox1 -type f | xargs chmod -x
9905
9906 else
9907
9908 # First, set all modes to +w
9909 find . | xargs chmod +w
9910 # Then, remove executable bit from regular files
9911 find . -type f | xargs chmod -x
9912
9913 fi
9914
9915
9916
9917 inc -notruncate -file ./mbox1 | sed 's/ *$//'
9918 cmp $abs_top_srcdir/testsuite/spool/mbox1 mbox1
9919
9920 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9921 at_status=$? at_failed=false
9922 $at_check_filter
9923 at_fn_diff_devnull "$at_stderr" || at_failed=:
9924 echo >>"$at_stdout"; printf "%s\n" " 1+ 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
9925 2 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
9926 3 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
9927 4 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
9928 5 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
9929 " | \
9930 $at_diff - "$at_stdout" || at_failed=:
9931 at_fn_check_status 0 $at_status "$at_srcdir/inc.at:20"
9932 $at_failed && at_fn_log_failure
9933 $at_traceon; }
9934
9935 set +x
9936 $at_times_p && times >"$at_times_file"
9937 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9938 read at_status <"$at_status_file"
9939 #AT_STOP_144
9940 #AT_START_145
9941 at_fn_group_banner 145 'inc.at:33' \
9942 "inc -truncate" " " 8
9943 at_xfail=no
9944 (
9945 printf "%s\n" "145. $at_setup_line: testing $at_desc ..."
9946 $at_traceon
9947
9948
9949
9950 test -d Mail || mkdir Mail
9951 HOME=`pwd`
9952 export HOME
9953 MH=$HOME/mh_profile
9954 export MH
9955 cat > $MH <<EOT
9956 Path: $HOME/Mail
9957 mhetcdir: $abs_top_srcdir/mh/etc
9958 moreproc: /bin/cat
9959 EOT
9960 MTSTAILOR=$HOME/mtstailor
9961 export MTSTAILOR
9962 exec <&-
9963
9964 { set +x
9965 printf "%s\n" "$at_srcdir/inc.at:33:
9966
9967
9968
9969
9970 cp -r \$abs_top_srcdir/testsuite/spool/mbox1 .
9971 if test -e ./mbox1; then
9972
9973 # First, set all modes to +w
9974 find ./mbox1 | xargs chmod +w
9975 # Then, remove executable bit from regular files
9976 find ./mbox1 -type f | xargs chmod -x
9977
9978 else
9979
9980 # First, set all modes to +w
9981 find . | xargs chmod +w
9982 # Then, remove executable bit from regular files
9983 find . -type f | xargs chmod -x
9984
9985 fi
9986
9987
9988
9989 inc -truncate -file ./mbox1 | sed 's/ *\$//'
9990 echo \"Next\"
9991 inc -truncate -file ./mbox1 | sed 's/ *\$//'
9992 "
9993 at_fn_check_prepare_notrace 'an embedded newline' "inc.at:33"
9994 ( $at_check_trace;
9995
9996
9997
9998
9999 cp -r $abs_top_srcdir/testsuite/spool/mbox1 .
10000 if test -e ./mbox1; then
10001
10002 # First, set all modes to +w
10003 find ./mbox1 | xargs chmod +w
10004 # Then, remove executable bit from regular files
10005 find ./mbox1 -type f | xargs chmod -x
10006
10007 else
10008
10009 # First, set all modes to +w
10010 find . | xargs chmod +w
10011 # Then, remove executable bit from regular files
10012 find . -type f | xargs chmod -x
10013
10014 fi
10015
10016
10017
10018 inc -truncate -file ./mbox1 | sed 's/ *$//'
10019 echo "Next"
10020 inc -truncate -file ./mbox1 | sed 's/ *$//'
10021
10022 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10023 at_status=$? at_failed=false
10024 $at_check_filter
10025 at_fn_diff_devnull "$at_stderr" || at_failed=:
10026 echo >>"$at_stdout"; printf "%s\n" " 1+ 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10027 2 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10028 3 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10029 4 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10030 5 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10031 Next
10032 " | \
10033 $at_diff - "$at_stdout" || at_failed=:
10034 at_fn_check_status 0 $at_status "$at_srcdir/inc.at:33"
10035 $at_failed && at_fn_log_failure
10036 $at_traceon; }
10037
10038 set +x
10039 $at_times_p && times >"$at_times_file"
10040 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10041 read at_status <"$at_status_file"
10042 #AT_STOP_145
10043 #AT_START_146
10044 at_fn_group_banner 146 'inc.at:48' \
10045 "inc -folder" " " 8
10046 at_xfail=no
10047 (
10048 printf "%s\n" "146. $at_setup_line: testing $at_desc ..."
10049 $at_traceon
10050
10051
10052
10053 test -d Mail || mkdir Mail
10054 HOME=`pwd`
10055 export HOME
10056 MH=$HOME/mh_profile
10057 export MH
10058 cat > $MH <<EOT
10059 Path: $HOME/Mail
10060 mhetcdir: $abs_top_srcdir/mh/etc
10061 moreproc: /bin/cat
10062 EOT
10063 MTSTAILOR=$HOME/mtstailor
10064 export MTSTAILOR
10065 exec <&-
10066
10067 { set +x
10068 printf "%s\n" "$at_srcdir/inc.at:48:
10069
10070
10071
10072
10073 cp -r \$abs_top_srcdir/testsuite/spool/mbox1 .
10074 if test -e ./mbox1; then
10075
10076 # First, set all modes to +w
10077 find ./mbox1 | xargs chmod +w
10078 # Then, remove executable bit from regular files
10079 find ./mbox1 -type f | xargs chmod -x
10080
10081 else
10082
10083 # First, set all modes to +w
10084 find . | xargs chmod +w
10085 # Then, remove executable bit from regular files
10086 find . -type f | xargs chmod -x
10087
10088 fi
10089
10090
10091
10092 mkdir Mail/new
10093 inc +new -file ./mbox1 | sed 's/ *\$//'
10094 "
10095 at_fn_check_prepare_notrace 'an embedded newline' "inc.at:48"
10096 ( $at_check_trace;
10097
10098
10099
10100
10101 cp -r $abs_top_srcdir/testsuite/spool/mbox1 .
10102 if test -e ./mbox1; then
10103
10104 # First, set all modes to +w
10105 find ./mbox1 | xargs chmod +w
10106 # Then, remove executable bit from regular files
10107 find ./mbox1 -type f | xargs chmod -x
10108
10109 else
10110
10111 # First, set all modes to +w
10112 find . | xargs chmod +w
10113 # Then, remove executable bit from regular files
10114 find . -type f | xargs chmod -x
10115
10116 fi
10117
10118
10119
10120 mkdir Mail/new
10121 inc +new -file ./mbox1 | sed 's/ *$//'
10122
10123 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10124 at_status=$? at_failed=false
10125 $at_check_filter
10126 at_fn_diff_devnull "$at_stderr" || at_failed=:
10127 echo >>"$at_stdout"; printf "%s\n" " 1+ 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10128 2 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10129 3 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10130 4 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10131 5 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10132 " | \
10133 $at_diff - "$at_stdout" || at_failed=:
10134 at_fn_check_status 0 $at_status "$at_srcdir/inc.at:48"
10135 $at_failed && at_fn_log_failure
10136 $at_traceon; }
10137
10138 set +x
10139 $at_times_p && times >"$at_times_file"
10140 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10141 read at_status <"$at_status_file"
10142 #AT_STOP_146
10143 #AT_START_147
10144 at_fn_group_banner 147 'inc.at:61' \
10145 "inc -changecur" " " 8
10146 at_xfail=no
10147 (
10148 printf "%s\n" "147. $at_setup_line: testing $at_desc ..."
10149 $at_traceon
10150
10151
10152
10153 test -d Mail || mkdir Mail
10154 HOME=`pwd`
10155 export HOME
10156 MH=$HOME/mh_profile
10157 export MH
10158 cat > $MH <<EOT
10159 Path: $HOME/Mail
10160 mhetcdir: $abs_top_srcdir/mh/etc
10161 moreproc: /bin/cat
10162 EOT
10163 MTSTAILOR=$HOME/mtstailor
10164 export MTSTAILOR
10165 exec <&-
10166
10167 { set +x
10168 printf "%s\n" "$at_srcdir/inc.at:61:
10169 mbox2dir -m Mail/inbox \$spooldir/mbox1
10170
10171
10172
10173
10174 cp -r \$abs_top_srcdir/testsuite/spool/mbox1 .
10175 if test -e ./mbox1; then
10176
10177 # First, set all modes to +w
10178 find ./mbox1 | xargs chmod +w
10179 # Then, remove executable bit from regular files
10180 find ./mbox1 -type f | xargs chmod -x
10181
10182 else
10183
10184 # First, set all modes to +w
10185 find . | xargs chmod +w
10186 # Then, remove executable bit from regular files
10187 find . -type f | xargs chmod -x
10188
10189 fi
10190
10191
10192
10193 inc -changecur -file ./mbox1 | sed 's/ *\$//'
10194 "
10195 at_fn_check_prepare_notrace 'an embedded newline' "inc.at:61"
10196 ( $at_check_trace;
10197 mbox2dir -m Mail/inbox $spooldir/mbox1
10198
10199
10200
10201
10202 cp -r $abs_top_srcdir/testsuite/spool/mbox1 .
10203 if test -e ./mbox1; then
10204
10205 # First, set all modes to +w
10206 find ./mbox1 | xargs chmod +w
10207 # Then, remove executable bit from regular files
10208 find ./mbox1 -type f | xargs chmod -x
10209
10210 else
10211
10212 # First, set all modes to +w
10213 find . | xargs chmod +w
10214 # Then, remove executable bit from regular files
10215 find . -type f | xargs chmod -x
10216
10217 fi
10218
10219
10220
10221 inc -changecur -file ./mbox1 | sed 's/ *$//'
10222
10223 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10224 at_status=$? at_failed=false
10225 $at_check_filter
10226 at_fn_diff_devnull "$at_stderr" || at_failed=:
10227 echo >>"$at_stdout"; printf "%s\n" " 6+ 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10228 7 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10229 8 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10230 9 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10231 10 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10232 " | \
10233 $at_diff - "$at_stdout" || at_failed=:
10234 at_fn_check_status 0 $at_status "$at_srcdir/inc.at:61"
10235 $at_failed && at_fn_log_failure
10236 $at_traceon; }
10237
10238 set +x
10239 $at_times_p && times >"$at_times_file"
10240 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10241 read at_status <"$at_status_file"
10242 #AT_STOP_147
10243 #AT_START_148
10244 at_fn_group_banner 148 'inc.at:74' \
10245 "inc -nochangecur" " " 8
10246 at_xfail=no
10247 (
10248 printf "%s\n" "148. $at_setup_line: testing $at_desc ..."
10249 $at_traceon
10250
10251
10252
10253 test -d Mail || mkdir Mail
10254 HOME=`pwd`
10255 export HOME
10256 MH=$HOME/mh_profile
10257 export MH
10258 cat > $MH <<EOT
10259 Path: $HOME/Mail
10260 mhetcdir: $abs_top_srcdir/mh/etc
10261 moreproc: /bin/cat
10262 EOT
10263 MTSTAILOR=$HOME/mtstailor
10264 export MTSTAILOR
10265 exec <&-
10266
10267 { set +x
10268 printf "%s\n" "$at_srcdir/inc.at:74:
10269 mbox2dir -m Mail/inbox \$spooldir/mbox1
10270 echo \"cur: 1\" > Mail/inbox/.mh_sequences
10271
10272
10273
10274
10275 cp -r \$abs_top_srcdir/testsuite/spool/mbox1 .
10276 if test -e ./mbox1; then
10277
10278 # First, set all modes to +w
10279 find ./mbox1 | xargs chmod +w
10280 # Then, remove executable bit from regular files
10281 find ./mbox1 -type f | xargs chmod -x
10282
10283 else
10284
10285 # First, set all modes to +w
10286 find . | xargs chmod +w
10287 # Then, remove executable bit from regular files
10288 find . -type f | xargs chmod -x
10289
10290 fi
10291
10292
10293
10294 inc -nochangecur -file ./mbox1 | sed 's/ *\$//'
10295 grep ^cur: Mail/inbox/.mh_sequences
10296 "
10297 at_fn_check_prepare_notrace 'an embedded newline' "inc.at:74"
10298 ( $at_check_trace;
10299 mbox2dir -m Mail/inbox $spooldir/mbox1
10300 echo "cur: 1" > Mail/inbox/.mh_sequences
10301
10302
10303
10304
10305 cp -r $abs_top_srcdir/testsuite/spool/mbox1 .
10306 if test -e ./mbox1; then
10307
10308 # First, set all modes to +w
10309 find ./mbox1 | xargs chmod +w
10310 # Then, remove executable bit from regular files
10311 find ./mbox1 -type f | xargs chmod -x
10312
10313 else
10314
10315 # First, set all modes to +w
10316 find . | xargs chmod +w
10317 # Then, remove executable bit from regular files
10318 find . -type f | xargs chmod -x
10319
10320 fi
10321
10322
10323
10324 inc -nochangecur -file ./mbox1 | sed 's/ *$//'
10325 grep ^cur: Mail/inbox/.mh_sequences
10326
10327 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10328 at_status=$? at_failed=false
10329 $at_check_filter
10330 at_fn_diff_devnull "$at_stderr" || at_failed=:
10331 echo >>"$at_stdout"; printf "%s\n" " 6 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10332 7 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10333 8 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10334 9 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10335 10 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10336 cur: 1
10337 " | \
10338 $at_diff - "$at_stdout" || at_failed=:
10339 at_fn_check_status 0 $at_status "$at_srcdir/inc.at:74"
10340 $at_failed && at_fn_log_failure
10341 $at_traceon; }
10342
10343 set +x
10344 $at_times_p && times >"$at_times_file"
10345 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10346 read at_status <"$at_status_file"
10347 #AT_STOP_148
10348 #AT_START_149
10349 at_fn_group_banner 149 'inc.at:90' \
10350 "sparse numbering" " " 8
10351 at_xfail=no
10352 (
10353 printf "%s\n" "149. $at_setup_line: testing $at_desc ..."
10354 $at_traceon
10355
10356
10357
10358 test -d Mail || mkdir Mail
10359 HOME=`pwd`
10360 export HOME
10361 MH=$HOME/mh_profile
10362 export MH
10363 cat > $MH <<EOT
10364 Path: $HOME/Mail
10365 mhetcdir: $abs_top_srcdir/mh/etc
10366 moreproc: /bin/cat
10367 EOT
10368 MTSTAILOR=$HOME/mtstailor
10369 export MTSTAILOR
10370 exec <&-
10371
10372 { set +x
10373 printf "%s\n" "$at_srcdir/inc.at:90:
10374 cat >names <<'_ATEOF'
10375 1
10376 2
10377 3
10378 4
10379 20
10380 _ATEOF
10381
10382 mbox2dir -m -i names Mail/inbox \$spooldir/mbox1
10383
10384
10385
10386
10387 cp -r \$abs_top_srcdir/testsuite/spool/mbox1 .
10388 if test -e ./mbox1; then
10389
10390 # First, set all modes to +w
10391 find ./mbox1 | xargs chmod +w
10392 # Then, remove executable bit from regular files
10393 find ./mbox1 -type f | xargs chmod -x
10394
10395 else
10396
10397 # First, set all modes to +w
10398 find . | xargs chmod +w
10399 # Then, remove executable bit from regular files
10400 find . -type f | xargs chmod -x
10401
10402 fi
10403
10404
10405
10406 inc -changecur -file ./mbox1 | sed 's/ *\$//'
10407 "
10408 at_fn_check_prepare_notrace 'an embedded newline' "inc.at:90"
10409 ( $at_check_trace;
10410 cat >names <<'_ATEOF'
10411 1
10412 2
10413 3
10414 4
10415 20
10416 _ATEOF
10417
10418 mbox2dir -m -i names Mail/inbox $spooldir/mbox1
10419
10420
10421
10422
10423 cp -r $abs_top_srcdir/testsuite/spool/mbox1 .
10424 if test -e ./mbox1; then
10425
10426 # First, set all modes to +w
10427 find ./mbox1 | xargs chmod +w
10428 # Then, remove executable bit from regular files
10429 find ./mbox1 -type f | xargs chmod -x
10430
10431 else
10432
10433 # First, set all modes to +w
10434 find . | xargs chmod +w
10435 # Then, remove executable bit from regular files
10436 find . -type f | xargs chmod -x
10437
10438 fi
10439
10440
10441
10442 inc -changecur -file ./mbox1 | sed 's/ *$//'
10443
10444 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10445 at_status=$? at_failed=false
10446 $at_check_filter
10447 at_fn_diff_devnull "$at_stderr" || at_failed=:
10448 echo >>"$at_stdout"; printf "%s\n" " 21+ 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10449 22 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10450 23 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10451 24 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10452 25 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10453 " | \
10454 $at_diff - "$at_stdout" || at_failed=:
10455 at_fn_check_status 0 $at_status "$at_srcdir/inc.at:90"
10456 $at_failed && at_fn_log_failure
10457 $at_traceon; }
10458
10459 set +x
10460 $at_times_p && times >"$at_times_file"
10461 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10462 read at_status <"$at_status_file"
10463 #AT_STOP_149
10464 #AT_START_150
10465 at_fn_group_banner 150 'inc.at:110' \
10466 "default inbox" " " 8
10467 at_xfail=no
10468 (
10469 printf "%s\n" "150. $at_setup_line: testing $at_desc ..."
10470 $at_traceon
10471
10472
10473
10474 test -d Mail || mkdir Mail
10475 HOME=`pwd`
10476 export HOME
10477 MH=$HOME/mh_profile
10478 export MH
10479 cat > $MH <<EOT
10480 Path: $HOME/Mail
10481 mhetcdir: $abs_top_srcdir/mh/etc
10482 moreproc: /bin/cat
10483 EOT
10484 MTSTAILOR=$HOME/mtstailor
10485 export MTSTAILOR
10486 exec <&-
10487
10488 { set +x
10489 printf "%s\n" "$at_srcdir/inc.at:110:
10490 cat \$abs_top_srcdir/testsuite/spool/mbox1 > inputmail
10491 mkdir Mail/inbox
10492 FOLDER=\$(pwd)/inputmail
10493 export FOLDER
10494 inc | sed 's/ *\$//'
10495 "
10496 at_fn_check_prepare_notrace 'a $(...) command substitution' "inc.at:110"
10497 ( $at_check_trace;
10498 cat $abs_top_srcdir/testsuite/spool/mbox1 > inputmail
10499 mkdir Mail/inbox
10500 FOLDER=$(pwd)/inputmail
10501 export FOLDER
10502 inc | sed 's/ *$//'
10503
10504 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10505 at_status=$? at_failed=false
10506 $at_check_filter
10507 at_fn_diff_devnull "$at_stderr" || at_failed=:
10508 echo >>"$at_stdout"; printf "%s\n" " 1+ 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10509 2 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10510 3 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10511 4 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10512 5 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10513 " | \
10514 $at_diff - "$at_stdout" || at_failed=:
10515 at_fn_check_status 0 $at_status "$at_srcdir/inc.at:110"
10516 $at_failed && at_fn_log_failure
10517 $at_traceon; }
10518
10519 set +x
10520 $at_times_p && times >"$at_times_file"
10521 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10522 read at_status <"$at_status_file"
10523 #AT_STOP_150
10524 #AT_START_151
10525 at_fn_group_banner 151 'scan.at:21' \
10526 "scan" " " 9
10527 at_xfail=no
10528 (
10529 printf "%s\n" "151. $at_setup_line: testing $at_desc ..."
10530 $at_traceon
10531
10532
10533
10534 test -d Mail || mkdir Mail
10535 HOME=`pwd`
10536 export HOME
10537 MH=$HOME/mh_profile
10538 export MH
10539 cat > $MH <<EOT
10540 Path: $HOME/Mail
10541 mhetcdir: $abs_top_srcdir/mh/etc
10542 moreproc: /bin/cat
10543 EOT
10544 MTSTAILOR=$HOME/mtstailor
10545 export MTSTAILOR
10546 exec <&-
10547
10548 { set +x
10549 printf "%s\n" "$at_srcdir/scan.at:21:
10550 mbox2dir -m Mail/inbox \$spooldir/mbox1
10551 echo \"Current-Folder: inbox\" > Mail/context
10552 scan | sed 's/ *\$//'
10553 "
10554 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:21"
10555 ( $at_check_trace;
10556 mbox2dir -m Mail/inbox $spooldir/mbox1
10557 echo "Current-Folder: inbox" > Mail/context
10558 scan | sed 's/ *$//'
10559
10560 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10561 at_status=$? at_failed=false
10562 $at_check_filter
10563 at_fn_diff_devnull "$at_stderr" || at_failed=:
10564 echo >>"$at_stdout"; printf "%s\n" " 1 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10565 2 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10566 3 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10567 4 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10568 5 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10569 " | \
10570 $at_diff - "$at_stdout" || at_failed=:
10571 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:21"
10572 $at_failed && at_fn_log_failure
10573 $at_traceon; }
10574
10575 set +x
10576 $at_times_p && times >"$at_times_file"
10577 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10578 read at_status <"$at_status_file"
10579 #AT_STOP_151
10580 #AT_START_152
10581 at_fn_group_banner 152 'scan.at:34' \
10582 "scan -folder" " " 9
10583 at_xfail=no
10584 (
10585 printf "%s\n" "152. $at_setup_line: testing $at_desc ..."
10586 $at_traceon
10587
10588
10589
10590 test -d Mail || mkdir Mail
10591 HOME=`pwd`
10592 export HOME
10593 MH=$HOME/mh_profile
10594 export MH
10595 cat > $MH <<EOT
10596 Path: $HOME/Mail
10597 mhetcdir: $abs_top_srcdir/mh/etc
10598 moreproc: /bin/cat
10599 EOT
10600 MTSTAILOR=$HOME/mtstailor
10601 export MTSTAILOR
10602 exec <&-
10603
10604 { set +x
10605 printf "%s\n" "$at_srcdir/scan.at:34:
10606 mbox2dir -m Mail/inbox \$spooldir/mbox1
10607 scan +inbox | sed 's/ *\$//'
10608 "
10609 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:34"
10610 ( $at_check_trace;
10611 mbox2dir -m Mail/inbox $spooldir/mbox1
10612 scan +inbox | sed 's/ *$//'
10613
10614 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10615 at_status=$? at_failed=false
10616 $at_check_filter
10617 at_fn_diff_devnull "$at_stderr" || at_failed=:
10618 echo >>"$at_stdout"; printf "%s\n" " 1 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10619 2 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10620 3 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10621 4 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10622 5 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10623 " | \
10624 $at_diff - "$at_stdout" || at_failed=:
10625 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:34"
10626 $at_failed && at_fn_log_failure
10627 $at_traceon; }
10628
10629 set +x
10630 $at_times_p && times >"$at_times_file"
10631 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10632 read at_status <"$at_status_file"
10633 #AT_STOP_152
10634 #AT_START_153
10635 at_fn_group_banner 153 'scan.at:46' \
10636 "scan -format" " " 9
10637 at_xfail=no
10638 (
10639 printf "%s\n" "153. $at_setup_line: testing $at_desc ..."
10640 $at_traceon
10641
10642
10643
10644 test -d Mail || mkdir Mail
10645 HOME=`pwd`
10646 export HOME
10647 MH=$HOME/mh_profile
10648 export MH
10649 cat > $MH <<EOT
10650 Path: $HOME/Mail
10651 mhetcdir: $abs_top_srcdir/mh/etc
10652 moreproc: /bin/cat
10653 EOT
10654 MTSTAILOR=$HOME/mtstailor
10655 export MTSTAILOR
10656 exec <&-
10657
10658 { set +x
10659 printf "%s\n" "$at_srcdir/scan.at:46:
10660 mbox2dir -m Mail/mbox1 \$spooldir/mbox1
10661 scan +mbox1 -format '%4(msg) %{from} - %{to}'
10662 "
10663 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:46"
10664 ( $at_check_trace;
10665 mbox2dir -m Mail/mbox1 $spooldir/mbox1
10666 scan +mbox1 -format '%4(msg) %{from} - %{to}'
10667
10668 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10669 at_status=$? at_failed=false
10670 $at_check_filter
10671 at_fn_diff_devnull "$at_stderr" || at_failed=:
10672 echo >>"$at_stdout"; printf "%s\n" " 1 Foo Bar <[email protected]> - Bar <[email protected]>
10673 2 Bar <[email protected]> - Foo Bar <[email protected]>
10674 3 Sergey Poznyakoff <[email protected]> - Foo Bar <[email protected]>
10675 4 Sergey Poznyakoff <[email protected]> - Foo Bar <[email protected]>
10676 5 Sergey Poznyakoff <[email protected]> - Foo Bar <[email protected]>
10677 " | \
10678 $at_diff - "$at_stdout" || at_failed=:
10679 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:46"
10680 $at_failed && at_fn_log_failure
10681 $at_traceon; }
10682
10683 set +x
10684 $at_times_p && times >"$at_times_file"
10685 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10686 read at_status <"$at_status_file"
10687 #AT_STOP_153
10688 #AT_START_154
10689 at_fn_group_banner 154 'scan.at:58' \
10690 "scan -form" " " 9
10691 at_xfail=no
10692 (
10693 printf "%s\n" "154. $at_setup_line: testing $at_desc ..."
10694 $at_traceon
10695
10696
10697
10698 test -d Mail || mkdir Mail
10699 HOME=`pwd`
10700 export HOME
10701 MH=$HOME/mh_profile
10702 export MH
10703 cat > $MH <<EOT
10704 Path: $HOME/Mail
10705 mhetcdir: $abs_top_srcdir/mh/etc
10706 moreproc: /bin/cat
10707 EOT
10708 MTSTAILOR=$HOME/mtstailor
10709 export MTSTAILOR
10710 exec <&-
10711
10712 { set +x
10713 printf "%s\n" "$at_srcdir/scan.at:58:
10714 mbox2dir -m Mail/mbox1 \$spooldir/mbox1
10715 echo '%4(msg) %(decode(friendly{from})) - %(decode(friendly{to}))' > formfile
10716 scan +mbox1 -form formfile
10717 "
10718 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:58"
10719 ( $at_check_trace;
10720 mbox2dir -m Mail/mbox1 $spooldir/mbox1
10721 echo '%4(msg) %(decode(friendly{from})) - %(decode(friendly{to}))' > formfile
10722 scan +mbox1 -form formfile
10723
10724 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10725 at_status=$? at_failed=false
10726 $at_check_filter
10727 at_fn_diff_devnull "$at_stderr" || at_failed=:
10728 echo >>"$at_stdout"; printf "%s\n" " 1 Foo Bar - Bar
10729 2 Bar - Foo Bar
10730 3 Sergey Poznyakoff - Foo Bar
10731 4 Sergey Poznyakoff - Foo Bar
10732 5 Sergey Poznyakoff - Foo Bar
10733 " | \
10734 $at_diff - "$at_stdout" || at_failed=:
10735 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:58"
10736 $at_failed && at_fn_log_failure
10737 $at_traceon; }
10738
10739 set +x
10740 $at_times_p && times >"$at_times_file"
10741 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10742 read at_status <"$at_status_file"
10743 #AT_STOP_154
10744 #AT_START_155
10745 at_fn_group_banner 155 'scan.at:71' \
10746 "scan -reverse" " " 9
10747 at_xfail=no
10748 (
10749 printf "%s\n" "155. $at_setup_line: testing $at_desc ..."
10750 $at_traceon
10751
10752
10753
10754 test -d Mail || mkdir Mail
10755 HOME=`pwd`
10756 export HOME
10757 MH=$HOME/mh_profile
10758 export MH
10759 cat > $MH <<EOT
10760 Path: $HOME/Mail
10761 mhetcdir: $abs_top_srcdir/mh/etc
10762 moreproc: /bin/cat
10763 EOT
10764 MTSTAILOR=$HOME/mtstailor
10765 export MTSTAILOR
10766 exec <&-
10767
10768 { set +x
10769 printf "%s\n" "$at_srcdir/scan.at:71:
10770 mbox2dir -m Mail/mbox1 \$spooldir/mbox1
10771 scan +mbox1 -reverse | sed 's/ *\$//'
10772 "
10773 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:71"
10774 ( $at_check_trace;
10775 mbox2dir -m Mail/mbox1 $spooldir/mbox1
10776 scan +mbox1 -reverse | sed 's/ *$//'
10777
10778 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10779 at_status=$? at_failed=false
10780 $at_check_filter
10781 at_fn_diff_devnull "$at_stderr" || at_failed=:
10782 echo >>"$at_stdout"; printf "%s\n" " 5 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10783 4 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10784 3 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10785 2 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10786 1 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10787 " | \
10788 $at_diff - "$at_stdout" || at_failed=:
10789 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:71"
10790 $at_failed && at_fn_log_failure
10791 $at_traceon; }
10792
10793 set +x
10794 $at_times_p && times >"$at_times_file"
10795 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10796 read at_status <"$at_status_file"
10797 #AT_STOP_155
10798 #AT_START_156
10799 at_fn_group_banner 156 'scan.at:83' \
10800 "Local mailbox" " " 9
10801 at_xfail=no
10802 (
10803 printf "%s\n" "156. $at_setup_line: testing $at_desc ..."
10804 $at_traceon
10805
10806
10807
10808 test -d Mail || mkdir Mail
10809 HOME=`pwd`
10810 export HOME
10811 MH=$HOME/mh_profile
10812 export MH
10813 cat > $MH <<EOT
10814 Path: $HOME/Mail
10815 mhetcdir: $abs_top_srcdir/mh/etc
10816 moreproc: /bin/cat
10817 EOT
10818 MTSTAILOR=$HOME/mtstailor
10819 export MTSTAILOR
10820 exec <&-
10821
10822 { set +x
10823 printf "%s\n" "$at_srcdir/scan.at:83:
10824 mbox2dir -m Mail/inbox \$spooldir/mbox1
10825 echo \"Local-Mailbox: [email protected]\" >> \$MH
10826 scan | sed 's/ *\$//'
10827 "
10828 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:83"
10829 ( $at_check_trace;
10830 mbox2dir -m Mail/inbox $spooldir/mbox1
10831 echo "Local-Mailbox: [email protected]" >> $MH
10832 scan | sed 's/ *$//'
10833
10834 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10835 at_status=$? at_failed=false
10836 $at_check_filter
10837 at_fn_diff_devnull "$at_stderr" || at_failed=:
10838 echo >>"$at_stdout"; printf "%s\n" " 1 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10839 2 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10840 3 07/13 To:Foo Bar Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10841 4 07/13 To:Foo Bar Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10842 5 07/13 To:Foo Bar Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10843 " | \
10844 $at_diff - "$at_stdout" || at_failed=:
10845 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:83"
10846 $at_failed && at_fn_log_failure
10847 $at_traceon; }
10848
10849 set +x
10850 $at_times_p && times >"$at_times_file"
10851 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10852 read at_status <"$at_status_file"
10853 #AT_STOP_156
10854 #AT_START_157
10855 at_fn_group_banner 157 'scan.at:96' \
10856 "default format" " " 9
10857 at_xfail=no
10858 (
10859 printf "%s\n" "157. $at_setup_line: testing $at_desc ..."
10860 $at_traceon
10861
10862
10863
10864 test -d Mail || mkdir Mail
10865 HOME=`pwd`
10866 export HOME
10867 MH=$HOME/mh_profile
10868 export MH
10869 cat > $MH <<EOT
10870 Path: $HOME/Mail
10871 mhetcdir: $abs_top_srcdir/mh/etc
10872 moreproc: /bin/cat
10873 EOT
10874 MTSTAILOR=$HOME/mtstailor
10875 export MTSTAILOR
10876 exec <&-
10877
10878 { set +x
10879 printf "%s\n" "$at_srcdir/scan.at:96:
10880 mbox2dir -m Mail/inbox \$spooldir/mbox1
10881 scan -form \$MHETCDIR/scan.default| sed 's/ *\$//'
10882 "
10883 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:96"
10884 ( $at_check_trace;
10885 mbox2dir -m Mail/inbox $spooldir/mbox1
10886 scan -form $MHETCDIR/scan.default| sed 's/ *$//'
10887
10888 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10889 at_status=$? at_failed=false
10890 $at_check_filter
10891 at_fn_diff_devnull "$at_stderr" || at_failed=:
10892 echo >>"$at_stdout"; printf "%s\n" " 1 12/28 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
10893 2 12/28 Bar Re: Jabberwocky<<It seems very pretty, but it's
10894 3 07/13 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
10895 4 07/13 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
10896 5 07/13 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
10897 " | \
10898 $at_diff - "$at_stdout" || at_failed=:
10899 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:96"
10900 $at_failed && at_fn_log_failure
10901 $at_traceon; }
10902
10903 set +x
10904 $at_times_p && times >"$at_times_file"
10905 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10906 read at_status <"$at_status_file"
10907 #AT_STOP_157
10908 #AT_START_158
10909 at_fn_group_banner 158 'scan.at:108' \
10910 "mailx format" " " 9
10911 at_xfail=no
10912 (
10913 printf "%s\n" "158. $at_setup_line: testing $at_desc ..."
10914 $at_traceon
10915
10916
10917
10918 test -d Mail || mkdir Mail
10919 HOME=`pwd`
10920 export HOME
10921 MH=$HOME/mh_profile
10922 export MH
10923 cat > $MH <<EOT
10924 Path: $HOME/Mail
10925 mhetcdir: $abs_top_srcdir/mh/etc
10926 moreproc: /bin/cat
10927 EOT
10928 MTSTAILOR=$HOME/mtstailor
10929 export MTSTAILOR
10930 exec <&-
10931
10932 { set +x
10933 printf "%s\n" "$at_srcdir/scan.at:108:
10934 mbox2dir -m Mail/inbox \$spooldir/mbox1
10935 scan -form \$MHETCDIR/scan.mailx| sed 's/ *\$//'
10936 "
10937 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:108"
10938 ( $at_check_trace;
10939 mbox2dir -m Mail/inbox $spooldir/mbox1
10940 scan -form $MHETCDIR/scan.mailx| sed 's/ *$//'
10941
10942 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10943 at_status=$? at_failed=false
10944 $at_check_filter
10945 at_fn_diff_devnull "$at_stderr" || at_failed=:
10946 echo >>"$at_stdout"; printf "%s\n" " N 1 Foo Bar Fri Dec 28 22:18 Jabberwocky
10947 N 2 Bar Fri Dec 28 23:28 Re: Jabberwocky
10948 N 3 Sergey Poznyakoff Sat Jul 13 00:43 Simple MIME
10949 N 4 Sergey Poznyakoff Sat Jul 13 00:50 Nested MIME
10950 N 5 Sergey Poznyakoff Sat Jul 13 00:43 Empty MIME Parts
10951 " | \
10952 $at_diff - "$at_stdout" || at_failed=:
10953 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:108"
10954 $at_failed && at_fn_log_failure
10955 $at_traceon; }
10956
10957 set +x
10958 $at_times_p && times >"$at_times_file"
10959 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10960 read at_status <"$at_status_file"
10961 #AT_STOP_158
10962 #AT_START_159
10963 at_fn_group_banner 159 'scan.at:120' \
10964 "size format" " " 9
10965 at_xfail=no
10966 (
10967 printf "%s\n" "159. $at_setup_line: testing $at_desc ..."
10968 $at_traceon
10969
10970
10971
10972 test -d Mail || mkdir Mail
10973 HOME=`pwd`
10974 export HOME
10975 MH=$HOME/mh_profile
10976 export MH
10977 cat > $MH <<EOT
10978 Path: $HOME/Mail
10979 mhetcdir: $abs_top_srcdir/mh/etc
10980 moreproc: /bin/cat
10981 EOT
10982 MTSTAILOR=$HOME/mtstailor
10983 export MTSTAILOR
10984 exec <&-
10985
10986 { set +x
10987 printf "%s\n" "$at_srcdir/scan.at:120:
10988 mbox2dir -m Mail/inbox \$spooldir/mbox1
10989 scan -form \$MHETCDIR/scan.size| sed 's/ *\$//'
10990 "
10991 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:120"
10992 ( $at_check_trace;
10993 mbox2dir -m Mail/inbox $spooldir/mbox1
10994 scan -form $MHETCDIR/scan.size| sed 's/ *$//'
10995
10996 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10997 at_status=$? at_failed=false
10998 $at_check_filter
10999 at_fn_diff_devnull "$at_stderr" || at_failed=:
11000 echo >>"$at_stdout"; printf "%s\n" " 1 12/28 1254 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy
11001 2 12/28 534 Bar Re: Jabberwocky<<It seems very pretty, but
11002 3 07/13 1569 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content
11003 4 07/13 3399 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content
11004 5 07/13 857 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Co
11005 " | \
11006 $at_diff - "$at_stdout" || at_failed=:
11007 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:120"
11008 $at_failed && at_fn_log_failure
11009 $at_traceon; }
11010
11011 set +x
11012 $at_times_p && times >"$at_times_file"
11013 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11014 read at_status <"$at_status_file"
11015 #AT_STOP_159
11016 #AT_START_160
11017 at_fn_group_banner 160 'scan.at:132' \
11018 "time format" " " 9
11019 at_xfail=no
11020 (
11021 printf "%s\n" "160. $at_setup_line: testing $at_desc ..."
11022 $at_traceon
11023
11024
11025
11026 test -d Mail || mkdir Mail
11027 HOME=`pwd`
11028 export HOME
11029 MH=$HOME/mh_profile
11030 export MH
11031 cat > $MH <<EOT
11032 Path: $HOME/Mail
11033 mhetcdir: $abs_top_srcdir/mh/etc
11034 moreproc: /bin/cat
11035 EOT
11036 MTSTAILOR=$HOME/mtstailor
11037 export MTSTAILOR
11038 exec <&-
11039
11040 { set +x
11041 printf "%s\n" "$at_srcdir/scan.at:132:
11042 mbox2dir -m Mail/inbox \$spooldir/mbox1
11043 scan -form \$MHETCDIR/scan.time| sed 's/ *\$//'
11044 "
11045 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:132"
11046 ( $at_check_trace;
11047 mbox2dir -m Mail/inbox $spooldir/mbox1
11048 scan -form $MHETCDIR/scan.time| sed 's/ *$//'
11049
11050 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11051 at_status=$? at_failed=false
11052 $at_check_filter
11053 at_fn_diff_devnull "$at_stderr" || at_failed=:
11054 echo >>"$at_stdout"; printf "%s\n" " 1 12/28 22:18+02 Foo Bar Jabberwocky<<\`Twas brillig, and the sli
11055 2 12/28 23:28+02 Bar Re: Jabberwocky<<It seems very pretty,
11056 3 07/13 00:43+03 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Cont
11057 4 07/13 00:50+03 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Cont
11058 5 07/13 00:43+03 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0
11059 " | \
11060 $at_diff - "$at_stdout" || at_failed=:
11061 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:132"
11062 $at_failed && at_fn_log_failure
11063 $at_traceon; }
11064
11065 set +x
11066 $at_times_p && times >"$at_times_file"
11067 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11068 read at_status <"$at_status_file"
11069 #AT_STOP_160
11070 #AT_START_161
11071 at_fn_group_banner 161 'scan.at:144' \
11072 "timely format" " " 9
11073 at_xfail=no
11074 (
11075 printf "%s\n" "161. $at_setup_line: testing $at_desc ..."
11076 $at_traceon
11077
11078
11079
11080 test -d Mail || mkdir Mail
11081 HOME=`pwd`
11082 export HOME
11083 MH=$HOME/mh_profile
11084 export MH
11085 cat > $MH <<EOT
11086 Path: $HOME/Mail
11087 mhetcdir: $abs_top_srcdir/mh/etc
11088 moreproc: /bin/cat
11089 EOT
11090 MTSTAILOR=$HOME/mtstailor
11091 export MTSTAILOR
11092 exec <&-
11093
11094 { set +x
11095 printf "%s\n" "$at_srcdir/scan.at:144:
11096 mbox2dir -m Mail/inbox \$spooldir/mbox1
11097 scan -form \$MHETCDIR/scan.timely| sed 's/ *\$//'
11098 "
11099 at_fn_check_prepare_notrace 'an embedded newline' "scan.at:144"
11100 ( $at_check_trace;
11101 mbox2dir -m Mail/inbox $spooldir/mbox1
11102 scan -form $MHETCDIR/scan.timely| sed 's/ *$//'
11103
11104 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11105 at_status=$? at_failed=false
11106 $at_check_filter
11107 at_fn_diff_devnull "$at_stderr" || at_failed=:
11108 echo >>"$at_stdout"; printf "%s\n" " 1 Dec01 Foo Bar Jabberwocky<<\`Twas brillig, and the slithy toves
11109 2 Dec01 Bar Re: Jabberwocky<<It seems very pretty, but it's
11110 3 Jul02 Sergey Poznyakoff Simple MIME<<------- =_aaaaaaaaaa0 Content-Type:
11111 4 Jul02 Sergey Poznyakoff Nested MIME<<------- =_aaaaaaaaaa0 Content-Type:
11112 5 Jul02 Sergey Poznyakoff Empty MIME Parts<<------- =_aaaaaaaaaa0 Content-
11113 " | \
11114 $at_diff - "$at_stdout" || at_failed=:
11115 at_fn_check_status 0 $at_status "$at_srcdir/scan.at:144"
11116 $at_failed && at_fn_log_failure
11117 $at_traceon; }
11118
11119 set +x
11120 $at_times_p && times >"$at_times_file"
11121 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11122 read at_status <"$at_status_file"
11123 #AT_STOP_161
11124 #AT_START_162
11125 at_fn_group_banner 162 'rmm.at:21' \
11126 "rmm msg" " " 10
11127 at_xfail=no
11128 (
11129 printf "%s\n" "162. $at_setup_line: testing $at_desc ..."
11130 $at_traceon
11131
11132
11133
11134 test -d Mail || mkdir Mail
11135 HOME=`pwd`
11136 export HOME
11137 MH=$HOME/mh_profile
11138 export MH
11139 cat > $MH <<EOT
11140 Path: $HOME/Mail
11141 mhetcdir: $abs_top_srcdir/mh/etc
11142 moreproc: /bin/cat
11143 EOT
11144 MTSTAILOR=$HOME/mtstailor
11145 export MTSTAILOR
11146 exec <&-
11147
11148 { set +x
11149 printf "%s\n" "$at_srcdir/rmm.at:21:
11150 mbox2dir -m Mail/inbox \$spooldir/mbox1
11151 echo 'Current-Folder: inbox' > Mail/context
11152 rmm 4 || exit \$?
11153 find Mail/inbox -name '[0-9]' | sort
11154 "
11155 at_fn_check_prepare_notrace 'an embedded newline' "rmm.at:21"
11156 ( $at_check_trace;
11157 mbox2dir -m Mail/inbox $spooldir/mbox1
11158 echo 'Current-Folder: inbox' > Mail/context
11159 rmm 4 || exit $?
11160 find Mail/inbox -name '[0-9]' | sort
11161
11162 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11163 at_status=$? at_failed=false
11164 $at_check_filter
11165 at_fn_diff_devnull "$at_stderr" || at_failed=:
11166 echo >>"$at_stdout"; printf "%s\n" "Mail/inbox/1
11167 Mail/inbox/2
11168 Mail/inbox/3
11169 Mail/inbox/5
11170 " | \
11171 $at_diff - "$at_stdout" || at_failed=:
11172 at_fn_check_status 0 $at_status "$at_srcdir/rmm.at:21"
11173 $at_failed && at_fn_log_failure
11174 $at_traceon; }
11175
11176 set +x
11177 $at_times_p && times >"$at_times_file"
11178 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11179 read at_status <"$at_status_file"
11180 #AT_STOP_162
11181 #AT_START_163
11182 at_fn_group_banner 163 'rmm.at:34' \
11183 "rmm seq" " " 10
11184 at_xfail=no
11185 (
11186 printf "%s\n" "163. $at_setup_line: testing $at_desc ..."
11187 $at_traceon
11188
11189
11190
11191 test -d Mail || mkdir Mail
11192 HOME=`pwd`
11193 export HOME
11194 MH=$HOME/mh_profile
11195 export MH
11196 cat > $MH <<EOT
11197 Path: $HOME/Mail
11198 mhetcdir: $abs_top_srcdir/mh/etc
11199 moreproc: /bin/cat
11200 EOT
11201 MTSTAILOR=$HOME/mtstailor
11202 export MTSTAILOR
11203 exec <&-
11204
11205 { set +x
11206 printf "%s\n" "$at_srcdir/rmm.at:34:
11207 mbox2dir -m Mail/inbox \$spooldir/mbox1
11208 echo 'Current-Folder: inbox' > Mail/context
11209 cat > Mail/inbox/.mh_sequences <<EOT
11210 test: 2 3 5
11211 cur: 1
11212 EOT
11213 rmm test || exit \$?
11214 find Mail/inbox -name '[0-9]' | sort
11215 sed '/^\$/d' Mail/inbox/.mh_sequences
11216 "
11217 at_fn_check_prepare_notrace 'an embedded newline' "rmm.at:34"
11218 ( $at_check_trace;
11219 mbox2dir -m Mail/inbox $spooldir/mbox1
11220 echo 'Current-Folder: inbox' > Mail/context
11221 cat > Mail/inbox/.mh_sequences <<EOT
11222 test: 2 3 5
11223 cur: 1
11224 EOT
11225 rmm test || exit $?
11226 find Mail/inbox -name '[0-9]' | sort
11227 sed '/^$/d' Mail/inbox/.mh_sequences
11228
11229 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11230 at_status=$? at_failed=false
11231 $at_check_filter
11232 at_fn_diff_devnull "$at_stderr" || at_failed=:
11233 echo >>"$at_stdout"; printf "%s\n" "Mail/inbox/1
11234 Mail/inbox/4
11235 cur: 1
11236 " | \
11237 $at_diff - "$at_stdout" || at_failed=:
11238 at_fn_check_status 0 $at_status "$at_srcdir/rmm.at:34"
11239 $at_failed && at_fn_log_failure
11240 $at_traceon; }
11241
11242 set +x
11243 $at_times_p && times >"$at_times_file"
11244 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11245 read at_status <"$at_status_file"
11246 #AT_STOP_163
11247 #AT_START_164
11248 at_fn_group_banner 164 'rmm.at:51' \
11249 "rmm rmmproc" " " 10
11250 at_xfail=no
11251 (
11252 printf "%s\n" "164. $at_setup_line: testing $at_desc ..."
11253 $at_traceon
11254
11255
11256
11257 test -d Mail || mkdir Mail
11258 HOME=`pwd`
11259 export HOME
11260 MH=$HOME/mh_profile
11261 export MH
11262 cat > $MH <<EOT
11263 Path: $HOME/Mail
11264 mhetcdir: $abs_top_srcdir/mh/etc
11265 moreproc: /bin/cat
11266 EOT
11267 MTSTAILOR=$HOME/mtstailor
11268 export MTSTAILOR
11269 exec <&-
11270
11271 { set +x
11272 printf "%s\n" "$at_srcdir/rmm.at:51:
11273 mbox2dir -m Mail/inbox \$spooldir/mbox1
11274 echo \"rmmproc: \$abs_top_srcdir/mh/tests/movemsg\" >> \$MH
11275 rmm 1 4 || exit \$?
11276 find Mail/inbox -name '[0-9]' | sort
11277 find Mail/removed -name '[0-9]' | sort
11278 "
11279 at_fn_check_prepare_notrace 'an embedded newline' "rmm.at:51"
11280 ( $at_check_trace;
11281 mbox2dir -m Mail/inbox $spooldir/mbox1
11282 echo "rmmproc: $abs_top_srcdir/mh/tests/movemsg" >> $MH
11283 rmm 1 4 || exit $?
11284 find Mail/inbox -name '[0-9]' | sort
11285 find Mail/removed -name '[0-9]' | sort
11286
11287 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11288 at_status=$? at_failed=false
11289 $at_check_filter
11290 at_fn_diff_devnull "$at_stderr" || at_failed=:
11291 echo >>"$at_stdout"; printf "%s\n" "Mail/inbox/2
11292 Mail/inbox/3
11293 Mail/inbox/5
11294 Mail/removed/1
11295 Mail/removed/4
11296 " | \
11297 $at_diff - "$at_stdout" || at_failed=:
11298 at_fn_check_status 0 $at_status "$at_srcdir/rmm.at:51"
11299 $at_failed && at_fn_log_failure
11300 $at_traceon; }
11301
11302 set +x
11303 $at_times_p && times >"$at_times_file"
11304 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11305 read at_status <"$at_status_file"
11306 #AT_STOP_164
11307 #AT_START_165
11308 at_fn_group_banner 165 'rmm.at:66' \
11309 "rmm -- null rmmproc" " " 10
11310 at_xfail=no
11311 (
11312 printf "%s\n" "165. $at_setup_line: testing $at_desc ..."
11313 $at_traceon
11314
11315
11316
11317 test -d Mail || mkdir Mail
11318 HOME=`pwd`
11319 export HOME
11320 MH=$HOME/mh_profile
11321 export MH
11322 cat > $MH <<EOT
11323 Path: $HOME/Mail
11324 mhetcdir: $abs_top_srcdir/mh/etc
11325 moreproc: /bin/cat
11326 EOT
11327 MTSTAILOR=$HOME/mtstailor
11328 export MTSTAILOR
11329 exec <&-
11330
11331 { set +x
11332 printf "%s\n" "$at_srcdir/rmm.at:66:
11333 mbox2dir -m Mail/inbox \$spooldir/mbox1
11334 echo \"rmmproc:\" >> \$MH
11335 rmm 1 4 || exit \$?
11336 find Mail/inbox -name '[0-9]' | sort
11337 test -f Mail/inbox/,1 || echo OK
11338 test -f Mail/inbox/,4 || echo OK
11339 "
11340 at_fn_check_prepare_notrace 'an embedded newline' "rmm.at:66"
11341 ( $at_check_trace;
11342 mbox2dir -m Mail/inbox $spooldir/mbox1
11343 echo "rmmproc:" >> $MH
11344 rmm 1 4 || exit $?
11345 find Mail/inbox -name '[0-9]' | sort
11346 test -f Mail/inbox/,1 || echo OK
11347 test -f Mail/inbox/,4 || echo OK
11348
11349 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11350 at_status=$? at_failed=false
11351 $at_check_filter
11352 at_fn_diff_devnull "$at_stderr" || at_failed=:
11353 echo >>"$at_stdout"; printf "%s\n" "Mail/inbox/2
11354 Mail/inbox/3
11355 Mail/inbox/5
11356 OK
11357 OK
11358 " | \
11359 $at_diff - "$at_stdout" || at_failed=:
11360 at_fn_check_status 0 $at_status "$at_srcdir/rmm.at:66"
11361 $at_failed && at_fn_log_failure
11362 $at_traceon; }
11363
11364 set +x
11365 $at_times_p && times >"$at_times_file"
11366 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11367 read at_status <"$at_status_file"
11368 #AT_STOP_165
11369 #AT_START_166
11370 at_fn_group_banner 166 'rmf.at:21' \
11371 "rmf +folder" " " 11
11372 at_xfail=no
11373 (
11374 printf "%s\n" "166. $at_setup_line: testing $at_desc ..."
11375 $at_traceon
11376
11377
11378
11379 test -d Mail || mkdir Mail
11380 HOME=`pwd`
11381 export HOME
11382 MH=$HOME/mh_profile
11383 export MH
11384 cat > $MH <<EOT
11385 Path: $HOME/Mail
11386 mhetcdir: $abs_top_srcdir/mh/etc
11387 moreproc: /bin/cat
11388 EOT
11389 MTSTAILOR=$HOME/mtstailor
11390 export MTSTAILOR
11391 exec <&-
11392
11393 { set +x
11394 printf "%s\n" "$at_srcdir/rmf.at:21:
11395 mbox2dir -m Mail/inbox \$spooldir/mbox1
11396 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
11397 echo 'Current-Folder: inbox' > Mail/context
11398 rmf +teaparty || exit \$?
11399 find Mail -type d | sort
11400 "
11401 at_fn_check_prepare_notrace 'an embedded newline' "rmf.at:21"
11402 ( $at_check_trace;
11403 mbox2dir -m Mail/inbox $spooldir/mbox1
11404 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
11405 echo 'Current-Folder: inbox' > Mail/context
11406 rmf +teaparty || exit $?
11407 find Mail -type d | sort
11408
11409 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11410 at_status=$? at_failed=false
11411 $at_check_filter
11412 at_fn_diff_devnull "$at_stderr" || at_failed=:
11413 echo >>"$at_stdout"; printf "%s\n" "Mail
11414 Mail/inbox
11415 " | \
11416 $at_diff - "$at_stdout" || at_failed=:
11417 at_fn_check_status 0 $at_status "$at_srcdir/rmf.at:21"
11418 $at_failed && at_fn_log_failure
11419 $at_traceon; }
11420
11421 set +x
11422 $at_times_p && times >"$at_times_file"
11423 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11424 read at_status <"$at_status_file"
11425 #AT_STOP_166
11426 #AT_START_167
11427 at_fn_group_banner 167 'rmf.at:33' \
11428 "rmf" " " 11
11429 at_xfail=no
11430 (
11431 printf "%s\n" "167. $at_setup_line: testing $at_desc ..."
11432 $at_traceon
11433
11434
11435
11436 test -d Mail || mkdir Mail
11437 HOME=`pwd`
11438 export HOME
11439 MH=$HOME/mh_profile
11440 export MH
11441 cat > $MH <<EOT
11442 Path: $HOME/Mail
11443 mhetcdir: $abs_top_srcdir/mh/etc
11444 moreproc: /bin/cat
11445 EOT
11446 MTSTAILOR=$HOME/mtstailor
11447 export MTSTAILOR
11448 exec <&-
11449
11450 { set +x
11451 printf "%s\n" "$at_srcdir/rmf.at:33:
11452 mbox2dir -m Mail/inbox \$spooldir/mbox1
11453 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
11454 echo 'Current-Folder: teaparty' > Mail/context
11455 rmf || exit \$?
11456 find Mail -type d | sort
11457 "
11458 at_fn_check_prepare_notrace 'an embedded newline' "rmf.at:33"
11459 ( $at_check_trace;
11460 mbox2dir -m Mail/inbox $spooldir/mbox1
11461 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
11462 echo 'Current-Folder: teaparty' > Mail/context
11463 rmf || exit $?
11464 find Mail -type d | sort
11465
11466 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11467 at_status=$? at_failed=false
11468 $at_check_filter
11469 at_fn_diff_devnull "$at_stderr" || at_failed=:
11470 echo >>"$at_stdout"; printf "%s\n" "[+inbox now current]
11471 Mail
11472 Mail/inbox
11473 " | \
11474 $at_diff - "$at_stdout" || at_failed=:
11475 at_fn_check_status 0 $at_status "$at_srcdir/rmf.at:33"
11476 $at_failed && at_fn_log_failure
11477 $at_traceon; }
11478
11479 set +x
11480 $at_times_p && times >"$at_times_file"
11481 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11482 read at_status <"$at_status_file"
11483 #AT_STOP_167
11484 #AT_START_168
11485 at_fn_group_banner 168 'mark.at:20' \
11486 "mark -add" " " 12
11487 at_xfail=no
11488 (
11489 printf "%s\n" "168. $at_setup_line: testing $at_desc ..."
11490 $at_traceon
11491
11492
11493
11494 test -d Mail || mkdir Mail
11495 HOME=`pwd`
11496 export HOME
11497 MH=$HOME/mh_profile
11498 export MH
11499 cat > $MH <<EOT
11500 Path: $HOME/Mail
11501 mhetcdir: $abs_top_srcdir/mh/etc
11502 moreproc: /bin/cat
11503 EOT
11504 MTSTAILOR=$HOME/mtstailor
11505 export MTSTAILOR
11506 exec <&-
11507
11508 { set +x
11509 printf "%s\n" "$at_srcdir/mark.at:20:
11510 mbox2dir -m Mail/inbox \$spooldir/mbox1
11511 echo 'Current-Folder: inbox' > Mail/context
11512 mark -sequence andro -add 2
11513 mark -sequence andro -add 3-5
11514 sed -n '/^andro:/{s/ */ /g;s/ \$//;p;}' Mail/inbox/.mh_sequences
11515 "
11516 at_fn_check_prepare_notrace 'an embedded newline' "mark.at:20"
11517 ( $at_check_trace;
11518 mbox2dir -m Mail/inbox $spooldir/mbox1
11519 echo 'Current-Folder: inbox' > Mail/context
11520 mark -sequence andro -add 2
11521 mark -sequence andro -add 3-5
11522 sed -n '/^andro:/{s/ */ /g;s/ $//;p;}' Mail/inbox/.mh_sequences
11523
11524 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11525 at_status=$? at_failed=false
11526 $at_check_filter
11527 at_fn_diff_devnull "$at_stderr" || at_failed=:
11528 echo >>"$at_stdout"; printf "%s\n" "andro: 2-5
11529 " | \
11530 $at_diff - "$at_stdout" || at_failed=:
11531 at_fn_check_status 0 $at_status "$at_srcdir/mark.at:20"
11532 $at_failed && at_fn_log_failure
11533 $at_traceon; }
11534
11535 set +x
11536 $at_times_p && times >"$at_times_file"
11537 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11538 read at_status <"$at_status_file"
11539 #AT_STOP_168
11540 #AT_START_169
11541 at_fn_group_banner 169 'mark.at:31' \
11542 "mark -add -zero" " " 12
11543 at_xfail=no
11544 (
11545 printf "%s\n" "169. $at_setup_line: testing $at_desc ..."
11546 $at_traceon
11547
11548
11549
11550 test -d Mail || mkdir Mail
11551 HOME=`pwd`
11552 export HOME
11553 MH=$HOME/mh_profile
11554 export MH
11555 cat > $MH <<EOT
11556 Path: $HOME/Mail
11557 mhetcdir: $abs_top_srcdir/mh/etc
11558 moreproc: /bin/cat
11559 EOT
11560 MTSTAILOR=$HOME/mtstailor
11561 export MTSTAILOR
11562 exec <&-
11563
11564 { set +x
11565 printf "%s\n" "$at_srcdir/mark.at:31:
11566 mbox2dir -m Mail/inbox \$spooldir/mbox1
11567 echo 'Current-Folder: inbox' > Mail/context
11568 mark -sequence andro -add 2
11569 sed -n '/^andro:/{s/ */ /g;s/ \$//;p;}' Mail/inbox/.mh_sequences
11570 mark -zero -sequence andro -add 1 3
11571 sed -n '/^andro:/{s/ */ /g;s/ \$//;p;}' Mail/inbox/.mh_sequences
11572 "
11573 at_fn_check_prepare_notrace 'an embedded newline' "mark.at:31"
11574 ( $at_check_trace;
11575 mbox2dir -m Mail/inbox $spooldir/mbox1
11576 echo 'Current-Folder: inbox' > Mail/context
11577 mark -sequence andro -add 2
11578 sed -n '/^andro:/{s/ */ /g;s/ $//;p;}' Mail/inbox/.mh_sequences
11579 mark -zero -sequence andro -add 1 3
11580 sed -n '/^andro:/{s/ */ /g;s/ $//;p;}' Mail/inbox/.mh_sequences
11581
11582 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11583 at_status=$? at_failed=false
11584 $at_check_filter
11585 at_fn_diff_devnull "$at_stderr" || at_failed=:
11586 echo >>"$at_stdout"; printf "%s\n" "andro: 2
11587 andro: 1 3
11588 " | \
11589 $at_diff - "$at_stdout" || at_failed=:
11590 at_fn_check_status 0 $at_status "$at_srcdir/mark.at:31"
11591 $at_failed && at_fn_log_failure
11592 $at_traceon; }
11593
11594 set +x
11595 $at_times_p && times >"$at_times_file"
11596 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11597 read at_status <"$at_status_file"
11598 #AT_STOP_169
11599 #AT_START_170
11600 at_fn_group_banner 170 'mark.at:44' \
11601 "mark -add -nopublic" " " 12
11602 at_xfail=no
11603 (
11604 printf "%s\n" "170. $at_setup_line: testing $at_desc ..."
11605 $at_traceon
11606
11607
11608
11609 test -d Mail || mkdir Mail
11610 HOME=`pwd`
11611 export HOME
11612 MH=$HOME/mh_profile
11613 export MH
11614 cat > $MH <<EOT
11615 Path: $HOME/Mail
11616 mhetcdir: $abs_top_srcdir/mh/etc
11617 moreproc: /bin/cat
11618 EOT
11619 MTSTAILOR=$HOME/mtstailor
11620 export MTSTAILOR
11621 exec <&-
11622
11623 { set +x
11624 printf "%s\n" "$at_srcdir/mark.at:44:
11625 mbox2dir -m Mail/inbox \$spooldir/mbox1
11626 echo 'Current-Folder: inbox' > Mail/context
11627 mark -nopublic -sequence andro -add 1 2 3
11628 sed -n '/^atr-andro/{s/ */ /g;s/ \$//;s/^[^:]*:/atr-andro:/;p;}' Mail/context
11629 "
11630 at_fn_check_prepare_notrace 'an embedded newline' "mark.at:44"
11631 ( $at_check_trace;
11632 mbox2dir -m Mail/inbox $spooldir/mbox1
11633 echo 'Current-Folder: inbox' > Mail/context
11634 mark -nopublic -sequence andro -add 1 2 3
11635 sed -n '/^atr-andro/{s/ */ /g;s/ $//;s/^[^:]*:/atr-andro:/;p;}' Mail/context
11636
11637 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11638 at_status=$? at_failed=false
11639 $at_check_filter
11640 at_fn_diff_devnull "$at_stderr" || at_failed=:
11641 echo >>"$at_stdout"; printf "%s\n" "atr-andro: 1-3
11642 " | \
11643 $at_diff - "$at_stdout" || at_failed=:
11644 at_fn_check_status 0 $at_status "$at_srcdir/mark.at:44"
11645 $at_failed && at_fn_log_failure
11646 $at_traceon; }
11647
11648 set +x
11649 $at_times_p && times >"$at_times_file"
11650 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11651 read at_status <"$at_status_file"
11652 #AT_STOP_170
11653 #AT_START_171
11654 at_fn_group_banner 171 'mark.at:54' \
11655 "mark -del" " " 12
11656 at_xfail=no
11657 (
11658 printf "%s\n" "171. $at_setup_line: testing $at_desc ..."
11659 $at_traceon
11660
11661
11662
11663 test -d Mail || mkdir Mail
11664 HOME=`pwd`
11665 export HOME
11666 MH=$HOME/mh_profile
11667 export MH
11668 cat > $MH <<EOT
11669 Path: $HOME/Mail
11670 mhetcdir: $abs_top_srcdir/mh/etc
11671 moreproc: /bin/cat
11672 EOT
11673 MTSTAILOR=$HOME/mtstailor
11674 export MTSTAILOR
11675 exec <&-
11676
11677 { set +x
11678 printf "%s\n" "$at_srcdir/mark.at:54:
11679 mbox2dir -m Mail/inbox \$spooldir/mbox1
11680 echo 'Current-Folder: inbox' > Mail/context
11681 echo 'andro: 2 3 4 5' > Mail/inbox/.mh_sequences
11682 mark -sequence andro -del 3
11683 sed -n '/^andro:/{s/ */ /g;s/ \$//;p;}' Mail/inbox/.mh_sequences
11684 "
11685 at_fn_check_prepare_notrace 'an embedded newline' "mark.at:54"
11686 ( $at_check_trace;
11687 mbox2dir -m Mail/inbox $spooldir/mbox1
11688 echo 'Current-Folder: inbox' > Mail/context
11689 echo 'andro: 2 3 4 5' > Mail/inbox/.mh_sequences
11690 mark -sequence andro -del 3
11691 sed -n '/^andro:/{s/ */ /g;s/ $//;p;}' Mail/inbox/.mh_sequences
11692
11693 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11694 at_status=$? at_failed=false
11695 $at_check_filter
11696 at_fn_diff_devnull "$at_stderr" || at_failed=:
11697 echo >>"$at_stdout"; printf "%s\n" "andro: 2 4 5
11698 " | \
11699 $at_diff - "$at_stdout" || at_failed=:
11700 at_fn_check_status 0 $at_status "$at_srcdir/mark.at:54"
11701 $at_failed && at_fn_log_failure
11702 $at_traceon; }
11703
11704 set +x
11705 $at_times_p && times >"$at_times_file"
11706 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11707 read at_status <"$at_status_file"
11708 #AT_STOP_171
11709 #AT_START_172
11710 at_fn_group_banner 172 'mark.at:65' \
11711 "mark -del -nopublic" " " 12
11712 at_xfail=no
11713 (
11714 printf "%s\n" "172. $at_setup_line: testing $at_desc ..."
11715 $at_traceon
11716
11717
11718
11719 test -d Mail || mkdir Mail
11720 HOME=`pwd`
11721 export HOME
11722 MH=$HOME/mh_profile
11723 export MH
11724 cat > $MH <<EOT
11725 Path: $HOME/Mail
11726 mhetcdir: $abs_top_srcdir/mh/etc
11727 moreproc: /bin/cat
11728 EOT
11729 MTSTAILOR=$HOME/mtstailor
11730 export MTSTAILOR
11731 exec <&-
11732
11733 { set +x
11734 printf "%s\n" "$at_srcdir/mark.at:65:
11735 mbox2dir -m Mail/inbox \$spooldir/mbox1
11736 echo 'Current-Folder: inbox' > Mail/context
11737 inbox=\`pwd\`/Mail/inbox
11738 cat > Mail/context <<EOT
11739 atr-andro-\$inbox: 2-5
11740 EOT
11741 mark -nopublic -sequence andro -del 3
11742 sed -n '/^atr-andro/{s/ */ /g;s/ \$//;s/^[^:]*:/atr-andro:/;p;}' Mail/context
11743 "
11744 at_fn_check_prepare_notrace 'a `...` command substitution' "mark.at:65"
11745 ( $at_check_trace;
11746 mbox2dir -m Mail/inbox $spooldir/mbox1
11747 echo 'Current-Folder: inbox' > Mail/context
11748 inbox=`pwd`/Mail/inbox
11749 cat > Mail/context <<EOT
11750 atr-andro-$inbox: 2-5
11751 EOT
11752 mark -nopublic -sequence andro -del 3
11753 sed -n '/^atr-andro/{s/ */ /g;s/ $//;s/^[^:]*:/atr-andro:/;p;}' Mail/context
11754
11755 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11756 at_status=$? at_failed=false
11757 $at_check_filter
11758 at_fn_diff_devnull "$at_stderr" || at_failed=:
11759 echo >>"$at_stdout"; printf "%s\n" "atr-andro: 2 4 5
11760 " | \
11761 $at_diff - "$at_stdout" || at_failed=:
11762 at_fn_check_status 0 $at_status "$at_srcdir/mark.at:65"
11763 $at_failed && at_fn_log_failure
11764 $at_traceon; }
11765
11766 set +x
11767 $at_times_p && times >"$at_times_file"
11768 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11769 read at_status <"$at_status_file"
11770 #AT_STOP_172
11771 #AT_START_173
11772 at_fn_group_banner 173 'mark.at:79' \
11773 "mark -list" " " 12
11774 at_xfail=no
11775 (
11776 printf "%s\n" "173. $at_setup_line: testing $at_desc ..."
11777 $at_traceon
11778
11779
11780
11781 test -d Mail || mkdir Mail
11782 HOME=`pwd`
11783 export HOME
11784 MH=$HOME/mh_profile
11785 export MH
11786 cat > $MH <<EOT
11787 Path: $HOME/Mail
11788 mhetcdir: $abs_top_srcdir/mh/etc
11789 moreproc: /bin/cat
11790 EOT
11791 MTSTAILOR=$HOME/mtstailor
11792 export MTSTAILOR
11793 exec <&-
11794
11795 { set +x
11796 printf "%s\n" "$at_srcdir/mark.at:79:
11797 mbox2dir -m Mail/inbox \$spooldir/mbox1
11798 echo 'Current-Folder: inbox' > Mail/context
11799 inbox=\`pwd\`/Mail/inbox
11800 cat > Mail/context <<EOT
11801 atr-andro-\$inbox: 2 3
11802 EOT
11803 cat > Mail/inbox/.mh_sequences <<EOT
11804 cur: 1
11805 andro: 1 5
11806 gwerz: 4
11807 EOT
11808 mark -list
11809 "
11810 at_fn_check_prepare_notrace 'a `...` command substitution' "mark.at:79"
11811 ( $at_check_trace;
11812 mbox2dir -m Mail/inbox $spooldir/mbox1
11813 echo 'Current-Folder: inbox' > Mail/context
11814 inbox=`pwd`/Mail/inbox
11815 cat > Mail/context <<EOT
11816 atr-andro-$inbox: 2 3
11817 EOT
11818 cat > Mail/inbox/.mh_sequences <<EOT
11819 cur: 1
11820 andro: 1 5
11821 gwerz: 4
11822 EOT
11823 mark -list
11824
11825 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11826 at_status=$? at_failed=false
11827 $at_check_filter
11828 at_fn_diff_devnull "$at_stderr" || at_failed=:
11829 echo >>"$at_stdout"; printf "%s\n" "cur: 1
11830 andro: 1 5
11831 gwerz: 4
11832 andro (private): 2 3
11833 " | \
11834 $at_diff - "$at_stdout" || at_failed=:
11835 at_fn_check_status 0 $at_status "$at_srcdir/mark.at:79"
11836 $at_failed && at_fn_log_failure
11837 $at_traceon; }
11838
11839 set +x
11840 $at_times_p && times >"$at_times_file"
11841 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11842 read at_status <"$at_status_file"
11843 #AT_STOP_173
11844 #AT_START_174
11845 at_fn_group_banner 174 'mhparam.at:20' \
11846 "mhparam -all" " " 13
11847 at_xfail=no
11848 (
11849 printf "%s\n" "174. $at_setup_line: testing $at_desc ..."
11850 $at_traceon
11851
11852
11853
11854 test -d Mail || mkdir Mail
11855 HOME=`pwd`
11856 export HOME
11857 MH=$HOME/mh_profile
11858 export MH
11859 cat > $MH <<EOT
11860 Path: $HOME/Mail
11861 mhetcdir: $abs_top_srcdir/mh/etc
11862 moreproc: /bin/cat
11863 EOT
11864 MTSTAILOR=$HOME/mtstailor
11865 export MTSTAILOR
11866 exec <&-
11867
11868 { set +x
11869 printf "%s\n" "$at_srcdir/mhparam.at:20:
11870 cat >>\$MH <<EOT
11871 Sequence-Negation: not
11872 Draft-Folder: Mail/drafts
11873 Aliasfile: .mh_aliases
11874 EOT
11875 mhparam -all | tr '\\t' ' ' | sed 's/^Path:.*/Path: Mail/;s/^mhetcdir:.*/mhetcdir: dir/;s/ */ /g'
11876 "
11877 at_fn_check_prepare_notrace 'an embedded newline' "mhparam.at:20"
11878 ( $at_check_trace;
11879 cat >>$MH <<EOT
11880 Sequence-Negation: not
11881 Draft-Folder: Mail/drafts
11882 Aliasfile: .mh_aliases
11883 EOT
11884 mhparam -all | tr '\t' ' ' | sed 's/^Path:.*/Path: Mail/;s/^mhetcdir:.*/mhetcdir: dir/;s/ */ /g'
11885
11886 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11887 at_status=$? at_failed=false
11888 $at_check_filter
11889 at_fn_diff_devnull "$at_stderr" || at_failed=:
11890 echo >>"$at_stdout"; printf "%s\n" "Path: Mail
11891 mhetcdir: dir
11892 moreproc: /bin/cat
11893 Sequence-Negation: not
11894 Draft-Folder: Mail/drafts
11895 Aliasfile: .mh_aliases
11896 " | \
11897 $at_diff - "$at_stdout" || at_failed=:
11898 at_fn_check_status 0 $at_status "$at_srcdir/mhparam.at:20"
11899 $at_failed && at_fn_log_failure
11900 $at_traceon; }
11901
11902 set +x
11903 $at_times_p && times >"$at_times_file"
11904 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11905 read at_status <"$at_status_file"
11906 #AT_STOP_174
11907 #AT_START_175
11908 at_fn_group_banner 175 'mhparam.at:37' \
11909 "mhparam comp" " " 13
11910 at_xfail=no
11911 (
11912 printf "%s\n" "175. $at_setup_line: testing $at_desc ..."
11913 $at_traceon
11914
11915
11916
11917 test -d Mail || mkdir Mail
11918 HOME=`pwd`
11919 export HOME
11920 MH=$HOME/mh_profile
11921 export MH
11922 cat > $MH <<EOT
11923 Path: $HOME/Mail
11924 mhetcdir: $abs_top_srcdir/mh/etc
11925 moreproc: /bin/cat
11926 EOT
11927 MTSTAILOR=$HOME/mtstailor
11928 export MTSTAILOR
11929 exec <&-
11930
11931 { set +x
11932 printf "%s\n" "$at_srcdir/mhparam.at:37:
11933 cat >>\$MH <<EOT
11934 Sequence-Negation: not
11935 Draft-Folder: Mail/drafts
11936 Aliasfile: .mh_aliases
11937 EOT
11938 mhparam Sequence-Negation
11939 "
11940 at_fn_check_prepare_notrace 'an embedded newline' "mhparam.at:37"
11941 ( $at_check_trace;
11942 cat >>$MH <<EOT
11943 Sequence-Negation: not
11944 Draft-Folder: Mail/drafts
11945 Aliasfile: .mh_aliases
11946 EOT
11947 mhparam Sequence-Negation
11948
11949 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11950 at_status=$? at_failed=false
11951 $at_check_filter
11952 at_fn_diff_devnull "$at_stderr" || at_failed=:
11953 echo >>"$at_stdout"; printf "%s\n" "not
11954 " | \
11955 $at_diff - "$at_stdout" || at_failed=:
11956 at_fn_check_status 0 $at_status "$at_srcdir/mhparam.at:37"
11957 $at_failed && at_fn_log_failure
11958 $at_traceon; }
11959
11960 set +x
11961 $at_times_p && times >"$at_times_file"
11962 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11963 read at_status <"$at_status_file"
11964 #AT_STOP_175
11965 #AT_START_176
11966 at_fn_group_banner 176 'mhparam.at:49' \
11967 "mhparam comp comp" " " 13
11968 at_xfail=no
11969 (
11970 printf "%s\n" "176. $at_setup_line: testing $at_desc ..."
11971 $at_traceon
11972
11973
11974
11975 test -d Mail || mkdir Mail
11976 HOME=`pwd`
11977 export HOME
11978 MH=$HOME/mh_profile
11979 export MH
11980 cat > $MH <<EOT
11981 Path: $HOME/Mail
11982 mhetcdir: $abs_top_srcdir/mh/etc
11983 moreproc: /bin/cat
11984 EOT
11985 MTSTAILOR=$HOME/mtstailor
11986 export MTSTAILOR
11987 exec <&-
11988
11989 { set +x
11990 printf "%s\n" "$at_srcdir/mhparam.at:49:
11991 cat >>\$MH <<EOT
11992 Sequence-Negation: not
11993 Draft-Folder: Mail/drafts
11994 Aliasfile: .mh_aliases
11995 EOT
11996 mhparam Sequence-Negation Aliasfile | tr '\\t' ' '
11997 "
11998 at_fn_check_prepare_notrace 'an embedded newline' "mhparam.at:49"
11999 ( $at_check_trace;
12000 cat >>$MH <<EOT
12001 Sequence-Negation: not
12002 Draft-Folder: Mail/drafts
12003 Aliasfile: .mh_aliases
12004 EOT
12005 mhparam Sequence-Negation Aliasfile | tr '\t' ' '
12006
12007 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12008 at_status=$? at_failed=false
12009 $at_check_filter
12010 at_fn_diff_devnull "$at_stderr" || at_failed=:
12011 echo >>"$at_stdout"; printf "%s\n" "Sequence-Negation: not
12012 Aliasfile: .mh_aliases
12013 " | \
12014 $at_diff - "$at_stdout" || at_failed=:
12015 at_fn_check_status 0 $at_status "$at_srcdir/mhparam.at:49"
12016 $at_failed && at_fn_log_failure
12017 $at_traceon; }
12018
12019 set +x
12020 $at_times_p && times >"$at_times_file"
12021 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12022 read at_status <"$at_status_file"
12023 #AT_STOP_176
12024 #AT_START_177
12025 at_fn_group_banner 177 'mhparam.at:62' \
12026 "mhparam -component comp" " " 13
12027 at_xfail=no
12028 (
12029 printf "%s\n" "177. $at_setup_line: testing $at_desc ..."
12030 $at_traceon
12031
12032
12033
12034 test -d Mail || mkdir Mail
12035 HOME=`pwd`
12036 export HOME
12037 MH=$HOME/mh_profile
12038 export MH
12039 cat > $MH <<EOT
12040 Path: $HOME/Mail
12041 mhetcdir: $abs_top_srcdir/mh/etc
12042 moreproc: /bin/cat
12043 EOT
12044 MTSTAILOR=$HOME/mtstailor
12045 export MTSTAILOR
12046 exec <&-
12047
12048 { set +x
12049 printf "%s\n" "$at_srcdir/mhparam.at:62:
12050 cat >>\$MH <<EOT
12051 Sequence-Negation: not
12052 Draft-Folder: Mail/drafts
12053 Aliasfile: .mh_aliases
12054 EOT
12055 mhparam -component Sequence-Negation | tr '\\t' ' ' | sed 's/ */ /g'
12056 "
12057 at_fn_check_prepare_notrace 'an embedded newline' "mhparam.at:62"
12058 ( $at_check_trace;
12059 cat >>$MH <<EOT
12060 Sequence-Negation: not
12061 Draft-Folder: Mail/drafts
12062 Aliasfile: .mh_aliases
12063 EOT
12064 mhparam -component Sequence-Negation | tr '\t' ' ' | sed 's/ */ /g'
12065
12066 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12067 at_status=$? at_failed=false
12068 $at_check_filter
12069 at_fn_diff_devnull "$at_stderr" || at_failed=:
12070 echo >>"$at_stdout"; printf "%s\n" "Sequence-Negation: not
12071 " | \
12072 $at_diff - "$at_stdout" || at_failed=:
12073 at_fn_check_status 0 $at_status "$at_srcdir/mhparam.at:62"
12074 $at_failed && at_fn_log_failure
12075 $at_traceon; }
12076
12077 set +x
12078 $at_times_p && times >"$at_times_file"
12079 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12080 read at_status <"$at_status_file"
12081 #AT_STOP_177
12082 #AT_START_178
12083 at_fn_group_banner 178 'refile.at:20' \
12084 "refile" " " 14
12085 at_xfail=no
12086 (
12087 printf "%s\n" "178. $at_setup_line: testing $at_desc ..."
12088 $at_traceon
12089
12090
12091
12092 test -d Mail || mkdir Mail
12093 HOME=`pwd`
12094 export HOME
12095 MH=$HOME/mh_profile
12096 export MH
12097 cat > $MH <<EOT
12098 Path: $HOME/Mail
12099 mhetcdir: $abs_top_srcdir/mh/etc
12100 moreproc: /bin/cat
12101 EOT
12102 MTSTAILOR=$HOME/mtstailor
12103 export MTSTAILOR
12104 exec <&-
12105
12106 { set +x
12107 printf "%s\n" "$at_srcdir/refile.at:20:
12108 mbox2dir -m Mail/inbox \$spooldir/mbox1
12109 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
12110 echo 'Current-Folder: teaparty' > Mail/context
12111 refile 3 4 +inbox || exit \$?
12112 find Mail/inbox -name '[0-9]' | sort
12113 grep -v ^X-Envelope Mail/inbox/6 | cmp - Mail/teaparty/,3 >/dev/null || echo \"Message 3 differs\"
12114 grep -v ^X-Envelope Mail/inbox/7 | cmp - Mail/teaparty/,4 >/dev/null || echo \"Message 4 differs\"
12115 "
12116 at_fn_check_prepare_notrace 'an embedded newline' "refile.at:20"
12117 ( $at_check_trace;
12118 mbox2dir -m Mail/inbox $spooldir/mbox1
12119 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
12120 echo 'Current-Folder: teaparty' > Mail/context
12121 refile 3 4 +inbox || exit $?
12122 find Mail/inbox -name '[0-9]' | sort
12123 grep -v ^X-Envelope Mail/inbox/6 | cmp - Mail/teaparty/,3 >/dev/null || echo "Message 3 differs"
12124 grep -v ^X-Envelope Mail/inbox/7 | cmp - Mail/teaparty/,4 >/dev/null || echo "Message 4 differs"
12125
12126 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12127 at_status=$? at_failed=false
12128 $at_check_filter
12129 at_fn_diff_devnull "$at_stderr" || at_failed=:
12130 echo >>"$at_stdout"; printf "%s\n" "Mail/inbox/1
12131 Mail/inbox/2
12132 Mail/inbox/3
12133 Mail/inbox/4
12134 Mail/inbox/5
12135 Mail/inbox/6
12136 Mail/inbox/7
12137 " | \
12138 $at_diff - "$at_stdout" || at_failed=:
12139 at_fn_check_status 0 $at_status "$at_srcdir/refile.at:20"
12140 $at_failed && at_fn_log_failure
12141 $at_traceon; }
12142
12143 set +x
12144 $at_times_p && times >"$at_times_file"
12145 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12146 read at_status <"$at_status_file"
12147 #AT_STOP_178
12148 #AT_START_179
12149 at_fn_group_banner 179 'refile.at:39' \
12150 "refile -file" " " 14
12151 at_xfail=no
12152 (
12153 printf "%s\n" "179. $at_setup_line: testing $at_desc ..."
12154 $at_traceon
12155
12156
12157
12158 test -d Mail || mkdir Mail
12159 HOME=`pwd`
12160 export HOME
12161 MH=$HOME/mh_profile
12162 export MH
12163 cat > $MH <<EOT
12164 Path: $HOME/Mail
12165 mhetcdir: $abs_top_srcdir/mh/etc
12166 moreproc: /bin/cat
12167 EOT
12168 MTSTAILOR=$HOME/mtstailor
12169 export MTSTAILOR
12170 exec <&-
12171
12172 { set +x
12173 printf "%s\n" "$at_srcdir/refile.at:39:
12174 mbox2dir -m Mail/inbox \$spooldir/mbox1
12175 echo 'Current-Folder: inbox' > Mail/context
12176 cp Mail/inbox/2 message
12177 refile -file \`pwd\`/message +inbox || exit \$?
12178 find Mail/inbox -name '[0-9]' | sort
12179 grep -v ^X-Envelope Mail/inbox/6 | cmp Mail/inbox/2 - >/dev/null || echo \"Message differs\"
12180 "
12181 at_fn_check_prepare_notrace 'a `...` command substitution' "refile.at:39"
12182 ( $at_check_trace;
12183 mbox2dir -m Mail/inbox $spooldir/mbox1
12184 echo 'Current-Folder: inbox' > Mail/context
12185 cp Mail/inbox/2 message
12186 refile -file `pwd`/message +inbox || exit $?
12187 find Mail/inbox -name '[0-9]' | sort
12188 grep -v ^X-Envelope Mail/inbox/6 | cmp Mail/inbox/2 - >/dev/null || echo "Message differs"
12189
12190 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12191 at_status=$? at_failed=false
12192 $at_check_filter
12193 at_fn_diff_devnull "$at_stderr" || at_failed=:
12194 echo >>"$at_stdout"; printf "%s\n" "Mail/inbox/1
12195 Mail/inbox/2
12196 Mail/inbox/3
12197 Mail/inbox/4
12198 Mail/inbox/5
12199 Mail/inbox/6
12200 " | \
12201 $at_diff - "$at_stdout" || at_failed=:
12202 at_fn_check_status 0 $at_status "$at_srcdir/refile.at:39"
12203 $at_failed && at_fn_log_failure
12204 $at_traceon; }
12205
12206 set +x
12207 $at_times_p && times >"$at_times_file"
12208 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12209 read at_status <"$at_status_file"
12210 #AT_STOP_179
12211 #AT_START_180
12212 at_fn_group_banner 180 'refile.at:56' \
12213 "refile -copy" " " 14
12214 at_xfail=no
12215 (
12216 printf "%s\n" "180. $at_setup_line: testing $at_desc ..."
12217 $at_traceon
12218
12219
12220
12221 test -d Mail || mkdir Mail
12222 HOME=`pwd`
12223 export HOME
12224 MH=$HOME/mh_profile
12225 export MH
12226 cat > $MH <<EOT
12227 Path: $HOME/Mail
12228 mhetcdir: $abs_top_srcdir/mh/etc
12229 moreproc: /bin/cat
12230 EOT
12231 MTSTAILOR=$HOME/mtstailor
12232 export MTSTAILOR
12233 exec <&-
12234
12235 { set +x
12236 printf "%s\n" "$at_srcdir/refile.at:56:
12237 mbox2dir -m Mail/inbox \$spooldir/mbox1
12238 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
12239 echo 'Current-Folder: teaparty' > Mail/context
12240 refile -copy 3 4 +inbox || exit \$?
12241 find Mail/inbox -name '[0-9]' | sort
12242 grep -v ^X-Envelope Mail/inbox/6 | cmp - Mail/teaparty/3 >/dev/null || echo \"Message 3 differs\"
12243 grep -v ^X-Envelope Mail/inbox/7 | cmp - Mail/teaparty/4 >/dev/null || echo \"Message 4 differs\"
12244 "
12245 at_fn_check_prepare_notrace 'an embedded newline' "refile.at:56"
12246 ( $at_check_trace;
12247 mbox2dir -m Mail/inbox $spooldir/mbox1
12248 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
12249 echo 'Current-Folder: teaparty' > Mail/context
12250 refile -copy 3 4 +inbox || exit $?
12251 find Mail/inbox -name '[0-9]' | sort
12252 grep -v ^X-Envelope Mail/inbox/6 | cmp - Mail/teaparty/3 >/dev/null || echo "Message 3 differs"
12253 grep -v ^X-Envelope Mail/inbox/7 | cmp - Mail/teaparty/4 >/dev/null || echo "Message 4 differs"
12254
12255 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12256 at_status=$? at_failed=false
12257 $at_check_filter
12258 at_fn_diff_devnull "$at_stderr" || at_failed=:
12259 echo >>"$at_stdout"; printf "%s\n" "Mail/inbox/1
12260 Mail/inbox/2
12261 Mail/inbox/3
12262 Mail/inbox/4
12263 Mail/inbox/5
12264 Mail/inbox/6
12265 Mail/inbox/7
12266 " | \
12267 $at_diff - "$at_stdout" || at_failed=:
12268 at_fn_check_status 0 $at_status "$at_srcdir/refile.at:56"
12269 $at_failed && at_fn_log_failure
12270 $at_traceon; }
12271
12272 set +x
12273 $at_times_p && times >"$at_times_file"
12274 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12275 read at_status <"$at_status_file"
12276 #AT_STOP_180
12277 #AT_START_181
12278 at_fn_group_banner 181 'mhpath.at:20' \
12279 "mhpath" " " 15
12280 at_xfail=no
12281 (
12282 printf "%s\n" "181. $at_setup_line: testing $at_desc ..."
12283 $at_traceon
12284
12285
12286
12287 test -d Mail || mkdir Mail
12288 HOME=`pwd`
12289 export HOME
12290 MH=$HOME/mh_profile
12291 export MH
12292 cat > $MH <<EOT
12293 Path: $HOME/Mail
12294 mhetcdir: $abs_top_srcdir/mh/etc
12295 moreproc: /bin/cat
12296 EOT
12297 MTSTAILOR=$HOME/mtstailor
12298 export MTSTAILOR
12299 exec <&-
12300
12301 { set +x
12302 printf "%s\n" "$at_srcdir/mhpath.at:20:
12303 mbox2dir -m Mail/inbox \$spooldir/mbox1
12304 echo 'Current-Folder: inbox' > Mail/context
12305 mhpath | cwdrepl
12306 "
12307 at_fn_check_prepare_notrace 'an embedded newline' "mhpath.at:20"
12308 ( $at_check_trace;
12309 mbox2dir -m Mail/inbox $spooldir/mbox1
12310 echo 'Current-Folder: inbox' > Mail/context
12311 mhpath | cwdrepl
12312
12313 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12314 at_status=$? at_failed=false
12315 $at_check_filter
12316 at_fn_diff_devnull "$at_stderr" || at_failed=:
12317 echo >>"$at_stdout"; printf "%s\n" "./Mail/inbox
12318 " | \
12319 $at_diff - "$at_stdout" || at_failed=:
12320 at_fn_check_status 0 $at_status "$at_srcdir/mhpath.at:20"
12321 $at_failed && at_fn_log_failure
12322 $at_traceon; }
12323
12324 set +x
12325 $at_times_p && times >"$at_times_file"
12326 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12327 read at_status <"$at_status_file"
12328 #AT_STOP_181
12329 #AT_START_182
12330 at_fn_group_banner 182 'mhpath.at:29' \
12331 "mhpath +" " " 15
12332 at_xfail=no
12333 (
12334 printf "%s\n" "182. $at_setup_line: testing $at_desc ..."
12335 $at_traceon
12336
12337
12338
12339 test -d Mail || mkdir Mail
12340 HOME=`pwd`
12341 export HOME
12342 MH=$HOME/mh_profile
12343 export MH
12344 cat > $MH <<EOT
12345 Path: $HOME/Mail
12346 mhetcdir: $abs_top_srcdir/mh/etc
12347 moreproc: /bin/cat
12348 EOT
12349 MTSTAILOR=$HOME/mtstailor
12350 export MTSTAILOR
12351 exec <&-
12352
12353 { set +x
12354 printf "%s\n" "$at_srcdir/mhpath.at:29:
12355 mbox2dir -m Mail/inbox \$spooldir/mbox1
12356 echo 'Current-Folder: inbox' > Mail/context
12357 mhpath +| cwdrepl
12358 "
12359 at_fn_check_prepare_notrace 'an embedded newline' "mhpath.at:29"
12360 ( $at_check_trace;
12361 mbox2dir -m Mail/inbox $spooldir/mbox1
12362 echo 'Current-Folder: inbox' > Mail/context
12363 mhpath +| cwdrepl
12364
12365 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12366 at_status=$? at_failed=false
12367 $at_check_filter
12368 at_fn_diff_devnull "$at_stderr" || at_failed=:
12369 echo >>"$at_stdout"; printf "%s\n" "./Mail
12370 " | \
12371 $at_diff - "$at_stdout" || at_failed=:
12372 at_fn_check_status 0 $at_status "$at_srcdir/mhpath.at:29"
12373 $at_failed && at_fn_log_failure
12374 $at_traceon; }
12375
12376 set +x
12377 $at_times_p && times >"$at_times_file"
12378 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12379 read at_status <"$at_status_file"
12380 #AT_STOP_182
12381 #AT_START_183
12382 at_fn_group_banner 183 'mhpath.at:38' \
12383 "mhpath msgs" " " 15
12384 at_xfail=no
12385 (
12386 printf "%s\n" "183. $at_setup_line: testing $at_desc ..."
12387 $at_traceon
12388
12389
12390
12391 test -d Mail || mkdir Mail
12392 HOME=`pwd`
12393 export HOME
12394 MH=$HOME/mh_profile
12395 export MH
12396 cat > $MH <<EOT
12397 Path: $HOME/Mail
12398 mhetcdir: $abs_top_srcdir/mh/etc
12399 moreproc: /bin/cat
12400 EOT
12401 MTSTAILOR=$HOME/mtstailor
12402 export MTSTAILOR
12403 exec <&-
12404
12405 { set +x
12406 printf "%s\n" "$at_srcdir/mhpath.at:38:
12407 mbox2dir -m Mail/inbox \$spooldir/mbox1
12408 mhpath 1-3 | cwdrepl
12409 "
12410 at_fn_check_prepare_notrace 'an embedded newline' "mhpath.at:38"
12411 ( $at_check_trace;
12412 mbox2dir -m Mail/inbox $spooldir/mbox1
12413 mhpath 1-3 | cwdrepl
12414
12415 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12416 at_status=$? at_failed=false
12417 $at_check_filter
12418 at_fn_diff_devnull "$at_stderr" || at_failed=:
12419 echo >>"$at_stdout"; printf "%s\n" "./Mail/inbox/1
12420 ./Mail/inbox/2
12421 ./Mail/inbox/3
12422 " | \
12423 $at_diff - "$at_stdout" || at_failed=:
12424 at_fn_check_status 0 $at_status "$at_srcdir/mhpath.at:38"
12425 $at_failed && at_fn_log_failure
12426 $at_traceon; }
12427
12428 set +x
12429 $at_times_p && times >"$at_times_file"
12430 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12431 read at_status <"$at_status_file"
12432 #AT_STOP_183
12433 #AT_START_184
12434 at_fn_group_banner 184 'mhpath.at:48' \
12435 "mhpath msgs (some nonexistent)" " " 15
12436 at_xfail=no
12437 (
12438 printf "%s\n" "184. $at_setup_line: testing $at_desc ..."
12439 $at_traceon
12440
12441
12442
12443 test -d Mail || mkdir Mail
12444 HOME=`pwd`
12445 export HOME
12446 MH=$HOME/mh_profile
12447 export MH
12448 cat > $MH <<EOT
12449 Path: $HOME/Mail
12450 mhetcdir: $abs_top_srcdir/mh/etc
12451 moreproc: /bin/cat
12452 EOT
12453 MTSTAILOR=$HOME/mtstailor
12454 export MTSTAILOR
12455 exec <&-
12456
12457 { set +x
12458 printf "%s\n" "$at_srcdir/mhpath.at:48:
12459 mbox2dir -m Mail/inbox \$spooldir/mbox1
12460 mhpath 4-10 | cwdrepl
12461 "
12462 at_fn_check_prepare_notrace 'an embedded newline' "mhpath.at:48"
12463 ( $at_check_trace;
12464 mbox2dir -m Mail/inbox $spooldir/mbox1
12465 mhpath 4-10 | cwdrepl
12466
12467 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12468 at_status=$? at_failed=false
12469 $at_check_filter
12470 at_fn_diff_devnull "$at_stderr" || at_failed=:
12471 echo >>"$at_stdout"; printf "%s\n" "./Mail/inbox/4
12472 ./Mail/inbox/5
12473 " | \
12474 $at_diff - "$at_stdout" || at_failed=:
12475 at_fn_check_status 0 $at_status "$at_srcdir/mhpath.at:48"
12476 $at_failed && at_fn_log_failure
12477 $at_traceon; }
12478
12479 set +x
12480 $at_times_p && times >"$at_times_file"
12481 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12482 read at_status <"$at_status_file"
12483 #AT_STOP_184
12484 #AT_START_185
12485 at_fn_group_banner 185 'mhpath.at:57' \
12486 "mhpath msgs (all nonexistent)" " " 15
12487 at_xfail=no
12488 (
12489 printf "%s\n" "185. $at_setup_line: testing $at_desc ..."
12490 $at_traceon
12491
12492
12493
12494 test -d Mail || mkdir Mail
12495 HOME=`pwd`
12496 export HOME
12497 MH=$HOME/mh_profile
12498 export MH
12499 cat > $MH <<EOT
12500 Path: $HOME/Mail
12501 mhetcdir: $abs_top_srcdir/mh/etc
12502 moreproc: /bin/cat
12503 EOT
12504 MTSTAILOR=$HOME/mtstailor
12505 export MTSTAILOR
12506 exec <&-
12507
12508 { set +x
12509 printf "%s\n" "$at_srcdir/mhpath.at:57:
12510 mbox2dir -m Mail/inbox \$spooldir/mbox1
12511 mhpath 8-10 | cwdrepl
12512 "
12513 at_fn_check_prepare_notrace 'an embedded newline' "mhpath.at:57"
12514 ( $at_check_trace;
12515 mbox2dir -m Mail/inbox $spooldir/mbox1
12516 mhpath 8-10 | cwdrepl
12517
12518 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12519 at_status=$? at_failed=false
12520 $at_check_filter
12521 echo >>"$at_stderr"; printf "%s\n" "mhpath: no messages in range 8-10
12522 " | \
12523 $at_diff - "$at_stderr" || at_failed=:
12524 at_fn_diff_devnull "$at_stdout" || at_failed=:
12525 at_fn_check_status 0 $at_status "$at_srcdir/mhpath.at:57"
12526 $at_failed && at_fn_log_failure
12527 $at_traceon; }
12528
12529 set +x
12530 $at_times_p && times >"$at_times_file"
12531 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12532 read at_status <"$at_status_file"
12533 #AT_STOP_185
12534 #AT_START_186
12535 at_fn_group_banner 186 'mhpath.at:88' \
12536 "mhpath nonexistent" " " 15
12537 at_xfail=no
12538 (
12539 printf "%s\n" "186. $at_setup_line: testing $at_desc ..."
12540 $at_traceon
12541
12542
12543
12544 test -d Mail || mkdir Mail
12545 HOME=`pwd`
12546 export HOME
12547 MH=$HOME/mh_profile
12548 export MH
12549 cat > $MH <<EOT
12550 Path: $HOME/Mail
12551 mhetcdir: $abs_top_srcdir/mh/etc
12552 moreproc: /bin/cat
12553 EOT
12554 MTSTAILOR=$HOME/mtstailor
12555 export MTSTAILOR
12556 exec <&-
12557
12558 { set +x
12559 printf "%s\n" "$at_srcdir/mhpath.at:88:
12560 mbox2dir -m Mail/inbox \$spooldir/mbox1
12561 mhpath 10 | cwdrepl
12562 "
12563 at_fn_check_prepare_notrace 'an embedded newline' "mhpath.at:88"
12564 ( $at_check_trace;
12565 mbox2dir -m Mail/inbox $spooldir/mbox1
12566 mhpath 10 | cwdrepl
12567
12568 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12569 at_status=$? at_failed=false
12570 $at_check_filter
12571 echo >>"$at_stderr"; printf "%s\n" "mhpath: message 10 does not exist
12572 " | \
12573 $at_diff - "$at_stderr" || at_failed=:
12574 at_fn_diff_devnull "$at_stdout" || at_failed=:
12575 at_fn_check_status 0 $at_status "$at_srcdir/mhpath.at:88"
12576 $at_failed && at_fn_log_failure
12577 $at_traceon; }
12578
12579 set +x
12580 $at_times_p && times >"$at_times_file"
12581 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12582 read at_status <"$at_status_file"
12583 #AT_STOP_186
12584 #AT_START_187
12585 at_fn_group_banner 187 'mhpath.at:97' \
12586 "mhpath new" " " 15
12587 at_xfail=no
12588 (
12589 printf "%s\n" "187. $at_setup_line: testing $at_desc ..."
12590 $at_traceon
12591
12592
12593
12594 test -d Mail || mkdir Mail
12595 HOME=`pwd`
12596 export HOME
12597 MH=$HOME/mh_profile
12598 export MH
12599 cat > $MH <<EOT
12600 Path: $HOME/Mail
12601 mhetcdir: $abs_top_srcdir/mh/etc
12602 moreproc: /bin/cat
12603 EOT
12604 MTSTAILOR=$HOME/mtstailor
12605 export MTSTAILOR
12606 exec <&-
12607
12608 { set +x
12609 printf "%s\n" "$at_srcdir/mhpath.at:97:
12610 mbox2dir -m Mail/inbox \$spooldir/mbox1
12611 mhpath new | cwdrepl
12612 "
12613 at_fn_check_prepare_notrace 'an embedded newline' "mhpath.at:97"
12614 ( $at_check_trace;
12615 mbox2dir -m Mail/inbox $spooldir/mbox1
12616 mhpath new | cwdrepl
12617
12618 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12619 at_status=$? at_failed=false
12620 $at_check_filter
12621 at_fn_diff_devnull "$at_stderr" || at_failed=:
12622 echo >>"$at_stdout"; printf "%s\n" "./Mail/inbox/6
12623 " | \
12624 $at_diff - "$at_stdout" || at_failed=:
12625 at_fn_check_status 0 $at_status "$at_srcdir/mhpath.at:97"
12626 $at_failed && at_fn_log_failure
12627 $at_traceon; }
12628
12629 set +x
12630 $at_times_p && times >"$at_times_file"
12631 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12632 read at_status <"$at_status_file"
12633 #AT_STOP_187
12634 #AT_START_188
12635 at_fn_group_banner 188 'mhl.at:20' \
12636 "mhl" " " 16
12637 at_xfail=no
12638 (
12639 printf "%s\n" "188. $at_setup_line: testing $at_desc ..."
12640 $at_traceon
12641
12642
12643
12644 test -d Mail || mkdir Mail
12645 HOME=`pwd`
12646 export HOME
12647 MH=$HOME/mh_profile
12648 export MH
12649 cat > $MH <<EOT
12650 Path: $HOME/Mail
12651 mhetcdir: $abs_top_srcdir/mh/etc
12652 moreproc: /bin/cat
12653 EOT
12654 MTSTAILOR=$HOME/mtstailor
12655 export MTSTAILOR
12656 exec <&-
12657
12658 { set +x
12659 printf "%s\n" "$at_srcdir/mhl.at:20:
12660 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
12661 mhl -form mhl.format Mail/inbox/2
12662 "
12663 at_fn_check_prepare_notrace 'an embedded newline' "mhl.at:20"
12664 ( $at_check_trace;
12665 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
12666 mhl -form mhl.format Mail/inbox/2
12667
12668 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12669 at_status=$? at_failed=false
12670 $at_check_filter
12671 at_fn_diff_devnull "$at_stderr" || at_failed=:
12672 echo >>"$at_stdout"; printf "%s\n" " -- using template mhl.format --
12673 Date: Mon, 29 Jul 2002 22:00:02 +0100
12674 To: March Hare <[email protected]>
12675
12676 From: Alice <[email protected]>
12677 Subject: Re: Invitation
12678
12679
12680
12681 I don't see any wine
12682 " | \
12683 $at_diff - "$at_stdout" || at_failed=:
12684 at_fn_check_status 0 $at_status "$at_srcdir/mhl.at:20"
12685 $at_failed && at_fn_log_failure
12686 $at_traceon; }
12687
12688 set +x
12689 $at_times_p && times >"$at_times_file"
12690 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12691 read at_status <"$at_status_file"
12692 #AT_STOP_188
12693 #AT_START_189
12694 at_fn_group_banner 189 'mhl.at:37' \
12695 "mhl repl" " " 16
12696 at_xfail=no
12697 (
12698 printf "%s\n" "189. $at_setup_line: testing $at_desc ..."
12699 $at_traceon
12700
12701
12702
12703 test -d Mail || mkdir Mail
12704 HOME=`pwd`
12705 export HOME
12706 MH=$HOME/mh_profile
12707 export MH
12708 cat > $MH <<EOT
12709 Path: $HOME/Mail
12710 mhetcdir: $abs_top_srcdir/mh/etc
12711 moreproc: /bin/cat
12712 EOT
12713 MTSTAILOR=$HOME/mtstailor
12714 export MTSTAILOR
12715 exec <&-
12716
12717 { set +x
12718 printf "%s\n" "$at_srcdir/mhl.at:37:
12719 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
12720 mhl -form mhl.repl Mail/inbox/15
12721 "
12722 at_fn_check_prepare_notrace 'an embedded newline' "mhl.at:37"
12723 ( $at_check_trace;
12724 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
12725 mhl -form mhl.repl Mail/inbox/15
12726
12727 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12728 at_status=$? at_failed=false
12729 $at_check_filter
12730 at_fn_diff_devnull "$at_stderr" || at_failed=:
12731 echo >>"$at_stdout"; printf "%s\n" "
12732 Not the same thing a bit! You might just
12733 as well say that \"I see what I eat\" is the same thing as \"I eat
12734 what I see\"!
12735 " | \
12736 $at_diff - "$at_stdout" || at_failed=:
12737 at_fn_check_status 0 $at_status "$at_srcdir/mhl.at:37"
12738 $at_failed && at_fn_log_failure
12739 $at_traceon; }
12740
12741 set +x
12742 $at_times_p && times >"$at_times_file"
12743 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12744 read at_status <"$at_status_file"
12745 #AT_STOP_189
12746 #AT_START_190
12747 at_fn_group_banner 190 'mhl.at:48' \
12748 "mhl usenet" " " 16
12749 at_xfail=no
12750 (
12751 printf "%s\n" "190. $at_setup_line: testing $at_desc ..."
12752 $at_traceon
12753
12754
12755
12756 test -d Mail || mkdir Mail
12757 HOME=`pwd`
12758 export HOME
12759 MH=$HOME/mh_profile
12760 export MH
12761 cat > $MH <<EOT
12762 Path: $HOME/Mail
12763 mhetcdir: $abs_top_srcdir/mh/etc
12764 moreproc: /bin/cat
12765 EOT
12766 MTSTAILOR=$HOME/mtstailor
12767 export MTSTAILOR
12768 exec <&-
12769
12770 { set +x
12771 printf "%s\n" "$at_srcdir/mhl.at:48:
12772 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
12773 mhl -form mhl.usenet Mail/inbox/15
12774 "
12775 at_fn_check_prepare_notrace 'an embedded newline' "mhl.at:48"
12776 ( $at_check_trace;
12777 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
12778 mhl -form mhl.usenet Mail/inbox/15
12779
12780 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12781 at_status=$? at_failed=false
12782 $at_check_filter
12783 at_fn_diff_devnull "$at_stderr" || at_failed=:
12784 echo >>"$at_stdout"; printf "%s\n" "
12785 In message <[email protected]>, Hatter writes:
12786 >Not the same thing a bit! You might just
12787 >as well say that \"I see what I eat\" is the same thing as \"I eat
12788 >what I see\"!
12789 " | \
12790 $at_diff - "$at_stdout" || at_failed=:
12791 at_fn_check_status 0 $at_status "$at_srcdir/mhl.at:48"
12792 $at_failed && at_fn_log_failure
12793 $at_traceon; }
12794
12795 set +x
12796 $at_times_p && times >"$at_times_file"
12797 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12798 read at_status <"$at_status_file"
12799 #AT_STOP_190
12800 #AT_START_191
12801 at_fn_group_banner 191 'anno.at:20' \
12802 "anno" " " 17
12803 at_xfail=no
12804 (
12805 printf "%s\n" "191. $at_setup_line: testing $at_desc ..."
12806 $at_traceon
12807
12808
12809
12810 test -d Mail || mkdir Mail
12811 HOME=`pwd`
12812 export HOME
12813 MH=$HOME/mh_profile
12814 export MH
12815 cat > $MH <<EOT
12816 Path: $HOME/Mail
12817 mhetcdir: $abs_top_srcdir/mh/etc
12818 moreproc: /bin/cat
12819 EOT
12820 MTSTAILOR=$HOME/mtstailor
12821 export MTSTAILOR
12822 exec <&-
12823
12824 { set +x
12825 printf "%s\n" "$at_srcdir/anno.at:20:
12826 mbox2dir -m Mail/inbox \$spooldir/mbox1
12827 echo \"Current-Folder: inbox\" > Mail/context
12828 echo \"cur: 1\" > Mail/inbox/.mh_sequences
12829 echo Replied | anno || exit \$?
12830 sed -n '1{s/Replied: .*/REPLIED/p;}' Mail/inbox/1
12831 "
12832 at_fn_check_prepare_notrace 'an embedded newline' "anno.at:20"
12833 ( $at_check_trace;
12834 mbox2dir -m Mail/inbox $spooldir/mbox1
12835 echo "Current-Folder: inbox" > Mail/context
12836 echo "cur: 1" > Mail/inbox/.mh_sequences
12837 echo Replied | anno || exit $?
12838 sed -n '1{s/Replied: .*/REPLIED/p;}' Mail/inbox/1
12839
12840 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12841 at_status=$? at_failed=false
12842 $at_check_filter
12843 at_fn_diff_devnull "$at_stderr" || at_failed=:
12844 echo >>"$at_stdout"; printf "%s\n" "REPLIED
12845 " | \
12846 $at_diff - "$at_stdout" || at_failed=:
12847 at_fn_check_status 0 $at_status "$at_srcdir/anno.at:20"
12848 $at_failed && at_fn_log_failure
12849 $at_traceon; }
12850
12851 set +x
12852 $at_times_p && times >"$at_times_file"
12853 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12854 read at_status <"$at_status_file"
12855 #AT_STOP_191
12856 #AT_START_192
12857 at_fn_group_banner 192 'anno.at:31' \
12858 "anno -component" " " 17
12859 at_xfail=no
12860 (
12861 printf "%s\n" "192. $at_setup_line: testing $at_desc ..."
12862 $at_traceon
12863
12864
12865
12866 test -d Mail || mkdir Mail
12867 HOME=`pwd`
12868 export HOME
12869 MH=$HOME/mh_profile
12870 export MH
12871 cat > $MH <<EOT
12872 Path: $HOME/Mail
12873 mhetcdir: $abs_top_srcdir/mh/etc
12874 moreproc: /bin/cat
12875 EOT
12876 MTSTAILOR=$HOME/mtstailor
12877 export MTSTAILOR
12878 exec <&-
12879
12880 { set +x
12881 printf "%s\n" "$at_srcdir/anno.at:31:
12882 mbox2dir -m Mail/inbox \$spooldir/mbox1
12883 echo \"Current-Folder: inbox\" > Mail/context
12884 anno -component Replied 1 || exit \$?
12885 sed -n '1{s/Replied: .*/REPLIED/p;}' Mail/inbox/1
12886 "
12887 at_fn_check_prepare_notrace 'an embedded newline' "anno.at:31"
12888 ( $at_check_trace;
12889 mbox2dir -m Mail/inbox $spooldir/mbox1
12890 echo "Current-Folder: inbox" > Mail/context
12891 anno -component Replied 1 || exit $?
12892 sed -n '1{s/Replied: .*/REPLIED/p;}' Mail/inbox/1
12893
12894 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12895 at_status=$? at_failed=false
12896 $at_check_filter
12897 at_fn_diff_devnull "$at_stderr" || at_failed=:
12898 echo >>"$at_stdout"; printf "%s\n" "REPLIED
12899 " | \
12900 $at_diff - "$at_stdout" || at_failed=:
12901 at_fn_check_status 0 $at_status "$at_srcdir/anno.at:31"
12902 $at_failed && at_fn_log_failure
12903 $at_traceon; }
12904
12905 set +x
12906 $at_times_p && times >"$at_times_file"
12907 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12908 read at_status <"$at_status_file"
12909 #AT_STOP_192
12910 #AT_START_193
12911 at_fn_group_banner 193 'anno.at:41' \
12912 "anno -component -text" " " 17
12913 at_xfail=no
12914 (
12915 printf "%s\n" "193. $at_setup_line: testing $at_desc ..."
12916 $at_traceon
12917
12918
12919
12920 test -d Mail || mkdir Mail
12921 HOME=`pwd`
12922 export HOME
12923 MH=$HOME/mh_profile
12924 export MH
12925 cat > $MH <<EOT
12926 Path: $HOME/Mail
12927 mhetcdir: $abs_top_srcdir/mh/etc
12928 moreproc: /bin/cat
12929 EOT
12930 MTSTAILOR=$HOME/mtstailor
12931 export MTSTAILOR
12932 exec <&-
12933
12934 { set +x
12935 printf "%s\n" "$at_srcdir/anno.at:41:
12936 mbox2dir -m Mail/inbox \$spooldir/mbox1
12937 echo \"Current-Folder: inbox\" > Mail/context
12938 anno -component Replied -text OK 1 || exit \$?
12939 sed -n '3,\$d;/Replied/{s/Replied: [A-Z][a-z][a-z], [0-9][0-9] [A-Z][a-z][a-z] [0-9][0-9][0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] .*/Replied: DATE/;p;}' Mail/inbox/1
12940 "
12941 at_fn_check_prepare_notrace 'an embedded newline' "anno.at:41"
12942 ( $at_check_trace;
12943 mbox2dir -m Mail/inbox $spooldir/mbox1
12944 echo "Current-Folder: inbox" > Mail/context
12945 anno -component Replied -text OK 1 || exit $?
12946 sed -n '3,$d;/Replied/{s/Replied: [A-Z][a-z][a-z], [0-9][0-9] [A-Z][a-z][a-z] [0-9][0-9][0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] .*/Replied: DATE/;p;}' Mail/inbox/1
12947
12948 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12949 at_status=$? at_failed=false
12950 $at_check_filter
12951 at_fn_diff_devnull "$at_stderr" || at_failed=:
12952 echo >>"$at_stdout"; printf "%s\n" "Replied: OK
12953 Replied: DATE
12954 " | \
12955 $at_diff - "$at_stdout" || at_failed=:
12956 at_fn_check_status 0 $at_status "$at_srcdir/anno.at:41"
12957 $at_failed && at_fn_log_failure
12958 $at_traceon; }
12959
12960 set +x
12961 $at_times_p && times >"$at_times_file"
12962 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12963 read at_status <"$at_status_file"
12964 #AT_STOP_193
12965 #AT_START_194
12966 at_fn_group_banner 194 'anno.at:52' \
12967 "anno -component -text -nodate" " " 17
12968 at_xfail=no
12969 (
12970 printf "%s\n" "194. $at_setup_line: testing $at_desc ..."
12971 $at_traceon
12972
12973
12974
12975 test -d Mail || mkdir Mail
12976 HOME=`pwd`
12977 export HOME
12978 MH=$HOME/mh_profile
12979 export MH
12980 cat > $MH <<EOT
12981 Path: $HOME/Mail
12982 mhetcdir: $abs_top_srcdir/mh/etc
12983 moreproc: /bin/cat
12984 EOT
12985 MTSTAILOR=$HOME/mtstailor
12986 export MTSTAILOR
12987 exec <&-
12988
12989 { set +x
12990 printf "%s\n" "$at_srcdir/anno.at:52:
12991 mbox2dir -m Mail/inbox \$spooldir/mbox1
12992 echo \"Current-Folder: inbox\" > Mail/context
12993 anno -component Replied -text OK -nodate 1 || exit \$?
12994 sed -n '3,\$d;/Replied/{s/Replied: [A-Z][a-z][a-z], [0-9][0-9] [A-Z][a-z][a-z] [0-9][0-9][0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] .*/Replied: DATE/;p;}' Mail/inbox/1
12995 "
12996 at_fn_check_prepare_notrace 'an embedded newline' "anno.at:52"
12997 ( $at_check_trace;
12998 mbox2dir -m Mail/inbox $spooldir/mbox1
12999 echo "Current-Folder: inbox" > Mail/context
13000 anno -component Replied -text OK -nodate 1 || exit $?
13001 sed -n '3,$d;/Replied/{s/Replied: [A-Z][a-z][a-z], [0-9][0-9] [A-Z][a-z][a-z] [0-9][0-9][0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] .*/Replied: DATE/;p;}' Mail/inbox/1
13002
13003 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13004 at_status=$? at_failed=false
13005 $at_check_filter
13006 at_fn_diff_devnull "$at_stderr" || at_failed=:
13007 echo >>"$at_stdout"; printf "%s\n" "Replied: OK
13008 " | \
13009 $at_diff - "$at_stdout" || at_failed=:
13010 at_fn_check_status 0 $at_status "$at_srcdir/anno.at:52"
13011 $at_failed && at_fn_log_failure
13012 $at_traceon; }
13013
13014 set +x
13015 $at_times_p && times >"$at_times_file"
13016 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13017 read at_status <"$at_status_file"
13018 #AT_STOP_194
13019 #AT_START_195
13020 at_fn_group_banner 195 'pick.at:20' \
13021 "pick -from" " " 18
13022 at_xfail=no
13023 (
13024 printf "%s\n" "195. $at_setup_line: testing $at_desc ..."
13025 $at_traceon
13026
13027
13028
13029 test -d Mail || mkdir Mail
13030 HOME=`pwd`
13031 export HOME
13032 MH=$HOME/mh_profile
13033 export MH
13034 cat > $MH <<EOT
13035 Path: $HOME/Mail
13036 mhetcdir: $abs_top_srcdir/mh/etc
13037 moreproc: /bin/cat
13038 EOT
13039 MTSTAILOR=$HOME/mtstailor
13040 export MTSTAILOR
13041 exec <&-
13042
13043 { set +x
13044 printf "%s\n" "$at_srcdir/pick.at:20:
13045 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13046 echo \"Current-Folder: inbox\" > Mail/context
13047 echo \"cur: 1\" > Mail/inbox/.mh_sequences
13048 pick -from dormouse
13049 "
13050 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:20"
13051 ( $at_check_trace;
13052 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13053 echo "Current-Folder: inbox" > Mail/context
13054 echo "cur: 1" > Mail/inbox/.mh_sequences
13055 pick -from dormouse
13056
13057 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13058 at_status=$? at_failed=false
13059 $at_check_filter
13060 at_fn_diff_devnull "$at_stderr" || at_failed=:
13061 echo >>"$at_stdout"; printf "%s\n" "17
13062 31
13063 49
13064 61
13065 65
13066 67
13067 69
13068 77
13069 79
13070 81
13071 83
13072 88
13073 89
13074 91
13075 92
13076 " | \
13077 $at_diff - "$at_stdout" || at_failed=:
13078 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:20"
13079 $at_failed && at_fn_log_failure
13080 $at_traceon; }
13081
13082 set +x
13083 $at_times_p && times >"$at_times_file"
13084 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13085 read at_status <"$at_status_file"
13086 #AT_STOP_195
13087 #AT_START_196
13088 at_fn_group_banner 196 'pick.at:44' \
13089 "pick -from -sequence" " " 18
13090 at_xfail=no
13091 (
13092 printf "%s\n" "196. $at_setup_line: testing $at_desc ..."
13093 $at_traceon
13094
13095
13096
13097 test -d Mail || mkdir Mail
13098 HOME=`pwd`
13099 export HOME
13100 MH=$HOME/mh_profile
13101 export MH
13102 cat > $MH <<EOT
13103 Path: $HOME/Mail
13104 mhetcdir: $abs_top_srcdir/mh/etc
13105 moreproc: /bin/cat
13106 EOT
13107 MTSTAILOR=$HOME/mtstailor
13108 export MTSTAILOR
13109 exec <&-
13110
13111 { set +x
13112 printf "%s\n" "$at_srcdir/pick.at:44:
13113 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13114 echo \"Current-Folder: inbox\" > Mail/context
13115 echo \"cur: 1\" > Mail/inbox/.mh_sequences
13116 pick -from dormouse -sequence dormouse || exit \$?
13117 sed -n '/^dormouse:/{s/ */ /g;s/ \$//;p;}' Mail/inbox/.mh_sequences
13118 "
13119 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:44"
13120 ( $at_check_trace;
13121 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13122 echo "Current-Folder: inbox" > Mail/context
13123 echo "cur: 1" > Mail/inbox/.mh_sequences
13124 pick -from dormouse -sequence dormouse || exit $?
13125 sed -n '/^dormouse:/{s/ */ /g;s/ $//;p;}' Mail/inbox/.mh_sequences
13126
13127 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13128 at_status=$? at_failed=false
13129 $at_check_filter
13130 at_fn_diff_devnull "$at_stderr" || at_failed=:
13131 echo >>"$at_stdout"; printf "%s\n" "dormouse: 17 31 49 61 65 67 69 77 79 81 83 88 89 91 92
13132 " | \
13133 $at_diff - "$at_stdout" || at_failed=:
13134 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:44"
13135 $at_failed && at_fn_log_failure
13136 $at_traceon; }
13137
13138 set +x
13139 $at_times_p && times >"$at_times_file"
13140 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13141 read at_status <"$at_status_file"
13142 #AT_STOP_196
13143 #AT_START_197
13144 at_fn_group_banner 197 'pick.at:55' \
13145 "pick -search" " " 18
13146 at_xfail=no
13147 (
13148 printf "%s\n" "197. $at_setup_line: testing $at_desc ..."
13149 $at_traceon
13150
13151
13152
13153 test -d Mail || mkdir Mail
13154 HOME=`pwd`
13155 export HOME
13156 MH=$HOME/mh_profile
13157 export MH
13158 cat > $MH <<EOT
13159 Path: $HOME/Mail
13160 mhetcdir: $abs_top_srcdir/mh/etc
13161 moreproc: /bin/cat
13162 EOT
13163 MTSTAILOR=$HOME/mtstailor
13164 export MTSTAILOR
13165 exec <&-
13166
13167 { set +x
13168 printf "%s\n" "$at_srcdir/pick.at:55:
13169 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13170 echo \"Current-Folder: inbox\" > Mail/context
13171 echo \"cur: 1\" > Mail/inbox/.mh_sequences
13172 pick -search 'Why not'
13173 "
13174 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:55"
13175 ( $at_check_trace;
13176 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13177 echo "Current-Folder: inbox" > Mail/context
13178 echo "cur: 1" > Mail/inbox/.mh_sequences
13179 pick -search 'Why not'
13180
13181 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13182 at_status=$? at_failed=false
13183 $at_check_filter
13184 at_fn_diff_devnull "$at_stderr" || at_failed=:
13185 echo >>"$at_stdout"; printf "%s\n" "91
13186 " | \
13187 $at_diff - "$at_stdout" || at_failed=:
13188 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:55"
13189 $at_failed && at_fn_log_failure
13190 $at_traceon; }
13191
13192 set +x
13193 $at_times_p && times >"$at_times_file"
13194 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13195 read at_status <"$at_status_file"
13196 #AT_STOP_197
13197 #AT_START_198
13198 at_fn_group_banner 198 'pick.at:65' \
13199 "pick -search regex" " " 18
13200 at_xfail=no
13201 (
13202 printf "%s\n" "198. $at_setup_line: testing $at_desc ..."
13203 $at_traceon
13204
13205
13206
13207 test -d Mail || mkdir Mail
13208 HOME=`pwd`
13209 export HOME
13210 MH=$HOME/mh_profile
13211 export MH
13212 cat > $MH <<EOT
13213 Path: $HOME/Mail
13214 mhetcdir: $abs_top_srcdir/mh/etc
13215 moreproc: /bin/cat
13216 EOT
13217 MTSTAILOR=$HOME/mtstailor
13218 export MTSTAILOR
13219 exec <&-
13220
13221 { set +x
13222 printf "%s\n" "$at_srcdir/pick.at:65:
13223 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13224 echo \"Current-Folder: inbox\" > Mail/context
13225 echo \"cur: 1\" > Mail/inbox/.mh_sequences
13226 pick -search 'I.*think'
13227 "
13228 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:65"
13229 ( $at_check_trace;
13230 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13231 echo "Current-Folder: inbox" > Mail/context
13232 echo "cur: 1" > Mail/inbox/.mh_sequences
13233 pick -search 'I.*think'
13234
13235 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13236 at_status=$? at_failed=false
13237 $at_check_filter
13238 at_fn_diff_devnull "$at_stderr" || at_failed=:
13239 echo >>"$at_stdout"; printf "%s\n" "36
13240 86
13241 93
13242 " | \
13243 $at_diff - "$at_stdout" || at_failed=:
13244 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:65"
13245 $at_failed && at_fn_log_failure
13246 $at_traceon; }
13247
13248 set +x
13249 $at_times_p && times >"$at_times_file"
13250 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13251 read at_status <"$at_status_file"
13252 #AT_STOP_198
13253 #AT_START_199
13254 at_fn_group_banner 199 'pick.at:77' \
13255 "pick -subject -from" " " 18
13256 at_xfail=no
13257 (
13258 printf "%s\n" "199. $at_setup_line: testing $at_desc ..."
13259 $at_traceon
13260
13261
13262
13263 test -d Mail || mkdir Mail
13264 HOME=`pwd`
13265 export HOME
13266 MH=$HOME/mh_profile
13267 export MH
13268 cat > $MH <<EOT
13269 Path: $HOME/Mail
13270 mhetcdir: $abs_top_srcdir/mh/etc
13271 moreproc: /bin/cat
13272 EOT
13273 MTSTAILOR=$HOME/mtstailor
13274 export MTSTAILOR
13275 exec <&-
13276
13277 { set +x
13278 printf "%s\n" "$at_srcdir/pick.at:77:
13279 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13280 echo \"Current-Folder: inbox\" > Mail/context
13281 echo \"cur: 1\" > Mail/inbox/.mh_sequences
13282 pick -subject Story -from Dormouse
13283 "
13284 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:77"
13285 ( $at_check_trace;
13286 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13287 echo "Current-Folder: inbox" > Mail/context
13288 echo "cur: 1" > Mail/inbox/.mh_sequences
13289 pick -subject Story -from Dormouse
13290
13291 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13292 at_status=$? at_failed=false
13293 $at_check_filter
13294 at_fn_diff_devnull "$at_stderr" || at_failed=:
13295 echo >>"$at_stdout"; printf "%s\n" "61
13296 65
13297 67
13298 69
13299 77
13300 79
13301 81
13302 83
13303 88
13304 89
13305 91
13306 92
13307 " | \
13308 $at_diff - "$at_stdout" || at_failed=:
13309 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:77"
13310 $at_failed && at_fn_log_failure
13311 $at_traceon; }
13312
13313 set +x
13314 $at_times_p && times >"$at_times_file"
13315 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13316 read at_status <"$at_status_file"
13317 #AT_STOP_199
13318 #AT_START_200
13319 at_fn_group_banner 200 'pick.at:98' \
13320 "pick -subject -and -from" " " 18
13321 at_xfail=no
13322 (
13323 printf "%s\n" "200. $at_setup_line: testing $at_desc ..."
13324 $at_traceon
13325
13326
13327
13328 test -d Mail || mkdir Mail
13329 HOME=`pwd`
13330 export HOME
13331 MH=$HOME/mh_profile
13332 export MH
13333 cat > $MH <<EOT
13334 Path: $HOME/Mail
13335 mhetcdir: $abs_top_srcdir/mh/etc
13336 moreproc: /bin/cat
13337 EOT
13338 MTSTAILOR=$HOME/mtstailor
13339 export MTSTAILOR
13340 exec <&-
13341
13342 { set +x
13343 printf "%s\n" "$at_srcdir/pick.at:98:
13344 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13345 echo \"Current-Folder: inbox\" > Mail/context
13346 echo \"cur: 1\" > Mail/inbox/.mh_sequences
13347 pick -subject Story -and -from Dormouse
13348 "
13349 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:98"
13350 ( $at_check_trace;
13351 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13352 echo "Current-Folder: inbox" > Mail/context
13353 echo "cur: 1" > Mail/inbox/.mh_sequences
13354 pick -subject Story -and -from Dormouse
13355
13356 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13357 at_status=$? at_failed=false
13358 $at_check_filter
13359 at_fn_diff_devnull "$at_stderr" || at_failed=:
13360 echo >>"$at_stdout"; printf "%s\n" "61
13361 65
13362 67
13363 69
13364 77
13365 79
13366 81
13367 83
13368 88
13369 89
13370 91
13371 92
13372 " | \
13373 $at_diff - "$at_stdout" || at_failed=:
13374 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:98"
13375 $at_failed && at_fn_log_failure
13376 $at_traceon; }
13377
13378 set +x
13379 $at_times_p && times >"$at_times_file"
13380 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13381 read at_status <"$at_status_file"
13382 #AT_STOP_200
13383 #AT_START_201
13384 at_fn_group_banner 201 'pick.at:119' \
13385 "pick -subject -or -from" " " 18
13386 at_xfail=no
13387 (
13388 printf "%s\n" "201. $at_setup_line: testing $at_desc ..."
13389 $at_traceon
13390
13391
13392
13393 test -d Mail || mkdir Mail
13394 HOME=`pwd`
13395 export HOME
13396 MH=$HOME/mh_profile
13397 export MH
13398 cat > $MH <<EOT
13399 Path: $HOME/Mail
13400 mhetcdir: $abs_top_srcdir/mh/etc
13401 moreproc: /bin/cat
13402 EOT
13403 MTSTAILOR=$HOME/mtstailor
13404 export MTSTAILOR
13405 exec <&-
13406
13407 { set +x
13408 printf "%s\n" "$at_srcdir/pick.at:119:
13409 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13410 echo \"Current-Folder: inbox\" > Mail/context
13411 echo \"cur: 1\" > Mail/inbox/.mh_sequences
13412 pick -subject Story -or -from Dormouse
13413 "
13414 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:119"
13415 ( $at_check_trace;
13416 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13417 echo "Current-Folder: inbox" > Mail/context
13418 echo "cur: 1" > Mail/inbox/.mh_sequences
13419 pick -subject Story -or -from Dormouse
13420
13421 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13422 at_status=$? at_failed=false
13423 $at_check_filter
13424 at_fn_diff_devnull "$at_stderr" || at_failed=:
13425 echo >>"$at_stdout"; printf "%s\n" "17
13426 31
13427 49
13428 58
13429 59
13430 60
13431 61
13432 62
13433 63
13434 64
13435 65
13436 66
13437 67
13438 68
13439 69
13440 70
13441 76
13442 77
13443 78
13444 79
13445 80
13446 81
13447 82
13448 83
13449 85
13450 86
13451 87
13452 88
13453 89
13454 90
13455 91
13456 92
13457 93
13458 " | \
13459 $at_diff - "$at_stdout" || at_failed=:
13460 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:119"
13461 $at_failed && at_fn_log_failure
13462 $at_traceon; }
13463
13464 set +x
13465 $at_times_p && times >"$at_times_file"
13466 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13467 read at_status <"$at_status_file"
13468 #AT_STOP_201
13469 #AT_START_202
13470 at_fn_group_banner 202 'pick.at:161' \
13471 "pick: default precedence" " " 18
13472 at_xfail=no
13473 (
13474 printf "%s\n" "202. $at_setup_line: testing $at_desc ..."
13475 $at_traceon
13476
13477
13478
13479 test -d Mail || mkdir Mail
13480 HOME=`pwd`
13481 export HOME
13482 MH=$HOME/mh_profile
13483 export MH
13484 cat > $MH <<EOT
13485 Path: $HOME/Mail
13486 mhetcdir: $abs_top_srcdir/mh/etc
13487 moreproc: /bin/cat
13488 EOT
13489 MTSTAILOR=$HOME/mtstailor
13490 export MTSTAILOR
13491 exec <&-
13492
13493 { set +x
13494 printf "%s\n" "$at_srcdir/pick.at:161:
13495 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13496 echo \"Current-Folder: inbox\" > Mail/context
13497 echo \"cur: 1\" > Mail/inbox/.mh_sequences
13498 pick -subject Story -and -from Dormouse -or -from Alice
13499 "
13500 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:161"
13501 ( $at_check_trace;
13502 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13503 echo "Current-Folder: inbox" > Mail/context
13504 echo "cur: 1" > Mail/inbox/.mh_sequences
13505 pick -subject Story -and -from Dormouse -or -from Alice
13506
13507 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13508 at_status=$? at_failed=false
13509 $at_check_filter
13510 at_fn_diff_devnull "$at_stderr" || at_failed=:
13511 echo >>"$at_stdout"; printf "%s\n" "2
13512 4
13513 6
13514 8
13515 10
13516 12
13517 14
13518 20
13519 25
13520 27
13521 29
13522 33
13523 36
13524 38
13525 40
13526 43
13527 45
13528 47
13529 51
13530 53
13531 55
13532 57
13533 59
13534 61
13535 63
13536 65
13537 66
13538 67
13539 68
13540 69
13541 70
13542 72
13543 74
13544 76
13545 77
13546 78
13547 79
13548 80
13549 81
13550 82
13551 83
13552 85
13553 87
13554 88
13555 89
13556 90
13557 91
13558 92
13559 93
13560 95
13561 " | \
13562 $at_diff - "$at_stdout" || at_failed=:
13563 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:161"
13564 $at_failed && at_fn_log_failure
13565 $at_traceon; }
13566
13567 set +x
13568 $at_times_p && times >"$at_times_file"
13569 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13570 read at_status <"$at_status_file"
13571 #AT_STOP_202
13572 #AT_START_203
13573 at_fn_group_banner 203 'pick.at:220' \
13574 "pick: explicit precedence (1)" " " 18
13575 at_xfail=no
13576 (
13577 printf "%s\n" "203. $at_setup_line: testing $at_desc ..."
13578 $at_traceon
13579
13580
13581
13582 test -d Mail || mkdir Mail
13583 HOME=`pwd`
13584 export HOME
13585 MH=$HOME/mh_profile
13586 export MH
13587 cat > $MH <<EOT
13588 Path: $HOME/Mail
13589 mhetcdir: $abs_top_srcdir/mh/etc
13590 moreproc: /bin/cat
13591 EOT
13592 MTSTAILOR=$HOME/mtstailor
13593 export MTSTAILOR
13594 exec <&-
13595
13596 { set +x
13597 printf "%s\n" "$at_srcdir/pick.at:220:
13598 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13599 echo \"Current-Folder: inbox\" > Mail/context
13600 echo \"cur: 1\" > Mail/inbox/.mh_sequences
13601 pick -lbrace -subject Story -and -from Dormouse -rbrace -or -from Alice
13602 "
13603 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:220"
13604 ( $at_check_trace;
13605 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13606 echo "Current-Folder: inbox" > Mail/context
13607 echo "cur: 1" > Mail/inbox/.mh_sequences
13608 pick -lbrace -subject Story -and -from Dormouse -rbrace -or -from Alice
13609
13610 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13611 at_status=$? at_failed=false
13612 $at_check_filter
13613 at_fn_diff_devnull "$at_stderr" || at_failed=:
13614 echo >>"$at_stdout"; printf "%s\n" "2
13615 4
13616 6
13617 8
13618 10
13619 12
13620 14
13621 20
13622 25
13623 27
13624 29
13625 33
13626 36
13627 38
13628 40
13629 43
13630 45
13631 47
13632 51
13633 53
13634 55
13635 57
13636 59
13637 61
13638 63
13639 65
13640 66
13641 67
13642 68
13643 69
13644 70
13645 72
13646 74
13647 76
13648 77
13649 78
13650 79
13651 80
13652 81
13653 82
13654 83
13655 85
13656 87
13657 88
13658 89
13659 90
13660 91
13661 92
13662 93
13663 95
13664 " | \
13665 $at_diff - "$at_stdout" || at_failed=:
13666 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:220"
13667 $at_failed && at_fn_log_failure
13668 $at_traceon; }
13669
13670 set +x
13671 $at_times_p && times >"$at_times_file"
13672 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13673 read at_status <"$at_status_file"
13674 #AT_STOP_203
13675 #AT_START_204
13676 at_fn_group_banner 204 'pick.at:279' \
13677 "pick: explicit precedence (2)" " " 18
13678 at_xfail=no
13679 (
13680 printf "%s\n" "204. $at_setup_line: testing $at_desc ..."
13681 $at_traceon
13682
13683
13684
13685 test -d Mail || mkdir Mail
13686 HOME=`pwd`
13687 export HOME
13688 MH=$HOME/mh_profile
13689 export MH
13690 cat > $MH <<EOT
13691 Path: $HOME/Mail
13692 mhetcdir: $abs_top_srcdir/mh/etc
13693 moreproc: /bin/cat
13694 EOT
13695 MTSTAILOR=$HOME/mtstailor
13696 export MTSTAILOR
13697 exec <&-
13698
13699 { set +x
13700 printf "%s\n" "$at_srcdir/pick.at:279:
13701 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13702 echo \"Current-Folder: inbox\" > Mail/context
13703 echo \"cur: 1\" > Mail/inbox/.mh_sequences
13704 pick -subject Story -and -lbrace -from Dormouse -or -from Alice -rbrace
13705 "
13706 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:279"
13707 ( $at_check_trace;
13708 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13709 echo "Current-Folder: inbox" > Mail/context
13710 echo "cur: 1" > Mail/inbox/.mh_sequences
13711 pick -subject Story -and -lbrace -from Dormouse -or -from Alice -rbrace
13712
13713 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13714 at_status=$? at_failed=false
13715 $at_check_filter
13716 at_fn_diff_devnull "$at_stderr" || at_failed=:
13717 echo >>"$at_stdout"; printf "%s\n" "59
13718 61
13719 63
13720 65
13721 66
13722 67
13723 68
13724 69
13725 70
13726 76
13727 77
13728 78
13729 79
13730 80
13731 81
13732 82
13733 83
13734 85
13735 87
13736 88
13737 89
13738 90
13739 91
13740 92
13741 93
13742 " | \
13743 $at_diff - "$at_stdout" || at_failed=:
13744 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:279"
13745 $at_failed && at_fn_log_failure
13746 $at_traceon; }
13747
13748 set +x
13749 $at_times_p && times >"$at_times_file"
13750 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13751 read at_status <"$at_status_file"
13752 #AT_STOP_204
13753 #AT_START_205
13754 at_fn_group_banner 205 'pick.at:313' \
13755 "pick -before" " " 18
13756 at_xfail=no
13757 (
13758 printf "%s\n" "205. $at_setup_line: testing $at_desc ..."
13759 $at_traceon
13760
13761
13762
13763 test -d Mail || mkdir Mail
13764 HOME=`pwd`
13765 export HOME
13766 MH=$HOME/mh_profile
13767 export MH
13768 cat > $MH <<EOT
13769 Path: $HOME/Mail
13770 mhetcdir: $abs_top_srcdir/mh/etc
13771 moreproc: /bin/cat
13772 EOT
13773 MTSTAILOR=$HOME/mtstailor
13774 export MTSTAILOR
13775 exec <&-
13776
13777 { set +x
13778 printf "%s\n" "$at_srcdir/pick.at:313:
13779 mbox2dir -m Mail/inbox \$spooldir/teaparty.mbox
13780 echo \"Current-Folder: inbox\" > Mail/context
13781 pick -before 'Mon, 29 Jul 2002 21:00:03 +0000'
13782 "
13783 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:313"
13784 ( $at_check_trace;
13785 mbox2dir -m Mail/inbox $spooldir/teaparty.mbox
13786 echo "Current-Folder: inbox" > Mail/context
13787 pick -before 'Mon, 29 Jul 2002 21:00:03 +0000'
13788
13789 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13790 at_status=$? at_failed=false
13791 $at_check_filter
13792 at_fn_diff_devnull "$at_stderr" || at_failed=:
13793 echo >>"$at_stdout"; printf "%s\n" "1
13794 2
13795 " | \
13796 $at_diff - "$at_stdout" || at_failed=:
13797 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:313"
13798 $at_failed && at_fn_log_failure
13799 $at_traceon; }
13800
13801 set +x
13802 $at_times_p && times >"$at_times_file"
13803 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13804 read at_status <"$at_status_file"
13805 #AT_STOP_205
13806 #AT_START_206
13807 at_fn_group_banner 206 'pick.at:323' \
13808 "pick --Component pattern" " " 18
13809 at_xfail=no
13810 (
13811 printf "%s\n" "206. $at_setup_line: testing $at_desc ..."
13812 $at_traceon
13813
13814
13815
13816 test -d Mail || mkdir Mail
13817 HOME=`pwd`
13818 export HOME
13819 MH=$HOME/mh_profile
13820 export MH
13821 cat > $MH <<EOT
13822 Path: $HOME/Mail
13823 mhetcdir: $abs_top_srcdir/mh/etc
13824 moreproc: /bin/cat
13825 EOT
13826 MTSTAILOR=$HOME/mtstailor
13827 export MTSTAILOR
13828 exec <&-
13829
13830 { set +x
13831 printf "%s\n" "$at_srcdir/pick.at:323:
13832 mbox2dir -e -m Mail/inbox \$spooldir/teaparty.mbox
13833 pick --Return-Path hare
13834 "
13835 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:323"
13836 ( $at_check_trace;
13837 mbox2dir -e -m Mail/inbox $spooldir/teaparty.mbox
13838 pick --Return-Path hare
13839
13840 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13841 at_status=$? at_failed=false
13842 $at_check_filter
13843 at_fn_diff_devnull "$at_stderr" || at_failed=:
13844 echo >>"$at_stdout"; printf "%s\n" "1
13845 3
13846 5
13847 7
13848 9
13849 11
13850 13
13851 16
13852 22
13853 24
13854 35
13855 42
13856 58
13857 62
13858 71
13859 " | \
13860 $at_diff - "$at_stdout" || at_failed=:
13861 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:323"
13862 $at_failed && at_fn_log_failure
13863 $at_traceon; }
13864
13865 set +x
13866 $at_times_p && times >"$at_times_file"
13867 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13868 read at_status <"$at_status_file"
13869 #AT_STOP_206
13870 #AT_START_207
13871 at_fn_group_banner 207 'pick.at:345' \
13872 "pick --Component pattern -or ..." " " 18
13873 at_xfail=no
13874 (
13875 printf "%s\n" "207. $at_setup_line: testing $at_desc ..."
13876 $at_traceon
13877
13878
13879
13880 test -d Mail || mkdir Mail
13881 HOME=`pwd`
13882 export HOME
13883 MH=$HOME/mh_profile
13884 export MH
13885 cat > $MH <<EOT
13886 Path: $HOME/Mail
13887 mhetcdir: $abs_top_srcdir/mh/etc
13888 moreproc: /bin/cat
13889 EOT
13890 MTSTAILOR=$HOME/mtstailor
13891 export MTSTAILOR
13892 exec <&-
13893
13894 { set +x
13895 printf "%s\n" "$at_srcdir/pick.at:345:
13896 mbox2dir -e -m Mail/inbox \$spooldir/teaparty.mbox
13897 pick --Return-Path hare -or -to hare
13898 "
13899 at_fn_check_prepare_notrace 'an embedded newline' "pick.at:345"
13900 ( $at_check_trace;
13901 mbox2dir -e -m Mail/inbox $spooldir/teaparty.mbox
13902 pick --Return-Path hare -or -to hare
13903
13904 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13905 at_status=$? at_failed=false
13906 $at_check_filter
13907 at_fn_diff_devnull "$at_stderr" || at_failed=:
13908 echo >>"$at_stdout"; printf "%s\n" "1
13909 2
13910 3
13911 4
13912 5
13913 6
13914 7
13915 8
13916 9
13917 10
13918 11
13919 12
13920 13
13921 14
13922 16
13923 21
13924 22
13925 23
13926 24
13927 35
13928 42
13929 58
13930 59
13931 62
13932 71
13933 72
13934 " | \
13935 $at_diff - "$at_stdout" || at_failed=:
13936 at_fn_check_status 0 $at_status "$at_srcdir/pick.at:345"
13937 $at_failed && at_fn_log_failure
13938 $at_traceon; }
13939
13940 set +x
13941 $at_times_p && times >"$at_times_file"
13942 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13943 read at_status <"$at_status_file"
13944 #AT_STOP_207
13945 #AT_START_208
13946 at_fn_group_banner 208 'burst.at:20' \
13947 "burst digest" " " 19
13948 at_xfail=no
13949 (
13950 printf "%s\n" "208. $at_setup_line: testing $at_desc ..."
13951 $at_traceon
13952
13953
13954
13955 test -d Mail || mkdir Mail
13956 HOME=`pwd`
13957 export HOME
13958 MH=$HOME/mh_profile
13959 export MH
13960 cat > $MH <<EOT
13961 Path: $HOME/Mail
13962 mhetcdir: $abs_top_srcdir/mh/etc
13963 moreproc: /bin/cat
13964 EOT
13965 MTSTAILOR=$HOME/mtstailor
13966 export MTSTAILOR
13967 exec <&-
13968
13969 { set +x
13970 printf "%s\n" "$at_srcdir/burst.at:20:
13971 mkdir Mail/inbox
13972 cat >Mail/inbox/1 <<'_ATEOF'
13973 From: Sergey Poznyakoff <[email protected]>
13974 To: [email protected]
13975 Subject: digest
13976
13977 Initial text.
13978
13979 ------- Forwarded message
13980 From: Puszcza hackers
13981 To: Sergey Poznyakoff <[email protected]>
13982 Subject: Hello
13983
13984 Greetings
13985 - ---------
13986 How are you?
13987 ------- End of Forwarded message
13988
13989 Regards,
13990 Sergey
13991 _ATEOF
13992
13993
13994 burst +inbox 1 || exit \$?
13995 grep -v ^X-Envelope- Mail/inbox/2
13996 grep -v ^X-Envelope- Mail/inbox/3
13997 grep -v ^X-Envelope- Mail/inbox/4
13998 "
13999 at_fn_check_prepare_notrace 'an embedded newline' "burst.at:20"
14000 ( $at_check_trace;
14001 mkdir Mail/inbox
14002 cat >Mail/inbox/1 <<'_ATEOF'
14003 From: Sergey Poznyakoff <[email protected]>
14004 To: [email protected]
14005 Subject: digest
14006
14007 Initial text.
14008
14009 ------- Forwarded message
14010 From: Puszcza hackers
14011 To: Sergey Poznyakoff <[email protected]>
14012 Subject: Hello
14013
14014 Greetings
14015 - ---------
14016 How are you?
14017 ------- End of Forwarded message
14018
14019 Regards,
14020 Sergey
14021 _ATEOF
14022
14023
14024 burst +inbox 1 || exit $?
14025 grep -v ^X-Envelope- Mail/inbox/2
14026 grep -v ^X-Envelope- Mail/inbox/3
14027 grep -v ^X-Envelope- Mail/inbox/4
14028
14029 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14030 at_status=$? at_failed=false
14031 $at_check_filter
14032 at_fn_diff_devnull "$at_stderr" || at_failed=:
14033 echo >>"$at_stdout"; printf "%s\n" "X-Burst-Part: 1 1 01
14034 From: Sergey Poznyakoff <[email protected]>
14035 To: [email protected]
14036 Subject: digest
14037
14038 Initial text.
14039
14040 X-Burst-Part: 1 2 02
14041 From: Puszcza hackers
14042 To: Sergey Poznyakoff <[email protected]>
14043 Subject: Hello
14044
14045 Greetings
14046 ---------
14047 How are you?
14048 X-Burst-Part: 1 3 00
14049
14050 Regards,
14051 Sergey
14052 " | \
14053 $at_diff - "$at_stdout" || at_failed=:
14054 at_fn_check_status 0 $at_status "$at_srcdir/burst.at:20"
14055 $at_failed && at_fn_log_failure
14056 $at_traceon; }
14057
14058 set +x
14059 $at_times_p && times >"$at_times_file"
14060 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14061 read at_status <"$at_status_file"
14062 #AT_STOP_208
14063 #AT_START_209
14064 at_fn_group_banner 209 'burst.at:70' \
14065 "burst digest /w EB length limit" " " 19
14066 at_xfail=no
14067 (
14068 printf "%s\n" "209. $at_setup_line: testing $at_desc ..."
14069 $at_traceon
14070
14071
14072
14073 test -d Mail || mkdir Mail
14074 HOME=`pwd`
14075 export HOME
14076 MH=$HOME/mh_profile
14077 export MH
14078 cat > $MH <<EOT
14079 Path: $HOME/Mail
14080 mhetcdir: $abs_top_srcdir/mh/etc
14081 moreproc: /bin/cat
14082 EOT
14083 MTSTAILOR=$HOME/mtstailor
14084 export MTSTAILOR
14085 exec <&-
14086
14087 { set +x
14088 printf "%s\n" "$at_srcdir/burst.at:70:
14089 mkdir Mail/inbox
14090 cat >Mail/inbox/1 <<'_ATEOF'
14091 From: Sergey Poznyakoff <[email protected]>
14092 To: [email protected]
14093 Subject: digest
14094
14095 Initial text.
14096
14097 ------- Forwarded message
14098 From: Puszcza hackers
14099 To: Sergey Poznyakoff <[email protected]>
14100 Subject: Hello
14101
14102 Greetings
14103 -----
14104 How are you?
14105 ------- End of Forwarded message
14106
14107 Regards,
14108 Sergey
14109 _ATEOF
14110
14111
14112 burst +inbox -length 7 1 || exit \$?
14113 grep -v ^X-Envelope- Mail/inbox/2
14114 grep -v ^X-Envelope- Mail/inbox/3
14115 grep -v ^X-Envelope- Mail/inbox/4
14116 "
14117 at_fn_check_prepare_notrace 'an embedded newline' "burst.at:70"
14118 ( $at_check_trace;
14119 mkdir Mail/inbox
14120 cat >Mail/inbox/1 <<'_ATEOF'
14121 From: Sergey Poznyakoff <[email protected]>
14122 To: [email protected]
14123 Subject: digest
14124
14125 Initial text.
14126
14127 ------- Forwarded message
14128 From: Puszcza hackers
14129 To: Sergey Poznyakoff <[email protected]>
14130 Subject: Hello
14131
14132 Greetings
14133 -----
14134 How are you?
14135 ------- End of Forwarded message
14136
14137 Regards,
14138 Sergey
14139 _ATEOF
14140
14141
14142 burst +inbox -length 7 1 || exit $?
14143 grep -v ^X-Envelope- Mail/inbox/2
14144 grep -v ^X-Envelope- Mail/inbox/3
14145 grep -v ^X-Envelope- Mail/inbox/4
14146
14147 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14148 at_status=$? at_failed=false
14149 $at_check_filter
14150 at_fn_diff_devnull "$at_stderr" || at_failed=:
14151 echo >>"$at_stdout"; printf "%s\n" "X-Burst-Part: 1 1 01
14152 From: Sergey Poznyakoff <[email protected]>
14153 To: [email protected]
14154 Subject: digest
14155
14156 Initial text.
14157
14158 X-Burst-Part: 1 2 02
14159 From: Puszcza hackers
14160 To: Sergey Poznyakoff <[email protected]>
14161 Subject: Hello
14162
14163 Greetings
14164 -----
14165 How are you?
14166 X-Burst-Part: 1 3 00
14167
14168 Regards,
14169 Sergey
14170 " | \
14171 $at_diff - "$at_stdout" || at_failed=:
14172 at_fn_check_status 0 $at_status "$at_srcdir/burst.at:70"
14173 $at_failed && at_fn_log_failure
14174 $at_traceon; }
14175
14176 set +x
14177 $at_times_p && times >"$at_times_file"
14178 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14179 read at_status <"$at_status_file"
14180 #AT_STOP_209
14181 #AT_START_210
14182 at_fn_group_banner 210 'burst.at:120' \
14183 "burst mime" " " 19
14184 at_xfail=no
14185 (
14186 printf "%s\n" "210. $at_setup_line: testing $at_desc ..."
14187 $at_traceon
14188
14189
14190
14191 test -d Mail || mkdir Mail
14192 HOME=`pwd`
14193 export HOME
14194 MH=$HOME/mh_profile
14195 export MH
14196 cat > $MH <<EOT
14197 Path: $HOME/Mail
14198 mhetcdir: $abs_top_srcdir/mh/etc
14199 moreproc: /bin/cat
14200 EOT
14201 MTSTAILOR=$HOME/mtstailor
14202 export MTSTAILOR
14203 exec <&-
14204
14205 { set +x
14206 printf "%s\n" "$at_srcdir/burst.at:120:
14207 mbox2dir -m Mail/inbox \$spooldir/mbox1
14208 burst +inbox 3 || exit \$?
14209 grep -v ^X-Envelope- Mail/inbox/6
14210 "
14211 at_fn_check_prepare_notrace 'an embedded newline' "burst.at:120"
14212 ( $at_check_trace;
14213 mbox2dir -m Mail/inbox $spooldir/mbox1
14214 burst +inbox 3 || exit $?
14215 grep -v ^X-Envelope- Mail/inbox/6
14216
14217 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14218 at_status=$? at_failed=false
14219 $at_check_filter
14220 at_fn_diff_devnull "$at_stderr" || at_failed=:
14221 echo >>"$at_stdout"; printf "%s\n" "Content-Type: text/plain; name=\"msg.1\"; charset=\"us-ascii\"
14222 Content-ID: <[email protected]>
14223 Content-Description: How doth
14224
14225 How doth the little crocodile
14226 Improve his shining tail,
14227 And pour the waters of the Nile
14228 On every golden scale!
14229
14230 \`How cheerfully he seems to grin,
14231 How neatly spread his claws,
14232 And welcome little fishes in
14233 With gently smiling jaws!
14234 " | \
14235 $at_diff - "$at_stdout" || at_failed=:
14236 at_fn_check_status 0 $at_status "$at_srcdir/burst.at:120"
14237 $at_failed && at_fn_log_failure
14238 $at_traceon; }
14239
14240 set +x
14241 $at_times_p && times >"$at_times_file"
14242 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14243 read at_status <"$at_status_file"
14244 #AT_STOP_210
14245 #AT_START_211
14246 at_fn_group_banner 211 'burst.at:141' \
14247 "burst mime recursive" " " 19
14248 at_xfail=no
14249 (
14250 printf "%s\n" "211. $at_setup_line: testing $at_desc ..."
14251 $at_traceon
14252
14253
14254
14255 test -d Mail || mkdir Mail
14256 HOME=`pwd`
14257 export HOME
14258 MH=$HOME/mh_profile
14259 export MH
14260 cat > $MH <<EOT
14261 Path: $HOME/Mail
14262 mhetcdir: $abs_top_srcdir/mh/etc
14263 moreproc: /bin/cat
14264 EOT
14265 MTSTAILOR=$HOME/mtstailor
14266 export MTSTAILOR
14267 exec <&-
14268
14269 { set +x
14270 printf "%s\n" "$at_srcdir/burst.at:141:
14271 mbox2dir -m Mail/inbox \$spooldir/mbox1
14272 burst +inbox -recursive 4 || exit \$?
14273 grep -v ^X-Envelope- Mail/inbox/6
14274 grep -v ^X-Envelope- Mail/inbox/7
14275 grep -v ^X-Envelope- Mail/inbox/8
14276 grep -v ^X-Envelope- Mail/inbox/9
14277 "
14278 at_fn_check_prepare_notrace 'an embedded newline' "burst.at:141"
14279 ( $at_check_trace;
14280 mbox2dir -m Mail/inbox $spooldir/mbox1
14281 burst +inbox -recursive 4 || exit $?
14282 grep -v ^X-Envelope- Mail/inbox/6
14283 grep -v ^X-Envelope- Mail/inbox/7
14284 grep -v ^X-Envelope- Mail/inbox/8
14285 grep -v ^X-Envelope- Mail/inbox/9
14286
14287 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14288 at_status=$? at_failed=false
14289 $at_check_filter
14290 at_fn_diff_devnull "$at_stderr" || at_failed=:
14291 echo >>"$at_stdout"; printf "%s\n" "Content-Type: text/plain; name=\"msg.21\"; charset=\"us-ascii\"
14292 Content-ID: <[email protected]>
14293 Content-Description: Father William Part I
14294
14295 \`You are old, Father William,' the young man said,
14296 \`And your hair has become very white;
14297 And yet you incessantly stand on your head--
14298 Do you think, at your age, it is right?'
14299
14300 \`In my youth,' Father William replied to his son,
14301 \`I feared it might injure the brain;
14302 But, now that I'm perfectly sure I have none,
14303 Why, I do it again and again.'
14304
14305 Content-Type: application/octet-stream; name=\"msg.22\"
14306 Content-ID: <[email protected]>
14307 Content-Description: Father William Part II
14308 Content-Transfer-Encoding: base64
14309
14310 YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhcyBJIG1lbnRpb25lZCBiZWZvcmUsCkFu
14311 ZCBoYXZlIGdyb3duIG1vc3QgdW5jb21tb25seSBmYXQ7CllldCB5b3UgdHVybmVkIGEgYmFjay1z
14312 b21lcnNhdWx0IGluIGF0IHRoZSBkb29yLS0KUHJheSwgd2hhdCBpcyB0aGUgcmVhc29uIG9mIHRo
14313 YXQ/JwoKYEluIG15IHlvdXRoLCcgc2FpZCB0aGUgc2FnZSwgYXMgaGUgc2hvb2sgaGlzIGdyZXkg
14314 bG9ja3MsCmBJIGtlcHQgYWxsIG15IGxpbWJzIHZlcnkgc3VwcGxlCkJ5IHRoZSB1c2Ugb2YgdGhp
14315 cyBvaW50bWVudC0tb25lIHNoaWxsaW5nIHRoZSBib3gtLQpBbGxvdyBtZSB0byBzZWxsIHlvdSBh
14316 IGNvdXBsZT8nCg==
14317 Content-Type: application/octet-stream; name=\"msg.23\"
14318 Content-ID: <[email protected]>
14319 Content-Description: Father William Part III
14320 Content-Transfer-Encoding: base64
14321
14322 YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhbmQgeW91ciBqYXdzIGFyZSB0b28gd2Vh
14323 awpGb3IgYW55dGhpbmcgdG91Z2hlciB0aGFuIHN1ZXQ7CllldCB5b3UgZmluaXNoZWQgdGhlIGdv
14324 b3NlLCB3aXRoIHRoZSBib25lcyBhbmQgdGhlIGJlYWstLQpQcmF5IGhvdyBkaWQgeW91IG1hbmFn
14325 ZSB0byBkbyBpdD8nCgpgSW4gbXkgeW91dGgsJyBzYWlkIGhpcyBmYXRoZXIsIGBJIHRvb2sgdG8g
14326 dGhlIGxhdywKQW5kIGFyZ3VlZCBlYWNoIGNhc2Ugd2l0aCBteSB3aWZlOwpBbmQgdGhlIG11c2N1
14327 bGFyIHN0cmVuZ3RoLCB3aGljaCBpdCBnYXZlIHRvIG15IGphdywKSGFzIGxhc3RlZCB0aGUgcmVz
14328 dCBvZiBteSBsaWZlLicK
14329 Content-Type: application/octet-stream; name=\"msg.24\"
14330 Content-ID: <[email protected]>
14331 Content-Description: Father William Part IV
14332 Content-Transfer-Encoding: base64
14333
14334 YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBvbmUgd291bGQgaGFyZGx5IHN1cHBvc2UK
14335 VGhhdCB5b3VyIGV5ZSB3YXMgYXMgc3RlYWR5IGFzIGV2ZXI7CllldCB5b3UgYmFsYW5jZWQgYW4g
14336 ZWVsIG9uIHRoZSBlbmQgb2YgeW91ciBub3NlLS0KV2hhdCBtYWRlIHlvdSBzbyBhd2Z1bGx5IGNs
14337 ZXZlcj8nCgpgSSBoYXZlIGFuc3dlcmVkIHRocmVlIHF1ZXN0aW9ucywgYW5kIHRoYXQgaXMgZW5v
14338 dWdoLCcKU2FpZCBoaXMgZmF0aGVyOyBgZG9uJ3QgZ2l2ZSB5b3Vyc2VsZiBhaXJzIQpEbyB5b3Ug
14339 dGhpbmsgSSBjYW4gbGlzdGVuIGFsbCBkYXkgdG8gc3VjaCBzdHVmZj8KQmUgb2ZmLCBvciBJJ2xs
14340 IGtpY2sgeW91IGRvd24gc3RhaXJzIScK
14341 " | \
14342 $at_diff - "$at_stdout" || at_failed=:
14343 at_fn_check_status 0 $at_status "$at_srcdir/burst.at:141"
14344 $at_failed && at_fn_log_failure
14345 $at_traceon; }
14346
14347 set +x
14348 $at_times_p && times >"$at_times_file"
14349 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14350 read at_status <"$at_status_file"
14351 #AT_STOP_211
14352 #AT_START_212
14353 at_fn_group_banner 212 'burst.at:202' \
14354 "burst non-digest" " " 19
14355 at_xfail=no
14356 (
14357 printf "%s\n" "212. $at_setup_line: testing $at_desc ..."
14358 $at_traceon
14359
14360
14361
14362 test -d Mail || mkdir Mail
14363 HOME=`pwd`
14364 export HOME
14365 MH=$HOME/mh_profile
14366 export MH
14367 cat > $MH <<EOT
14368 Path: $HOME/Mail
14369 mhetcdir: $abs_top_srcdir/mh/etc
14370 moreproc: /bin/cat
14371 EOT
14372 MTSTAILOR=$HOME/mtstailor
14373 export MTSTAILOR
14374 exec <&-
14375
14376 { set +x
14377 printf "%s\n" "$at_srcdir/burst.at:202:
14378 mbox2dir -m Mail/inbox \$spooldir/mbox1
14379 burst +inbox 1 || exit \$?
14380 "
14381 at_fn_check_prepare_notrace 'an embedded newline' "burst.at:202"
14382 ( $at_check_trace;
14383 mbox2dir -m Mail/inbox $spooldir/mbox1
14384 burst +inbox 1 || exit $?
14385
14386 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14387 at_status=$? at_failed=false
14388 $at_check_filter
14389 echo >>"$at_stderr"; printf "%s\n" "burst: message 1 not in digest format
14390 " | \
14391 $at_diff - "$at_stderr" || at_failed=:
14392 at_fn_diff_devnull "$at_stdout" || at_failed=:
14393 at_fn_check_status 0 $at_status "$at_srcdir/burst.at:202"
14394 $at_failed && at_fn_log_failure
14395 $at_traceon; }
14396
14397 set +x
14398 $at_times_p && times >"$at_times_file"
14399 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14400 read at_status <"$at_status_file"
14401 #AT_STOP_212
14402 #AT_START_213
14403 at_fn_group_banner 213 'comp.at:21' \
14404 "comp -file" " " 20
14405 at_xfail=no
14406 (
14407 printf "%s\n" "213. $at_setup_line: testing $at_desc ..."
14408 $at_traceon
14409
14410
14411
14412 test -d Mail || mkdir Mail
14413 HOME=`pwd`
14414 export HOME
14415 MH=$HOME/mh_profile
14416 export MH
14417 cat > $MH <<EOT
14418 Path: $HOME/Mail
14419 mhetcdir: $abs_top_srcdir/mh/etc
14420 moreproc: /bin/cat
14421 EOT
14422 MTSTAILOR=$HOME/mtstailor
14423 export MTSTAILOR
14424 exec <&-
14425
14426 { set +x
14427 printf "%s\n" "$at_srcdir/comp.at:21:
14428 echo quit | comp -editor \$abs_top_srcdir/mh/tests/mhed -file \$HOME/infile | cwdrepl | sed 's/ *\$//'
14429 sed 's/ *\$//' infile
14430 "
14431 at_fn_check_prepare_notrace 'an embedded newline' "comp.at:21"
14432 ( $at_check_trace;
14433 echo quit | comp -editor $abs_top_srcdir/mh/tests/mhed -file $HOME/infile | cwdrepl | sed 's/ *$//'
14434 sed 's/ *$//' infile
14435
14436 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14437 at_status=$? at_failed=false
14438 $at_check_filter
14439 at_fn_diff_devnull "$at_stderr" || at_failed=:
14440 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./infile
14441 -- Input file:
14442 To:
14443 cc:
14444 Subject:
14445 --------
14446 -- Input file end
14447 What now? draft left on \"./infile\".
14448 To:
14449 cc:
14450 Subject:
14451 --------
14452 Seen by mhed
14453 " | \
14454 $at_diff - "$at_stdout" || at_failed=:
14455 at_fn_check_status 0 $at_status "$at_srcdir/comp.at:21"
14456 $at_failed && at_fn_log_failure
14457 $at_traceon; }
14458
14459 set +x
14460 $at_times_p && times >"$at_times_file"
14461 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14462 read at_status <"$at_status_file"
14463 #AT_STOP_213
14464 #AT_START_214
14465 at_fn_group_banner 214 'comp.at:41' \
14466 "comp -file (del)" " " 20
14467 at_xfail=no
14468 (
14469 printf "%s\n" "214. $at_setup_line: testing $at_desc ..."
14470 $at_traceon
14471
14472
14473
14474 test -d Mail || mkdir Mail
14475 HOME=`pwd`
14476 export HOME
14477 MH=$HOME/mh_profile
14478 export MH
14479 cat > $MH <<EOT
14480 Path: $HOME/Mail
14481 mhetcdir: $abs_top_srcdir/mh/etc
14482 moreproc: /bin/cat
14483 EOT
14484 MTSTAILOR=$HOME/mtstailor
14485 export MTSTAILOR
14486 exec <&-
14487
14488 { set +x
14489 printf "%s\n" "$at_srcdir/comp.at:41:
14490 echo 'quit -delete' | comp -editor \$abs_top_srcdir/mh/tests/mhed -file \$HOME/infile | cwdrepl | sed 's/ *\$//'
14491 "
14492 at_fn_check_prepare_notrace 'an embedded newline' "comp.at:41"
14493 ( $at_check_trace;
14494 echo 'quit -delete' | comp -editor $abs_top_srcdir/mh/tests/mhed -file $HOME/infile | cwdrepl | sed 's/ *$//'
14495
14496 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14497 at_status=$? at_failed=false
14498 $at_check_filter
14499 at_fn_diff_devnull "$at_stderr" || at_failed=:
14500 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./infile
14501 -- Input file:
14502 To:
14503 cc:
14504 Subject:
14505 --------
14506 -- Input file end
14507 What now?
14508 " | \
14509 $at_diff - "$at_stdout" || at_failed=:
14510 at_fn_check_status 0 $at_status "$at_srcdir/comp.at:41"
14511 $at_failed && at_fn_log_failure
14512 $at_traceon; }
14513
14514 set +x
14515 $at_times_p && times >"$at_times_file"
14516 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14517 read at_status <"$at_status_file"
14518 #AT_STOP_214
14519 #AT_START_215
14520 at_fn_group_banner 215 'comp.at:55' \
14521 "comp file" " " 20
14522 at_xfail=no
14523 (
14524 printf "%s\n" "215. $at_setup_line: testing $at_desc ..."
14525 $at_traceon
14526
14527
14528
14529 test -d Mail || mkdir Mail
14530 HOME=`pwd`
14531 export HOME
14532 MH=$HOME/mh_profile
14533 export MH
14534 cat > $MH <<EOT
14535 Path: $HOME/Mail
14536 mhetcdir: $abs_top_srcdir/mh/etc
14537 moreproc: /bin/cat
14538 EOT
14539 MTSTAILOR=$HOME/mtstailor
14540 export MTSTAILOR
14541 exec <&-
14542
14543 { set +x
14544 printf "%s\n" "$at_srcdir/comp.at:55:
14545 echo 'quit' | comp -editor \$abs_top_srcdir/mh/tests/mhed file | cwdrepl | sed 's/ *\$//'
14546 sed 's/ *\$//' Mail/file
14547 "
14548 at_fn_check_prepare_notrace 'an embedded newline' "comp.at:55"
14549 ( $at_check_trace;
14550 echo 'quit' | comp -editor $abs_top_srcdir/mh/tests/mhed file | cwdrepl | sed 's/ *$//'
14551 sed 's/ *$//' Mail/file
14552
14553 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14554 at_status=$? at_failed=false
14555 $at_check_filter
14556 at_fn_diff_devnull "$at_stderr" || at_failed=:
14557 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/file
14558 -- Input file:
14559 To:
14560 cc:
14561 Subject:
14562 --------
14563 -- Input file end
14564 What now? draft left on \"./Mail/file\".
14565 To:
14566 cc:
14567 Subject:
14568 --------
14569 Seen by mhed
14570 " | \
14571 $at_diff - "$at_stdout" || at_failed=:
14572 at_fn_check_status 0 $at_status "$at_srcdir/comp.at:55"
14573 $at_failed && at_fn_log_failure
14574 $at_traceon; }
14575
14576 set +x
14577 $at_times_p && times >"$at_times_file"
14578 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14579 read at_status <"$at_status_file"
14580 #AT_STOP_215
14581 #AT_START_216
14582 at_fn_group_banner 216 'comp.at:75' \
14583 "comp -use file" " " 20
14584 at_xfail=no
14585 (
14586 printf "%s\n" "216. $at_setup_line: testing $at_desc ..."
14587 $at_traceon
14588
14589
14590
14591 test -d Mail || mkdir Mail
14592 HOME=`pwd`
14593 export HOME
14594 MH=$HOME/mh_profile
14595 export MH
14596 cat > $MH <<EOT
14597 Path: $HOME/Mail
14598 mhetcdir: $abs_top_srcdir/mh/etc
14599 moreproc: /bin/cat
14600 EOT
14601 MTSTAILOR=$HOME/mtstailor
14602 export MTSTAILOR
14603 exec <&-
14604
14605 { set +x
14606 printf "%s\n" "$at_srcdir/comp.at:75:
14607 cat >Mail/file <<'_ATEOF'
14608 From: gray
14609 To: root
14610 Subject: test input
14611
14612 message body
14613 _ATEOF
14614
14615
14616 echo 'quit' | comp -editor \$abs_top_srcdir/mh/tests/mhed -use file | cwdrepl | sed 's/ *\$//'
14617 sed 's/ *\$//' Mail/file
14618 "
14619 at_fn_check_prepare_notrace 'an embedded newline' "comp.at:75"
14620 ( $at_check_trace;
14621 cat >Mail/file <<'_ATEOF'
14622 From: gray
14623 To: root
14624 Subject: test input
14625
14626 message body
14627 _ATEOF
14628
14629
14630 echo 'quit' | comp -editor $abs_top_srcdir/mh/tests/mhed -use file | cwdrepl | sed 's/ *$//'
14631 sed 's/ *$//' Mail/file
14632
14633 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14634 at_status=$? at_failed=false
14635 $at_check_filter
14636 at_fn_diff_devnull "$at_stderr" || at_failed=:
14637 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/file
14638 -- Input file:
14639 From: gray
14640 To: root
14641 Subject: test input
14642
14643 message body
14644 -- Input file end
14645 What now? draft left on \"./Mail/file\".
14646 From: gray
14647 To: root
14648 Subject: test input
14649
14650 message body
14651 Seen by mhed
14652 " | \
14653 $at_diff - "$at_stdout" || at_failed=:
14654 at_fn_check_status 0 $at_status "$at_srcdir/comp.at:75"
14655 $at_failed && at_fn_log_failure
14656 $at_traceon; }
14657
14658 set +x
14659 $at_times_p && times >"$at_times_file"
14660 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14661 read at_status <"$at_status_file"
14662 #AT_STOP_216
14663 #AT_START_217
14664 at_fn_group_banner 217 'comp.at:104' \
14665 "comp +folder msg" " " 20
14666 at_xfail=no
14667 (
14668 printf "%s\n" "217. $at_setup_line: testing $at_desc ..."
14669 $at_traceon
14670
14671
14672
14673 test -d Mail || mkdir Mail
14674 HOME=`pwd`
14675 export HOME
14676 MH=$HOME/mh_profile
14677 export MH
14678 cat > $MH <<EOT
14679 Path: $HOME/Mail
14680 mhetcdir: $abs_top_srcdir/mh/etc
14681 moreproc: /bin/cat
14682 EOT
14683 MTSTAILOR=$HOME/mtstailor
14684 export MTSTAILOR
14685 exec <&-
14686
14687 { set +x
14688 printf "%s\n" "$at_srcdir/comp.at:104:
14689 mkdir Mail/inbox
14690 cat >Mail/inbox/1 <<'_ATEOF'
14691 From: gray
14692 To: root
14693 Subject: test input
14694
14695 message body
14696 _ATEOF
14697
14698
14699 echo 'quit' | comp -editor \$abs_top_srcdir/mh/tests/mhed +inbox 1 | cwdrepl | sed 's/ *\$//'
14700 echo Mail/draft
14701 sed 's/ *\$//' Mail/draft
14702 echo Message
14703 sed 's/ *\$//' Mail/inbox/1
14704 "
14705 at_fn_check_prepare_notrace 'an embedded newline' "comp.at:104"
14706 ( $at_check_trace;
14707 mkdir Mail/inbox
14708 cat >Mail/inbox/1 <<'_ATEOF'
14709 From: gray
14710 To: root
14711 Subject: test input
14712
14713 message body
14714 _ATEOF
14715
14716
14717 echo 'quit' | comp -editor $abs_top_srcdir/mh/tests/mhed +inbox 1 | cwdrepl | sed 's/ *$//'
14718 echo Mail/draft
14719 sed 's/ *$//' Mail/draft
14720 echo Message
14721 sed 's/ *$//' Mail/inbox/1
14722
14723 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14724 at_status=$? at_failed=false
14725 $at_check_filter
14726 at_fn_diff_devnull "$at_stderr" || at_failed=:
14727 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/draft
14728 -- Input file:
14729 From: gray
14730 To: root
14731 Subject: test input
14732
14733 message body
14734 -- Input file end
14735 What now? draft left on \"./Mail/draft\".
14736 Mail/draft
14737 From: gray
14738 To: root
14739 Subject: test input
14740
14741 message body
14742 Seen by mhed
14743 Message
14744 From: gray
14745 To: root
14746 Subject: test input
14747
14748 message body
14749 " | \
14750 $at_diff - "$at_stdout" || at_failed=:
14751 at_fn_check_status 0 $at_status "$at_srcdir/comp.at:104"
14752 $at_failed && at_fn_log_failure
14753 $at_traceon; }
14754
14755 set +x
14756 $at_times_p && times >"$at_times_file"
14757 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14758 read at_status <"$at_status_file"
14759 #AT_STOP_217
14760 #AT_START_218
14761 at_fn_group_banner 218 'comp.at:144' \
14762 "comp -draftfolder" " " 20
14763 at_xfail=no
14764 (
14765 printf "%s\n" "218. $at_setup_line: testing $at_desc ..."
14766 $at_traceon
14767
14768
14769
14770 test -d Mail || mkdir Mail
14771 HOME=`pwd`
14772 export HOME
14773 MH=$HOME/mh_profile
14774 export MH
14775 cat > $MH <<EOT
14776 Path: $HOME/Mail
14777 mhetcdir: $abs_top_srcdir/mh/etc
14778 moreproc: /bin/cat
14779 EOT
14780 MTSTAILOR=$HOME/mtstailor
14781 export MTSTAILOR
14782 exec <&-
14783
14784 { set +x
14785 printf "%s\n" "$at_srcdir/comp.at:144:
14786 mkdir Mail/drafts
14787 echo 'quit' | comp -editor \$abs_top_srcdir/mh/tests/mhed -draftfolder drafts | cwdrepl | sed 's/ *\$//'
14788 sed 's/ *\$//' Mail/drafts/1
14789 "
14790 at_fn_check_prepare_notrace 'an embedded newline' "comp.at:144"
14791 ( $at_check_trace;
14792 mkdir Mail/drafts
14793 echo 'quit' | comp -editor $abs_top_srcdir/mh/tests/mhed -draftfolder drafts | cwdrepl | sed 's/ *$//'
14794 sed 's/ *$//' Mail/drafts/1
14795
14796 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14797 at_status=$? at_failed=false
14798 $at_check_filter
14799 at_fn_diff_devnull "$at_stderr" || at_failed=:
14800 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/drafts/1
14801 -- Input file:
14802 To:
14803 cc:
14804 Subject:
14805 --------
14806 -- Input file end
14807 What now? draft left on \"./Mail/drafts/1\".
14808 To:
14809 cc:
14810 Subject:
14811 --------
14812 Seen by mhed
14813 " | \
14814 $at_diff - "$at_stdout" || at_failed=:
14815 at_fn_check_status 0 $at_status "$at_srcdir/comp.at:144"
14816 $at_failed && at_fn_log_failure
14817 $at_traceon; }
14818
14819 set +x
14820 $at_times_p && times >"$at_times_file"
14821 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14822 read at_status <"$at_status_file"
14823 #AT_STOP_218
14824 #AT_START_219
14825 at_fn_group_banner 219 'comp.at:165' \
14826 "comp +draftfolder -use" " " 20
14827 at_xfail=no
14828 (
14829 printf "%s\n" "219. $at_setup_line: testing $at_desc ..."
14830 $at_traceon
14831
14832
14833
14834 test -d Mail || mkdir Mail
14835 HOME=`pwd`
14836 export HOME
14837 MH=$HOME/mh_profile
14838 export MH
14839 cat > $MH <<EOT
14840 Path: $HOME/Mail
14841 mhetcdir: $abs_top_srcdir/mh/etc
14842 moreproc: /bin/cat
14843 EOT
14844 MTSTAILOR=$HOME/mtstailor
14845 export MTSTAILOR
14846 exec <&-
14847
14848 { set +x
14849 printf "%s\n" "$at_srcdir/comp.at:165:
14850 mkdir Mail/drafts
14851 cat >Mail/drafts/1 <<'_ATEOF'
14852 From: gray
14853 To: root
14854 Subject: test input
14855
14856 message body
14857 _ATEOF
14858
14859 echo \"cur: 1\" > Mail/drafts/.mh_sequences
14860
14861 echo 'quit' | comp -editor \$abs_top_srcdir/mh/tests/mhed -draftfolder drafts -use| cwdrepl | sed 's/ *\$//'
14862 sed 's/ *\$//' Mail/drafts/1
14863 "
14864 at_fn_check_prepare_notrace 'an embedded newline' "comp.at:165"
14865 ( $at_check_trace;
14866 mkdir Mail/drafts
14867 cat >Mail/drafts/1 <<'_ATEOF'
14868 From: gray
14869 To: root
14870 Subject: test input
14871
14872 message body
14873 _ATEOF
14874
14875 echo "cur: 1" > Mail/drafts/.mh_sequences
14876
14877 echo 'quit' | comp -editor $abs_top_srcdir/mh/tests/mhed -draftfolder drafts -use| cwdrepl | sed 's/ *$//'
14878 sed 's/ *$//' Mail/drafts/1
14879
14880 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14881 at_status=$? at_failed=false
14882 $at_check_filter
14883 at_fn_diff_devnull "$at_stderr" || at_failed=:
14884 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/drafts/1
14885 -- Input file:
14886 From: gray
14887 To: root
14888 Subject: test input
14889
14890 message body
14891 -- Input file end
14892 What now? draft left on \"./Mail/drafts/1\".
14893 From: gray
14894 To: root
14895 Subject: test input
14896
14897 message body
14898 Seen by mhed
14899 " | \
14900 $at_diff - "$at_stdout" || at_failed=:
14901 at_fn_check_status 0 $at_status "$at_srcdir/comp.at:165"
14902 $at_failed && at_fn_log_failure
14903 $at_traceon; }
14904
14905 set +x
14906 $at_times_p && times >"$at_times_file"
14907 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14908 read at_status <"$at_status_file"
14909 #AT_STOP_219
14910 #AT_START_220
14911 at_fn_group_banner 220 'comp.at:196' \
14912 "use Draft-Folder" " " 20
14913 at_xfail=no
14914 (
14915 printf "%s\n" "220. $at_setup_line: testing $at_desc ..."
14916 $at_traceon
14917
14918
14919
14920 test -d Mail || mkdir Mail
14921 HOME=`pwd`
14922 export HOME
14923 MH=$HOME/mh_profile
14924 export MH
14925 cat > $MH <<EOT
14926 Path: $HOME/Mail
14927 mhetcdir: $abs_top_srcdir/mh/etc
14928 moreproc: /bin/cat
14929 EOT
14930 MTSTAILOR=$HOME/mtstailor
14931 export MTSTAILOR
14932 exec <&-
14933
14934 { set +x
14935 printf "%s\n" "$at_srcdir/comp.at:196: mkdir Mail/drafts
14936 echo \"Draft-Folder: +drafts\" >> \$MH
14937 echo 'quit' | comp -editor \$abs_top_srcdir/mh/tests/mhed | cwdrepl | sed 's/ *\$//'
14938 sed 's/ *\$//' Mail/drafts/1
14939 "
14940 at_fn_check_prepare_notrace 'an embedded newline' "comp.at:196"
14941 ( $at_check_trace; mkdir Mail/drafts
14942 echo "Draft-Folder: +drafts" >> $MH
14943 echo 'quit' | comp -editor $abs_top_srcdir/mh/tests/mhed | cwdrepl | sed 's/ *$//'
14944 sed 's/ *$//' Mail/drafts/1
14945
14946 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14947 at_status=$? at_failed=false
14948 $at_check_filter
14949 at_fn_diff_devnull "$at_stderr" || at_failed=:
14950 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/drafts/1
14951 -- Input file:
14952 To:
14953 cc:
14954 Subject:
14955 --------
14956 -- Input file end
14957 What now? draft left on \"./Mail/drafts/1\".
14958 To:
14959 cc:
14960 Subject:
14961 --------
14962 Seen by mhed
14963 " | \
14964 $at_diff - "$at_stdout" || at_failed=:
14965 at_fn_check_status 0 $at_status "$at_srcdir/comp.at:196"
14966 $at_failed && at_fn_log_failure
14967 $at_traceon; }
14968
14969 set +x
14970 $at_times_p && times >"$at_times_file"
14971 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14972 read at_status <"$at_status_file"
14973 #AT_STOP_220
14974 #AT_START_221
14975 at_fn_group_banner 221 'comp.at:218' \
14976 "-nodraftfolder" " " 20
14977 at_xfail=no
14978 (
14979 printf "%s\n" "221. $at_setup_line: testing $at_desc ..."
14980 $at_traceon
14981
14982
14983
14984 test -d Mail || mkdir Mail
14985 HOME=`pwd`
14986 export HOME
14987 MH=$HOME/mh_profile
14988 export MH
14989 cat > $MH <<EOT
14990 Path: $HOME/Mail
14991 mhetcdir: $abs_top_srcdir/mh/etc
14992 moreproc: /bin/cat
14993 EOT
14994 MTSTAILOR=$HOME/mtstailor
14995 export MTSTAILOR
14996 exec <&-
14997
14998 { set +x
14999 printf "%s\n" "$at_srcdir/comp.at:218: mkdir Mail/drafts
15000 echo \"Draft-Folder: +drafts\" >> \$MH
15001 echo 'quit' | comp -editor \$abs_top_srcdir/mh/tests/mhed -nodraftfolder | cwdrepl | sed 's/ *\$//'
15002 sed 's/ *\$//' Mail/draft
15003 "
15004 at_fn_check_prepare_notrace 'an embedded newline' "comp.at:218"
15005 ( $at_check_trace; mkdir Mail/drafts
15006 echo "Draft-Folder: +drafts" >> $MH
15007 echo 'quit' | comp -editor $abs_top_srcdir/mh/tests/mhed -nodraftfolder | cwdrepl | sed 's/ *$//'
15008 sed 's/ *$//' Mail/draft
15009
15010 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15011 at_status=$? at_failed=false
15012 $at_check_filter
15013 at_fn_diff_devnull "$at_stderr" || at_failed=:
15014 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/draft
15015 -- Input file:
15016 To:
15017 cc:
15018 Subject:
15019 --------
15020 -- Input file end
15021 What now? draft left on \"./Mail/draft\".
15022 To:
15023 cc:
15024 Subject:
15025 --------
15026 Seen by mhed
15027 " | \
15028 $at_diff - "$at_stdout" || at_failed=:
15029 at_fn_check_status 0 $at_status "$at_srcdir/comp.at:218"
15030 $at_failed && at_fn_log_failure
15031 $at_traceon; }
15032
15033 set +x
15034 $at_times_p && times >"$at_times_file"
15035 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15036 read at_status <"$at_status_file"
15037 #AT_STOP_221
15038 #AT_START_222
15039 at_fn_group_banner 222 'forw.at:21' \
15040 "forw msg" " " 21
15041 at_xfail=no
15042 (
15043 printf "%s\n" "222. $at_setup_line: testing $at_desc ..."
15044 $at_traceon
15045
15046
15047
15048 test -d Mail || mkdir Mail
15049 HOME=`pwd`
15050 export HOME
15051 MH=$HOME/mh_profile
15052 export MH
15053 cat > $MH <<EOT
15054 Path: $HOME/Mail
15055 mhetcdir: $abs_top_srcdir/mh/etc
15056 moreproc: /bin/cat
15057 EOT
15058 MTSTAILOR=$HOME/mtstailor
15059 export MTSTAILOR
15060 exec <&-
15061
15062 { set +x
15063 printf "%s\n" "$at_srcdir/forw.at:21:
15064 mkdir Mail/inbox
15065 cat >Mail/inbox/1 <<'_ATEOF'
15066 From: gray
15067 To: root
15068 Subject: test input
15069
15070 message body
15071 _ATEOF
15072
15073
15074 echo quit | forw -editor \$abs_top_srcdir/mh/tests/mhed +inbox 1 | cwdrepl | sed 's/ *\$//'
15075 echo == Mail/draft ==
15076 cat Mail/draft
15077 echo == Message ==
15078 # FIXME: AMD adds this header to the first message. Find a better way.
15079 # See also the same sed hacks below.
15080 sed '/^X-IMAPbase/d' Mail/inbox/1
15081 "
15082 at_fn_check_prepare_notrace 'an embedded newline' "forw.at:21"
15083 ( $at_check_trace;
15084 mkdir Mail/inbox
15085 cat >Mail/inbox/1 <<'_ATEOF'
15086 From: gray
15087 To: root
15088 Subject: test input
15089
15090 message body
15091 _ATEOF
15092
15093
15094 echo quit | forw -editor $abs_top_srcdir/mh/tests/mhed +inbox 1 | cwdrepl | sed 's/ *$//'
15095 echo == Mail/draft ==
15096 cat Mail/draft
15097 echo == Message ==
15098 # FIXME: AMD adds this header to the first message. Find a better way.
15099 # See also the same sed hacks below.
15100 sed '/^X-IMAPbase/d' Mail/inbox/1
15101
15102 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15103 at_status=$? at_failed=false
15104 $at_check_filter
15105 at_fn_diff_devnull "$at_stderr" || at_failed=:
15106 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/draft
15107 -- Input file:
15108 To:
15109 cc:
15110 Subject:
15111 --------
15112
15113 ------- Forwarded message
15114 From: gray
15115 To: root
15116 Subject: test input
15117
15118 message body
15119
15120 ------- End of Forwarded message
15121
15122 -- Input file end
15123 What now? draft left on \"./Mail/draft\".
15124 == Mail/draft ==
15125 To:
15126 cc:
15127 Subject:
15128 --------
15129
15130 ------- Forwarded message
15131 From: gray
15132 To: root
15133 Subject: test input
15134
15135 message body
15136
15137 ------- End of Forwarded message
15138
15139 Seen by mhed
15140 == Message ==
15141 From: gray
15142 To: root
15143 Subject: test input
15144
15145 message body
15146 " | \
15147 $at_diff - "$at_stdout" || at_failed=:
15148 at_fn_check_status 0 $at_status "$at_srcdir/forw.at:21"
15149 $at_failed && at_fn_log_failure
15150 $at_traceon; }
15151
15152 set +x
15153 $at_times_p && times >"$at_times_file"
15154 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15155 read at_status <"$at_status_file"
15156 #AT_STOP_222
15157 #AT_START_223
15158 at_fn_group_banner 223 'forw.at:81' \
15159 "forw -format msg" " " 21
15160 at_xfail=no
15161 (
15162 printf "%s\n" "223. $at_setup_line: testing $at_desc ..."
15163 $at_traceon
15164
15165
15166
15167 test -d Mail || mkdir Mail
15168 HOME=`pwd`
15169 export HOME
15170 MH=$HOME/mh_profile
15171 export MH
15172 cat > $MH <<EOT
15173 Path: $HOME/Mail
15174 mhetcdir: $abs_top_srcdir/mh/etc
15175 moreproc: /bin/cat
15176 EOT
15177 MTSTAILOR=$HOME/mtstailor
15178 export MTSTAILOR
15179 exec <&-
15180
15181 { set +x
15182 printf "%s\n" "$at_srcdir/forw.at:81:
15183 mkdir Mail/inbox
15184 cat >Mail/inbox/1 <<'_ATEOF'
15185 From: gray
15186 To: root
15187 Subject: test input
15188
15189 message body
15190 _ATEOF
15191
15192
15193 echo quit | forw -editor \$abs_top_srcdir/mh/tests/mhed -format +inbox 1 | cwdrepl | sed 's/ *\$//'
15194 echo == Mail/draft ==
15195 cat Mail/draft
15196 echo == Message ==
15197 # FIXME: AMD adds this header to the first message. Find a better way.
15198 # See also the same sed hacks below.
15199 sed '/^X-IMAPbase/d' Mail/inbox/1
15200 "
15201 at_fn_check_prepare_notrace 'an embedded newline' "forw.at:81"
15202 ( $at_check_trace;
15203 mkdir Mail/inbox
15204 cat >Mail/inbox/1 <<'_ATEOF'
15205 From: gray
15206 To: root
15207 Subject: test input
15208
15209 message body
15210 _ATEOF
15211
15212
15213 echo quit | forw -editor $abs_top_srcdir/mh/tests/mhed -format +inbox 1 | cwdrepl | sed 's/ *$//'
15214 echo == Mail/draft ==
15215 cat Mail/draft
15216 echo == Message ==
15217 # FIXME: AMD adds this header to the first message. Find a better way.
15218 # See also the same sed hacks below.
15219 sed '/^X-IMAPbase/d' Mail/inbox/1
15220
15221 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15222 at_status=$? at_failed=false
15223 $at_check_filter
15224 at_fn_diff_devnull "$at_stderr" || at_failed=:
15225 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/draft
15226 -- Input file:
15227 To:
15228 cc:
15229 Subject:
15230 --------
15231
15232 ------- Forwarded message
15233 From: gray
15234 To: root
15235 Subject: test input
15236
15237 message body
15238
15239 ------- End of Forwarded message
15240
15241 -- Input file end
15242 What now? draft left on \"./Mail/draft\".
15243 == Mail/draft ==
15244 To:
15245 cc:
15246 Subject:
15247 --------
15248
15249 ------- Forwarded message
15250 From: gray
15251 To: root
15252 Subject: test input
15253
15254 message body
15255
15256 ------- End of Forwarded message
15257
15258 Seen by mhed
15259 == Message ==
15260 From: gray
15261 To: root
15262 Subject: test input
15263
15264 message body
15265 " | \
15266 $at_diff - "$at_stdout" || at_failed=:
15267 at_fn_check_status 0 $at_status "$at_srcdir/forw.at:81"
15268 $at_failed && at_fn_log_failure
15269 $at_traceon; }
15270
15271 set +x
15272 $at_times_p && times >"$at_times_file"
15273 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15274 read at_status <"$at_status_file"
15275 #AT_STOP_223
15276 #AT_START_224
15277 at_fn_group_banner 224 'forw.at:141' \
15278 "forw msgs" " " 21
15279 at_xfail=no
15280 (
15281 printf "%s\n" "224. $at_setup_line: testing $at_desc ..."
15282 $at_traceon
15283
15284
15285
15286 test -d Mail || mkdir Mail
15287 HOME=`pwd`
15288 export HOME
15289 MH=$HOME/mh_profile
15290 export MH
15291 cat > $MH <<EOT
15292 Path: $HOME/Mail
15293 mhetcdir: $abs_top_srcdir/mh/etc
15294 moreproc: /bin/cat
15295 EOT
15296 MTSTAILOR=$HOME/mtstailor
15297 export MTSTAILOR
15298 exec <&-
15299
15300 { set +x
15301 printf "%s\n" "$at_srcdir/forw.at:141:
15302 mkdir Mail/inbox
15303 cat >Mail/inbox/1 <<'_ATEOF'
15304 From: gray
15305 To: root
15306 Subject: test input
15307
15308 message body
15309 _ATEOF
15310
15311 cat >Mail/inbox/2 <<'_ATEOF'
15312 From: gray
15313 To: marlow
15314 Subject: 2nd message
15315
15316 2nd message body
15317 _ATEOF
15318
15319
15320 echo quit | forw -editor \$abs_top_srcdir/mh/tests/mhed +inbox 1 2 | cwdrepl | sed 's/ *\$//'
15321 echo == Mail/draft ==
15322 cat Mail/draft
15323 echo == Message 1 ==
15324 sed '/^X-IMAPbase/d' Mail/inbox/1
15325 echo == Message 2 ==
15326 cat Mail/inbox/2
15327 "
15328 at_fn_check_prepare_notrace 'an embedded newline' "forw.at:141"
15329 ( $at_check_trace;
15330 mkdir Mail/inbox
15331 cat >Mail/inbox/1 <<'_ATEOF'
15332 From: gray
15333 To: root
15334 Subject: test input
15335
15336 message body
15337 _ATEOF
15338
15339 cat >Mail/inbox/2 <<'_ATEOF'
15340 From: gray
15341 To: marlow
15342 Subject: 2nd message
15343
15344 2nd message body
15345 _ATEOF
15346
15347
15348 echo quit | forw -editor $abs_top_srcdir/mh/tests/mhed +inbox 1 2 | cwdrepl | sed 's/ *$//'
15349 echo == Mail/draft ==
15350 cat Mail/draft
15351 echo == Message 1 ==
15352 sed '/^X-IMAPbase/d' Mail/inbox/1
15353 echo == Message 2 ==
15354 cat Mail/inbox/2
15355
15356 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15357 at_status=$? at_failed=false
15358 $at_check_filter
15359 at_fn_diff_devnull "$at_stderr" || at_failed=:
15360 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/draft
15361 -- Input file:
15362 To:
15363 cc:
15364 Subject:
15365 --------
15366
15367 ------- Forwarded messages
15368
15369 ------- Message 1
15370 From: gray
15371 To: root
15372 Subject: test input
15373
15374 message body
15375
15376 ------- Message 2
15377 From: gray
15378 To: marlow
15379 Subject: 2nd message
15380
15381 2nd message body
15382
15383 ------- End of Forwarded messages
15384
15385 -- Input file end
15386 What now? draft left on \"./Mail/draft\".
15387 == Mail/draft ==
15388 To:
15389 cc:
15390 Subject:
15391 --------
15392
15393 ------- Forwarded messages
15394
15395 ------- Message 1
15396 From: gray
15397 To: root
15398 Subject: test input
15399
15400 message body
15401
15402 ------- Message 2
15403 From: gray
15404 To: marlow
15405 Subject: 2nd message
15406
15407 2nd message body
15408
15409 ------- End of Forwarded messages
15410
15411 Seen by mhed
15412 == Message 1 ==
15413 From: gray
15414 To: root
15415 Subject: test input
15416
15417 message body
15418 == Message 2 ==
15419 From: gray
15420 To: marlow
15421 Subject: 2nd message
15422
15423 2nd message body
15424 " | \
15425 $at_diff - "$at_stdout" || at_failed=:
15426 at_fn_check_status 0 $at_status "$at_srcdir/forw.at:141"
15427 $at_failed && at_fn_log_failure
15428 $at_traceon; }
15429
15430 set +x
15431 $at_times_p && times >"$at_times_file"
15432 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15433 read at_status <"$at_status_file"
15434 #AT_STOP_224
15435 #AT_START_225
15436 at_fn_group_banner 225 'forw.at:231' \
15437 "forw -build msg" " " 21
15438 at_xfail=no
15439 (
15440 printf "%s\n" "225. $at_setup_line: testing $at_desc ..."
15441 $at_traceon
15442
15443
15444
15445 test -d Mail || mkdir Mail
15446 HOME=`pwd`
15447 export HOME
15448 MH=$HOME/mh_profile
15449 export MH
15450 cat > $MH <<EOT
15451 Path: $HOME/Mail
15452 mhetcdir: $abs_top_srcdir/mh/etc
15453 moreproc: /bin/cat
15454 EOT
15455 MTSTAILOR=$HOME/mtstailor
15456 export MTSTAILOR
15457 exec <&-
15458
15459 { set +x
15460 printf "%s\n" "$at_srcdir/forw.at:231:
15461 mkdir Mail/inbox
15462 cat >Mail/inbox/1 <<'_ATEOF'
15463 From: gray
15464 To: root
15465 Subject: test input
15466
15467 message body
15468 _ATEOF
15469
15470
15471 forw -editor \$abs_top_srcdir/mh/tests/mhed -build +inbox 1 | cwdrepl | sed 's/ *\$//'
15472 echo == Mail/draft ==
15473 cat Mail/draft
15474 echo == Message ==
15475 sed '/^X-IMAPbase/d' Mail/inbox/1
15476 "
15477 at_fn_check_prepare_notrace 'an embedded newline' "forw.at:231"
15478 ( $at_check_trace;
15479 mkdir Mail/inbox
15480 cat >Mail/inbox/1 <<'_ATEOF'
15481 From: gray
15482 To: root
15483 Subject: test input
15484
15485 message body
15486 _ATEOF
15487
15488
15489 forw -editor $abs_top_srcdir/mh/tests/mhed -build +inbox 1 | cwdrepl | sed 's/ *$//'
15490 echo == Mail/draft ==
15491 cat Mail/draft
15492 echo == Message ==
15493 sed '/^X-IMAPbase/d' Mail/inbox/1
15494
15495 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15496 at_status=$? at_failed=false
15497 $at_check_filter
15498 at_fn_diff_devnull "$at_stderr" || at_failed=:
15499 echo >>"$at_stdout"; printf "%s\n" "== Mail/draft ==
15500 To:
15501 cc:
15502 Subject:
15503 --------
15504
15505 ------- Forwarded message
15506 From: gray
15507 To: root
15508 Subject: test input
15509
15510 message body
15511
15512 ------- End of Forwarded message
15513
15514 == Message ==
15515 From: gray
15516 To: root
15517 Subject: test input
15518
15519 message body
15520 " | \
15521 $at_diff - "$at_stdout" || at_failed=:
15522 at_fn_check_status 0 $at_status "$at_srcdir/forw.at:231"
15523 $at_failed && at_fn_log_failure
15524 $at_traceon; }
15525
15526 set +x
15527 $at_times_p && times >"$at_times_file"
15528 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15529 read at_status <"$at_status_file"
15530 #AT_STOP_225
15531 #AT_START_226
15532 at_fn_group_banner 226 'forw.at:270' \
15533 "forw -build -mime msgs" " " 21
15534 at_xfail=no
15535 (
15536 printf "%s\n" "226. $at_setup_line: testing $at_desc ..."
15537 $at_traceon
15538
15539
15540
15541 test -d Mail || mkdir Mail
15542 HOME=`pwd`
15543 export HOME
15544 MH=$HOME/mh_profile
15545 export MH
15546 cat > $MH <<EOT
15547 Path: $HOME/Mail
15548 mhetcdir: $abs_top_srcdir/mh/etc
15549 moreproc: /bin/cat
15550 EOT
15551 MTSTAILOR=$HOME/mtstailor
15552 export MTSTAILOR
15553 exec <&-
15554
15555 { set +x
15556 printf "%s\n" "$at_srcdir/forw.at:270:
15557 mkdir Mail/inbox
15558 cat >Mail/inbox/1 <<'_ATEOF'
15559 From: gray
15560 To: root
15561 Subject: test input
15562
15563 message body
15564 _ATEOF
15565
15566 cat >Mail/inbox/2 <<'_ATEOF'
15567 From: gray
15568 To: marlow
15569 Subject: 2nd message
15570
15571 2nd message body
15572 _ATEOF
15573
15574
15575 forw -editor \$abs_top_srcdir/mh/tests/mhed -build -mime +inbox 1 2 | cwdrepl | sed 's/ *\$//'
15576 echo == Mail/draft ==
15577 cwdrepl < Mail/draft | sed 's/ *\$//'
15578 echo == Message 1 ==
15579 sed '/^X-IMAPbase/d' Mail/inbox/1
15580 echo == Message 2 ==
15581 cat Mail/inbox/2
15582 "
15583 at_fn_check_prepare_notrace 'an embedded newline' "forw.at:270"
15584 ( $at_check_trace;
15585 mkdir Mail/inbox
15586 cat >Mail/inbox/1 <<'_ATEOF'
15587 From: gray
15588 To: root
15589 Subject: test input
15590
15591 message body
15592 _ATEOF
15593
15594 cat >Mail/inbox/2 <<'_ATEOF'
15595 From: gray
15596 To: marlow
15597 Subject: 2nd message
15598
15599 2nd message body
15600 _ATEOF
15601
15602
15603 forw -editor $abs_top_srcdir/mh/tests/mhed -build -mime +inbox 1 2 | cwdrepl | sed 's/ *$//'
15604 echo == Mail/draft ==
15605 cwdrepl < Mail/draft | sed 's/ *$//'
15606 echo == Message 1 ==
15607 sed '/^X-IMAPbase/d' Mail/inbox/1
15608 echo == Message 2 ==
15609 cat Mail/inbox/2
15610
15611 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15612 at_status=$? at_failed=false
15613 $at_check_filter
15614 at_fn_diff_devnull "$at_stderr" || at_failed=:
15615 echo >>"$at_stdout"; printf "%s\n" "== Mail/draft ==
15616 To:
15617 cc:
15618 Subject:
15619 --------
15620 #forw [] +./Mail/inbox 1 2
15621
15622 == Message 1 ==
15623 From: gray
15624 To: root
15625 Subject: test input
15626
15627 message body
15628 == Message 2 ==
15629 From: gray
15630 To: marlow
15631 Subject: 2nd message
15632
15633 2nd message body
15634 " | \
15635 $at_diff - "$at_stdout" || at_failed=:
15636 at_fn_check_status 0 $at_status "$at_srcdir/forw.at:270"
15637 $at_failed && at_fn_log_failure
15638 $at_traceon; }
15639
15640 set +x
15641 $at_times_p && times >"$at_times_file"
15642 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15643 read at_status <"$at_status_file"
15644 #AT_STOP_226
15645 #AT_START_227
15646 at_fn_group_banner 227 'forw.at:315' \
15647 "forw -draftfolder" " " 21
15648 at_xfail=no
15649 (
15650 printf "%s\n" "227. $at_setup_line: testing $at_desc ..."
15651 $at_traceon
15652
15653
15654
15655 test -d Mail || mkdir Mail
15656 HOME=`pwd`
15657 export HOME
15658 MH=$HOME/mh_profile
15659 export MH
15660 cat > $MH <<EOT
15661 Path: $HOME/Mail
15662 mhetcdir: $abs_top_srcdir/mh/etc
15663 moreproc: /bin/cat
15664 EOT
15665 MTSTAILOR=$HOME/mtstailor
15666 export MTSTAILOR
15667 exec <&-
15668
15669 { set +x
15670 printf "%s\n" "$at_srcdir/forw.at:315:
15671 mkdir Mail/inbox
15672 mkdir Mail/drafts
15673 cat >Mail/inbox/1 <<'_ATEOF'
15674 From: gray
15675 To: root
15676 Subject: test input
15677
15678 message body
15679 _ATEOF
15680
15681
15682 echo \"quit\" | forw -editor \$abs_top_srcdir/mh/tests/mhed -draftfolder drafts 1 | cwdrepl | sed 's/ *\$//'
15683 echo == Mail/drafts/1 ==
15684 cat Mail/drafts/1
15685 echo == Message ==
15686 sed '/^X-IMAPbase/d' Mail/inbox/1
15687 "
15688 at_fn_check_prepare_notrace 'an embedded newline' "forw.at:315"
15689 ( $at_check_trace;
15690 mkdir Mail/inbox
15691 mkdir Mail/drafts
15692 cat >Mail/inbox/1 <<'_ATEOF'
15693 From: gray
15694 To: root
15695 Subject: test input
15696
15697 message body
15698 _ATEOF
15699
15700
15701 echo "quit" | forw -editor $abs_top_srcdir/mh/tests/mhed -draftfolder drafts 1 | cwdrepl | sed 's/ *$//'
15702 echo == Mail/drafts/1 ==
15703 cat Mail/drafts/1
15704 echo == Message ==
15705 sed '/^X-IMAPbase/d' Mail/inbox/1
15706
15707 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15708 at_status=$? at_failed=false
15709 $at_check_filter
15710 at_fn_diff_devnull "$at_stderr" || at_failed=:
15711 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/drafts/1
15712 -- Input file:
15713 To:
15714 cc:
15715 Subject:
15716 --------
15717
15718 ------- Forwarded message
15719 From: gray
15720 To: root
15721 Subject: test input
15722
15723 message body
15724
15725 ------- End of Forwarded message
15726
15727 -- Input file end
15728 What now? draft left on \"./Mail/drafts/1\".
15729 == Mail/drafts/1 ==
15730 To:
15731 cc:
15732 Subject:
15733 --------
15734
15735 ------- Forwarded message
15736 From: gray
15737 To: root
15738 Subject: test input
15739
15740 message body
15741
15742 ------- End of Forwarded message
15743
15744 Seen by mhed
15745 == Message ==
15746 From: gray
15747 To: root
15748 Subject: test input
15749
15750 message body
15751 " | \
15752 $at_diff - "$at_stdout" || at_failed=:
15753 at_fn_check_status 0 $at_status "$at_srcdir/forw.at:315"
15754 $at_failed && at_fn_log_failure
15755 $at_traceon; }
15756
15757 set +x
15758 $at_times_p && times >"$at_times_file"
15759 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15760 read at_status <"$at_status_file"
15761 #AT_STOP_227
15762 #AT_START_228
15763 at_fn_group_banner 228 'forw.at:374' \
15764 "forw -file" " " 21
15765 at_xfail=no
15766 (
15767 printf "%s\n" "228. $at_setup_line: testing $at_desc ..."
15768 $at_traceon
15769
15770
15771
15772 test -d Mail || mkdir Mail
15773 HOME=`pwd`
15774 export HOME
15775 MH=$HOME/mh_profile
15776 export MH
15777 cat > $MH <<EOT
15778 Path: $HOME/Mail
15779 mhetcdir: $abs_top_srcdir/mh/etc
15780 moreproc: /bin/cat
15781 EOT
15782 MTSTAILOR=$HOME/mtstailor
15783 export MTSTAILOR
15784 exec <&-
15785
15786 { set +x
15787 printf "%s\n" "$at_srcdir/forw.at:374:
15788 cat >infile <<'_ATEOF'
15789 From: gray
15790 To: root
15791 Subject: test input
15792
15793 message body
15794 _ATEOF
15795
15796
15797 echo \"quit\" | forw -editor \$abs_top_srcdir/mh/tests/mhed -file infile | cwdrepl | sed 's/ *\$//'
15798 "
15799 at_fn_check_prepare_notrace 'an embedded newline' "forw.at:374"
15800 ( $at_check_trace;
15801 cat >infile <<'_ATEOF'
15802 From: gray
15803 To: root
15804 Subject: test input
15805
15806 message body
15807 _ATEOF
15808
15809
15810 echo "quit" | forw -editor $abs_top_srcdir/mh/tests/mhed -file infile | cwdrepl | sed 's/ *$//'
15811
15812 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15813 at_status=$? at_failed=false
15814 $at_check_filter
15815 at_fn_diff_devnull "$at_stderr" || at_failed=:
15816 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/draft
15817 -- Input file:
15818 To:
15819 cc:
15820 Subject:
15821 --------
15822 From: gray
15823 To: root
15824 Subject: test input
15825
15826 message body
15827 -- Input file end
15828 What now? draft left on \"./Mail/draft\".
15829 " | \
15830 $at_diff - "$at_stdout" || at_failed=:
15831 at_fn_check_status 0 $at_status "$at_srcdir/forw.at:374"
15832 $at_failed && at_fn_log_failure
15833 $at_traceon; }
15834
15835 set +x
15836 $at_times_p && times >"$at_times_file"
15837 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15838 read at_status <"$at_status_file"
15839 #AT_STOP_228
15840 #AT_START_229
15841 at_fn_group_banner 229 'forw.at:400' \
15842 "Draft-Folder" " " 21
15843 at_xfail=no
15844 (
15845 printf "%s\n" "229. $at_setup_line: testing $at_desc ..."
15846 $at_traceon
15847
15848
15849
15850 test -d Mail || mkdir Mail
15851 HOME=`pwd`
15852 export HOME
15853 MH=$HOME/mh_profile
15854 export MH
15855 cat > $MH <<EOT
15856 Path: $HOME/Mail
15857 mhetcdir: $abs_top_srcdir/mh/etc
15858 moreproc: /bin/cat
15859 EOT
15860 MTSTAILOR=$HOME/mtstailor
15861 export MTSTAILOR
15862 exec <&-
15863
15864 { set +x
15865 printf "%s\n" "$at_srcdir/forw.at:400:
15866 mkdir Mail/inbox
15867 mkdir Mail/drafts
15868 echo \"Draft-Folder: +drafts\" >> \$MH
15869
15870 cat >Mail/inbox/1 <<'_ATEOF'
15871 From: gray
15872 To: root
15873 Subject: test input
15874
15875 message body
15876 _ATEOF
15877
15878
15879 echo \"quit\" | forw -editor \$abs_top_srcdir/mh/tests/mhed 1 | cwdrepl | sed 's/ *\$//'
15880 echo == Mail/drafts/1 ==
15881 cat Mail/drafts/1
15882 echo == Message ==
15883 sed '/^X-IMAPbase/d' Mail/inbox/1
15884 "
15885 at_fn_check_prepare_notrace 'an embedded newline' "forw.at:400"
15886 ( $at_check_trace;
15887 mkdir Mail/inbox
15888 mkdir Mail/drafts
15889 echo "Draft-Folder: +drafts" >> $MH
15890
15891 cat >Mail/inbox/1 <<'_ATEOF'
15892 From: gray
15893 To: root
15894 Subject: test input
15895
15896 message body
15897 _ATEOF
15898
15899
15900 echo "quit" | forw -editor $abs_top_srcdir/mh/tests/mhed 1 | cwdrepl | sed 's/ *$//'
15901 echo == Mail/drafts/1 ==
15902 cat Mail/drafts/1
15903 echo == Message ==
15904 sed '/^X-IMAPbase/d' Mail/inbox/1
15905
15906 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15907 at_status=$? at_failed=false
15908 $at_check_filter
15909 at_fn_diff_devnull "$at_stderr" || at_failed=:
15910 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/drafts/1
15911 -- Input file:
15912 To:
15913 cc:
15914 Subject:
15915 --------
15916
15917 ------- Forwarded message
15918 From: gray
15919 To: root
15920 Subject: test input
15921
15922 message body
15923
15924 ------- End of Forwarded message
15925
15926 -- Input file end
15927 What now? draft left on \"./Mail/drafts/1\".
15928 == Mail/drafts/1 ==
15929 To:
15930 cc:
15931 Subject:
15932 --------
15933
15934 ------- Forwarded message
15935 From: gray
15936 To: root
15937 Subject: test input
15938
15939 message body
15940
15941 ------- End of Forwarded message
15942
15943 Seen by mhed
15944 == Message ==
15945 From: gray
15946 To: root
15947 Subject: test input
15948
15949 message body
15950 " | \
15951 $at_diff - "$at_stdout" || at_failed=:
15952 at_fn_check_status 0 $at_status "$at_srcdir/forw.at:400"
15953 $at_failed && at_fn_log_failure
15954 $at_traceon; }
15955
15956 set +x
15957 $at_times_p && times >"$at_times_file"
15958 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15959 read at_status <"$at_status_file"
15960 #AT_STOP_229
15961 #AT_START_230
15962 at_fn_group_banner 230 'forw.at:461' \
15963 "-nodraftfolder" " " 21
15964 at_xfail=no
15965 (
15966 printf "%s\n" "230. $at_setup_line: testing $at_desc ..."
15967 $at_traceon
15968
15969
15970
15971 test -d Mail || mkdir Mail
15972 HOME=`pwd`
15973 export HOME
15974 MH=$HOME/mh_profile
15975 export MH
15976 cat > $MH <<EOT
15977 Path: $HOME/Mail
15978 mhetcdir: $abs_top_srcdir/mh/etc
15979 moreproc: /bin/cat
15980 EOT
15981 MTSTAILOR=$HOME/mtstailor
15982 export MTSTAILOR
15983 exec <&-
15984
15985 { set +x
15986 printf "%s\n" "$at_srcdir/forw.at:461:
15987 mkdir Mail/inbox
15988 mkdir Mail/drafts
15989 echo \"Draft-Folder: +drafts\" >> \$MH
15990
15991 cat >Mail/inbox/1 <<'_ATEOF'
15992 From: gray
15993 To: root
15994 Subject: test input
15995
15996 message body
15997 _ATEOF
15998
15999
16000 echo \"quit\" | forw -editor \$abs_top_srcdir/mh/tests/mhed -nodraftfolder 1 | cwdrepl | sed 's/ *\$//'
16001 echo == Mail/draft ==
16002 cat Mail/draft
16003 echo == Message ==
16004 sed '/^X-IMAPbase/d' Mail/inbox/1
16005 "
16006 at_fn_check_prepare_notrace 'an embedded newline' "forw.at:461"
16007 ( $at_check_trace;
16008 mkdir Mail/inbox
16009 mkdir Mail/drafts
16010 echo "Draft-Folder: +drafts" >> $MH
16011
16012 cat >Mail/inbox/1 <<'_ATEOF'
16013 From: gray
16014 To: root
16015 Subject: test input
16016
16017 message body
16018 _ATEOF
16019
16020
16021 echo "quit" | forw -editor $abs_top_srcdir/mh/tests/mhed -nodraftfolder 1 | cwdrepl | sed 's/ *$//'
16022 echo == Mail/draft ==
16023 cat Mail/draft
16024 echo == Message ==
16025 sed '/^X-IMAPbase/d' Mail/inbox/1
16026
16027 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16028 at_status=$? at_failed=false
16029 $at_check_filter
16030 at_fn_diff_devnull "$at_stderr" || at_failed=:
16031 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/draft
16032 -- Input file:
16033 To:
16034 cc:
16035 Subject:
16036 --------
16037
16038 ------- Forwarded message
16039 From: gray
16040 To: root
16041 Subject: test input
16042
16043 message body
16044
16045 ------- End of Forwarded message
16046
16047 -- Input file end
16048 What now? draft left on \"./Mail/draft\".
16049 == Mail/draft ==
16050 To:
16051 cc:
16052 Subject:
16053 --------
16054
16055 ------- Forwarded message
16056 From: gray
16057 To: root
16058 Subject: test input
16059
16060 message body
16061
16062 ------- End of Forwarded message
16063
16064 Seen by mhed
16065 == Message ==
16066 From: gray
16067 To: root
16068 Subject: test input
16069
16070 message body
16071 " | \
16072 $at_diff - "$at_stdout" || at_failed=:
16073 at_fn_check_status 0 $at_status "$at_srcdir/forw.at:461"
16074 $at_failed && at_fn_log_failure
16075 $at_traceon; }
16076
16077 set +x
16078 $at_times_p && times >"$at_times_file"
16079 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16080 read at_status <"$at_status_file"
16081 #AT_STOP_230
16082 #AT_START_231
16083 at_fn_group_banner 231 'repl.at:23' \
16084 "repl msg" " " 22
16085 at_xfail=no
16086 (
16087 printf "%s\n" "231. $at_setup_line: testing $at_desc ..."
16088 $at_traceon
16089
16090
16091
16092 test -d Mail || mkdir Mail
16093 HOME=`pwd`
16094 export HOME
16095 MH=$HOME/mh_profile
16096 export MH
16097 cat > $MH <<EOT
16098 Path: $HOME/Mail
16099 mhetcdir: $abs_top_srcdir/mh/etc
16100 moreproc: /bin/cat
16101 EOT
16102 MTSTAILOR=$HOME/mtstailor
16103 export MTSTAILOR
16104 exec <&-
16105
16106 { set +x
16107 printf "%s\n" "$at_srcdir/repl.at:23:
16108 mkdir Mail/inbox
16109 cat >Mail/inbox/1 <<'_ATEOF'
16110 From: [email protected]
16111 To: [email protected]
16112 Subject: test input
16113
16114 message body
16115 _ATEOF
16116
16117 echo \"quit\" | repl -editor \$abs_top_srcdir/mh/tests/mhed +inbox 1 | cwdrepl | sed 's/ *\$//'
16118 echo == Mail/draft ==
16119 cat Mail/draft
16120 "
16121 at_fn_check_prepare_notrace 'an embedded newline' "repl.at:23"
16122 ( $at_check_trace;
16123 mkdir Mail/inbox
16124 cat >Mail/inbox/1 <<'_ATEOF'
16125 From: [email protected]
16126 To: [email protected]
16127 Subject: test input
16128
16129 message body
16130 _ATEOF
16131
16132 echo "quit" | repl -editor $abs_top_srcdir/mh/tests/mhed +inbox 1 | cwdrepl | sed 's/ *$//'
16133 echo == Mail/draft ==
16134 cat Mail/draft
16135
16136 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16137 at_status=$? at_failed=false
16138 $at_check_filter
16139 at_fn_diff_devnull "$at_stderr" || at_failed=:
16140 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/draft
16141 -- Input file:
16142 To: <[email protected]>
16143 Subject: Re: test input
16144 User-Agent: MH (GNU Mailutils 3.20)
16145 --------
16146 -- Input file end
16147 What now? draft left on \"./Mail/draft\".
16148 == Mail/draft ==
16149 To: <[email protected]>
16150 Subject: Re: test input
16151 User-Agent: MH (GNU Mailutils 3.20)
16152 --------
16153 Seen by mhed
16154 " | \
16155 $at_diff - "$at_stdout" || at_failed=:
16156 at_fn_check_status 0 $at_status "$at_srcdir/repl.at:23"
16157 $at_failed && at_fn_log_failure
16158 $at_traceon; }
16159
16160 set +x
16161 $at_times_p && times >"$at_times_file"
16162 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16163 read at_status <"$at_status_file"
16164 #AT_STOP_231
16165 #AT_START_232
16166 at_fn_group_banner 232 'repl.at:52' \
16167 "repl -draftfolder" " " 22
16168 at_xfail=no
16169 (
16170 printf "%s\n" "232. $at_setup_line: testing $at_desc ..."
16171 $at_traceon
16172
16173
16174
16175 test -d Mail || mkdir Mail
16176 HOME=`pwd`
16177 export HOME
16178 MH=$HOME/mh_profile
16179 export MH
16180 cat > $MH <<EOT
16181 Path: $HOME/Mail
16182 mhetcdir: $abs_top_srcdir/mh/etc
16183 moreproc: /bin/cat
16184 EOT
16185 MTSTAILOR=$HOME/mtstailor
16186 export MTSTAILOR
16187 exec <&-
16188
16189 { set +x
16190 printf "%s\n" "$at_srcdir/repl.at:52:
16191 mkdir Mail/inbox
16192 mkdir Mail/drafts
16193 cat >Mail/inbox/1 <<'_ATEOF'
16194 From: [email protected]
16195 To: [email protected]
16196 Subject: test input
16197
16198 message body
16199 _ATEOF
16200
16201 echo \"quit\" | repl -editor \$abs_top_srcdir/mh/tests/mhed -draftfolder drafts +inbox 1 | cwdrepl | sed 's/ *\$//'
16202 echo == Mail/drafts/1 ==
16203 cat Mail/drafts/1
16204 "
16205 at_fn_check_prepare_notrace 'an embedded newline' "repl.at:52"
16206 ( $at_check_trace;
16207 mkdir Mail/inbox
16208 mkdir Mail/drafts
16209 cat >Mail/inbox/1 <<'_ATEOF'
16210 From: [email protected]
16211 To: [email protected]
16212 Subject: test input
16213
16214 message body
16215 _ATEOF
16216
16217 echo "quit" | repl -editor $abs_top_srcdir/mh/tests/mhed -draftfolder drafts +inbox 1 | cwdrepl | sed 's/ *$//'
16218 echo == Mail/drafts/1 ==
16219 cat Mail/drafts/1
16220
16221 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16222 at_status=$? at_failed=false
16223 $at_check_filter
16224 at_fn_diff_devnull "$at_stderr" || at_failed=:
16225 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/drafts/1
16226 -- Input file:
16227 To: <[email protected]>
16228 Subject: Re: test input
16229 User-Agent: MH (GNU Mailutils 3.20)
16230 --------
16231 -- Input file end
16232 What now? draft left on \"./Mail/drafts/1\".
16233 == Mail/drafts/1 ==
16234 To: <[email protected]>
16235 Subject: Re: test input
16236 User-Agent: MH (GNU Mailutils 3.20)
16237 --------
16238 Seen by mhed
16239 " | \
16240 $at_diff - "$at_stdout" || at_failed=:
16241 at_fn_check_status 0 $at_status "$at_srcdir/repl.at:52"
16242 $at_failed && at_fn_log_failure
16243 $at_traceon; }
16244
16245 set +x
16246 $at_times_p && times >"$at_times_file"
16247 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16248 read at_status <"$at_status_file"
16249 #AT_STOP_232
16250 #AT_START_233
16251 at_fn_group_banner 233 'repl.at:82' \
16252 "Draft-Folder" " " 22
16253 at_xfail=no
16254 (
16255 printf "%s\n" "233. $at_setup_line: testing $at_desc ..."
16256 $at_traceon
16257
16258
16259
16260 test -d Mail || mkdir Mail
16261 HOME=`pwd`
16262 export HOME
16263 MH=$HOME/mh_profile
16264 export MH
16265 cat > $MH <<EOT
16266 Path: $HOME/Mail
16267 mhetcdir: $abs_top_srcdir/mh/etc
16268 moreproc: /bin/cat
16269 EOT
16270 MTSTAILOR=$HOME/mtstailor
16271 export MTSTAILOR
16272 exec <&-
16273
16274 { set +x
16275 printf "%s\n" "$at_srcdir/repl.at:82:
16276 mkdir Mail/inbox
16277 mkdir Mail/drafts
16278 echo \"Draft-Folder: +drafts\" >> \$MH
16279
16280 cat >Mail/inbox/1 <<'_ATEOF'
16281 From: [email protected]
16282 To: [email protected]
16283 Subject: test input
16284
16285 message body
16286 _ATEOF
16287
16288 echo \"quit\" | repl -editor \$abs_top_srcdir/mh/tests/mhed +inbox 1 | cwdrepl | sed 's/ *\$//'
16289 echo == Mail/drafts/1 ==
16290 cat Mail/drafts/1
16291 "
16292 at_fn_check_prepare_notrace 'an embedded newline' "repl.at:82"
16293 ( $at_check_trace;
16294 mkdir Mail/inbox
16295 mkdir Mail/drafts
16296 echo "Draft-Folder: +drafts" >> $MH
16297
16298 cat >Mail/inbox/1 <<'_ATEOF'
16299 From: [email protected]
16300 To: [email protected]
16301 Subject: test input
16302
16303 message body
16304 _ATEOF
16305
16306 echo "quit" | repl -editor $abs_top_srcdir/mh/tests/mhed +inbox 1 | cwdrepl | sed 's/ *$//'
16307 echo == Mail/drafts/1 ==
16308 cat Mail/drafts/1
16309
16310 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16311 at_status=$? at_failed=false
16312 $at_check_filter
16313 at_fn_diff_devnull "$at_stderr" || at_failed=:
16314 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/drafts/1
16315 -- Input file:
16316 To: <[email protected]>
16317 Subject: Re: test input
16318 User-Agent: MH (GNU Mailutils 3.20)
16319 --------
16320 -- Input file end
16321 What now? draft left on \"./Mail/drafts/1\".
16322 == Mail/drafts/1 ==
16323 To: <[email protected]>
16324 Subject: Re: test input
16325 User-Agent: MH (GNU Mailutils 3.20)
16326 --------
16327 Seen by mhed
16328 " | \
16329 $at_diff - "$at_stdout" || at_failed=:
16330 at_fn_check_status 0 $at_status "$at_srcdir/repl.at:82"
16331 $at_failed && at_fn_log_failure
16332 $at_traceon; }
16333
16334 set +x
16335 $at_times_p && times >"$at_times_file"
16336 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16337 read at_status <"$at_status_file"
16338 #AT_STOP_233
16339 #AT_START_234
16340 at_fn_group_banner 234 'repl.at:114' \
16341 "-nodraftfolder" " " 22
16342 at_xfail=no
16343 (
16344 printf "%s\n" "234. $at_setup_line: testing $at_desc ..."
16345 $at_traceon
16346
16347
16348
16349 test -d Mail || mkdir Mail
16350 HOME=`pwd`
16351 export HOME
16352 MH=$HOME/mh_profile
16353 export MH
16354 cat > $MH <<EOT
16355 Path: $HOME/Mail
16356 mhetcdir: $abs_top_srcdir/mh/etc
16357 moreproc: /bin/cat
16358 EOT
16359 MTSTAILOR=$HOME/mtstailor
16360 export MTSTAILOR
16361 exec <&-
16362
16363 { set +x
16364 printf "%s\n" "$at_srcdir/repl.at:114:
16365 mkdir Mail/inbox
16366 mkdir Mail/drafts
16367 echo \"Draft-Folder: +drafts\" >> \$MH
16368
16369 cat >Mail/inbox/1 <<'_ATEOF'
16370 From: [email protected]
16371 To: [email protected]
16372 Subject: test input
16373
16374 message body
16375 _ATEOF
16376
16377 echo \"quit\" | repl -editor \$abs_top_srcdir/mh/tests/mhed -nodraftfolder +inbox 1 | cwdrepl | sed 's/ *\$//'
16378 echo == Mail/draft ==
16379 cat Mail/draft
16380 "
16381 at_fn_check_prepare_notrace 'an embedded newline' "repl.at:114"
16382 ( $at_check_trace;
16383 mkdir Mail/inbox
16384 mkdir Mail/drafts
16385 echo "Draft-Folder: +drafts" >> $MH
16386
16387 cat >Mail/inbox/1 <<'_ATEOF'
16388 From: [email protected]
16389 To: [email protected]
16390 Subject: test input
16391
16392 message body
16393 _ATEOF
16394
16395 echo "quit" | repl -editor $abs_top_srcdir/mh/tests/mhed -nodraftfolder +inbox 1 | cwdrepl | sed 's/ *$//'
16396 echo == Mail/draft ==
16397 cat Mail/draft
16398
16399 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16400 at_status=$? at_failed=false
16401 $at_check_filter
16402 at_fn_diff_devnull "$at_stderr" || at_failed=:
16403 echo >>"$at_stdout"; printf "%s\n" "-- Editor invocation: ./Mail/draft
16404 -- Input file:
16405 To: <[email protected]>
16406 Subject: Re: test input
16407 User-Agent: MH (GNU Mailutils 3.20)
16408 --------
16409 -- Input file end
16410 What now? draft left on \"./Mail/draft\".
16411 == Mail/draft ==
16412 To: <[email protected]>
16413 Subject: Re: test input
16414 User-Agent: MH (GNU Mailutils 3.20)
16415 --------
16416 Seen by mhed
16417 " | \
16418 $at_diff - "$at_stdout" || at_failed=:
16419 at_fn_check_status 0 $at_status "$at_srcdir/repl.at:114"
16420 $at_failed && at_fn_log_failure
16421 $at_traceon; }
16422
16423 set +x
16424 $at_times_p && times >"$at_times_file"
16425 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16426 read at_status <"$at_status_file"
16427 #AT_STOP_234
16428 #AT_START_235
16429 at_fn_group_banner 235 'mhn.at:24' \
16430 "mhn -list" " " 23
16431 at_xfail=no
16432 (
16433 printf "%s\n" "235. $at_setup_line: testing $at_desc ..."
16434 $at_traceon
16435
16436
16437
16438 test -d Mail || mkdir Mail
16439 HOME=`pwd`
16440 export HOME
16441 MH=$HOME/mh_profile
16442 export MH
16443 cat > $MH <<EOT
16444 Path: $HOME/Mail
16445 mhetcdir: $abs_top_srcdir/mh/etc
16446 moreproc: /bin/cat
16447 EOT
16448 MTSTAILOR=$HOME/mtstailor
16449 export MTSTAILOR
16450 exec <&-
16451
16452 { set +x
16453 printf "%s\n" "$at_srcdir/mhn.at:24:
16454 mbox2dir -m Mail/inbox \$spooldir/mbox1
16455 mhn +inbox -list all
16456 "
16457 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:24"
16458 ( $at_check_trace;
16459 mbox2dir -m Mail/inbox $spooldir/mbox1
16460 mhn +inbox -list all
16461
16462 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16463 at_status=$? at_failed=false
16464 $at_check_filter
16465 at_fn_diff_devnull "$at_stderr" || at_failed=:
16466 echo >>"$at_stdout"; printf "%s\n" " msg part type/subtype size description
16467 1 text/plain 937
16468 2 text/plain 215
16469 3 multipart/mixed 2K
16470 1 text/plain 230 How doth
16471 2 application/octet-stream 462 Father William Part I
16472 4 multipart/mixed 3K
16473 1 text/plain 341 Father William Part I
16474 2 multipart/mixed 3K
16475 2.1 application/octet-stream 479 Father William Part II
16476 2.2 multipart/mixed 2K
16477 2.2.1 application/octet-stream 483 Father William Part III
16478 2.2.2 application/octet-stream 495 Father William Part IV
16479 5 multipart/mixed 355
16480 1 text/plain 0 Empty part
16481 2 text/plain 1 Single line part
16482 " | \
16483 $at_diff - "$at_stdout" || at_failed=:
16484 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:24"
16485 $at_failed && at_fn_log_failure
16486 $at_traceon; }
16487
16488 set +x
16489 $at_times_p && times >"$at_times_file"
16490 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16491 read at_status <"$at_status_file"
16492 #AT_STOP_235
16493 #AT_START_236
16494 at_fn_group_banner 236 'mhn.at:47' \
16495 "mhn -list -realsize" " " 23
16496 at_xfail=no
16497 (
16498 printf "%s\n" "236. $at_setup_line: testing $at_desc ..."
16499 $at_traceon
16500
16501
16502
16503 test -d Mail || mkdir Mail
16504 HOME=`pwd`
16505 export HOME
16506 MH=$HOME/mh_profile
16507 export MH
16508 cat > $MH <<EOT
16509 Path: $HOME/Mail
16510 mhetcdir: $abs_top_srcdir/mh/etc
16511 moreproc: /bin/cat
16512 EOT
16513 MTSTAILOR=$HOME/mtstailor
16514 export MTSTAILOR
16515 exec <&-
16516
16517 { set +x
16518 printf "%s\n" "$at_srcdir/mhn.at:47:
16519 mbox2dir -m Mail/inbox \$spooldir/mbox1
16520 mhn +inbox -list -realsize all
16521 "
16522 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:47"
16523 ( $at_check_trace;
16524 mbox2dir -m Mail/inbox $spooldir/mbox1
16525 mhn +inbox -list -realsize all
16526
16527 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16528 at_status=$? at_failed=false
16529 $at_check_filter
16530 at_fn_diff_devnull "$at_stderr" || at_failed=:
16531 echo >>"$at_stdout"; printf "%s\n" " msg part type/subtype size description
16532 1 text/plain 937
16533 2 text/plain 215
16534 3 multipart/mixed 2K
16535 1 text/plain 230 How doth
16536 2 application/octet-stream 341 Father William Part I
16537 4 multipart/mixed 3K
16538 1 text/plain 341 Father William Part I
16539 2 multipart/mixed 3K
16540 2.1 application/octet-stream 352 Father William Part II
16541 2.2 multipart/mixed 2K
16542 2.2.1 application/octet-stream 357 Father William Part III
16543 2.2.2 application/octet-stream 366 Father William Part IV
16544 5 multipart/mixed 355
16545 1 text/plain 0 Empty part
16546 2 text/plain 1 Single line part
16547 " | \
16548 $at_diff - "$at_stdout" || at_failed=:
16549 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:47"
16550 $at_failed && at_fn_log_failure
16551 $at_traceon; }
16552
16553 set +x
16554 $at_times_p && times >"$at_times_file"
16555 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16556 read at_status <"$at_status_file"
16557 #AT_STOP_236
16558 #AT_START_237
16559 at_fn_group_banner 237 'mhn.at:74' \
16560 "mhn -store" " " 23
16561 at_xfail=no
16562 (
16563 printf "%s\n" "237. $at_setup_line: testing $at_desc ..."
16564 $at_traceon
16565
16566
16567
16568 test -d Mail || mkdir Mail
16569 HOME=`pwd`
16570 export HOME
16571 MH=$HOME/mh_profile
16572 export MH
16573 cat > $MH <<EOT
16574 Path: $HOME/Mail
16575 mhetcdir: $abs_top_srcdir/mh/etc
16576 moreproc: /bin/cat
16577 EOT
16578 MTSTAILOR=$HOME/mtstailor
16579 export MTSTAILOR
16580 exec <&-
16581
16582 { set +x
16583 printf "%s\n" "$at_srcdir/mhn.at:74:
16584 mbox2dir -m Mail/inbox \$spooldir/mbox1
16585 mhn +inbox -store 4 || exit \$?
16586 for file in 4.1.plain 4.2.1.octet-stream 4.2.2.1.octet-stream 4.2.2.2.octet-stream
16587 do
16588 echo == \$file ==
16589 cat \$file
16590 done
16591 "
16592 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:74"
16593 ( $at_check_trace;
16594 mbox2dir -m Mail/inbox $spooldir/mbox1
16595 mhn +inbox -store 4 || exit $?
16596 for file in 4.1.plain 4.2.1.octet-stream 4.2.2.1.octet-stream 4.2.2.2.octet-stream
16597 do
16598 echo == $file ==
16599 cat $file
16600 done
16601
16602 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16603 at_status=$? at_failed=false
16604 $at_check_filter
16605 at_fn_diff_devnull "$at_stderr" || at_failed=:
16606 echo >>"$at_stdout"; printf "%s\n" "storing message 4 part 1 as file 4.1.plain
16607 storing message 4 part 2.1 as file 4.2.1.octet-stream
16608 storing message 4 part 2.2.1 as file 4.2.2.1.octet-stream
16609 storing message 4 part 2.2.2 as file 4.2.2.2.octet-stream
16610 == 4.1.plain ==
16611 \`You are old, Father William,' the young man said,
16612 \`And your hair has become very white;
16613 And yet you incessantly stand on your head--
16614 Do you think, at your age, it is right?'
16615
16616 \`In my youth,' Father William replied to his son,
16617 \`I feared it might injure the brain;
16618 But, now that I'm perfectly sure I have none,
16619 Why, I do it again and again.'
16620
16621 == 4.2.1.octet-stream ==
16622 \`You are old,' said the youth, \`as I mentioned before,
16623 And have grown most uncommonly fat;
16624 Yet you turned a back-somersault in at the door--
16625 Pray, what is the reason of that?'
16626
16627 \`In my youth,' said the sage, as he shook his grey locks,
16628 \`I kept all my limbs very supple
16629 By the use of this ointment--one shilling the box--
16630 Allow me to sell you a couple?'
16631 == 4.2.2.1.octet-stream ==
16632 \`You are old,' said the youth, \`and your jaws are too weak
16633 For anything tougher than suet;
16634 Yet you finished the goose, with the bones and the beak--
16635 Pray how did you manage to do it?'
16636
16637 \`In my youth,' said his father, \`I took to the law,
16638 And argued each case with my wife;
16639 And the muscular strength, which it gave to my jaw,
16640 Has lasted the rest of my life.'
16641 == 4.2.2.2.octet-stream ==
16642 \`You are old,' said the youth, \`one would hardly suppose
16643 That your eye was as steady as ever;
16644 Yet you balanced an eel on the end of your nose--
16645 What made you so awfully clever?'
16646
16647 \`I have answered three questions, and that is enough,'
16648 Said his father; \`don't give yourself airs!
16649 Do you think I can listen all day to such stuff?
16650 Be off, or I'll kick you down stairs!'
16651 " | \
16652 $at_diff - "$at_stdout" || at_failed=:
16653 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:74"
16654 $at_failed && at_fn_log_failure
16655 $at_traceon; }
16656
16657 set +x
16658 $at_times_p && times >"$at_times_file"
16659 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16660 read at_status <"$at_status_file"
16661 #AT_STOP_237
16662 #AT_START_238
16663 at_fn_group_banner 238 'mhn.at:131' \
16664 "mhn -store -auto" " " 23
16665 at_xfail=no
16666 (
16667 printf "%s\n" "238. $at_setup_line: testing $at_desc ..."
16668 $at_traceon
16669
16670
16671
16672 test -d Mail || mkdir Mail
16673 HOME=`pwd`
16674 export HOME
16675 MH=$HOME/mh_profile
16676 export MH
16677 cat > $MH <<EOT
16678 Path: $HOME/Mail
16679 mhetcdir: $abs_top_srcdir/mh/etc
16680 moreproc: /bin/cat
16681 EOT
16682 MTSTAILOR=$HOME/mtstailor
16683 export MTSTAILOR
16684 exec <&-
16685
16686 { set +x
16687 printf "%s\n" "$at_srcdir/mhn.at:131:
16688 mbox2dir -m Mail/inbox \$spooldir/mbox1
16689 mhn +inbox -store -auto 4 | cwdrepl || exit \$?
16690 "
16691 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:131"
16692 ( $at_check_trace;
16693 mbox2dir -m Mail/inbox $spooldir/mbox1
16694 mhn +inbox -store -auto 4 | cwdrepl || exit $?
16695
16696 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16697 at_status=$? at_failed=false
16698 $at_check_filter
16699 at_fn_diff_devnull "$at_stderr" || at_failed=:
16700 echo >>"$at_stdout"; printf "%s\n" "storing message 4 part 1 as file ./msg.21
16701 storing message 4 part 2.1 as file ./msg.22
16702 storing message 4 part 2.2.1 as file ./msg.23
16703 storing message 4 part 2.2.2 as file ./msg.24
16704 " | \
16705 $at_diff - "$at_stdout" || at_failed=:
16706 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:131"
16707 $at_failed && at_fn_log_failure
16708 $at_traceon; }
16709
16710 set +x
16711 $at_times_p && times >"$at_times_file"
16712 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16713 read at_status <"$at_status_file"
16714 #AT_STOP_238
16715 #AT_START_239
16716 at_fn_group_banner 239 'mhn.at:142' \
16717 "mhn -store -auto -part" " " 23
16718 at_xfail=no
16719 (
16720 printf "%s\n" "239. $at_setup_line: testing $at_desc ..."
16721 $at_traceon
16722
16723
16724
16725 test -d Mail || mkdir Mail
16726 HOME=`pwd`
16727 export HOME
16728 MH=$HOME/mh_profile
16729 export MH
16730 cat > $MH <<EOT
16731 Path: $HOME/Mail
16732 mhetcdir: $abs_top_srcdir/mh/etc
16733 moreproc: /bin/cat
16734 EOT
16735 MTSTAILOR=$HOME/mtstailor
16736 export MTSTAILOR
16737 exec <&-
16738
16739 { set +x
16740 printf "%s\n" "$at_srcdir/mhn.at:142:
16741 mbox2dir -m Mail/inbox \$spooldir/mbox1
16742 mhn +inbox -store -auto -part 2.2.1 4 | cwdrepl || exit \$?
16743 "
16744 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:142"
16745 ( $at_check_trace;
16746 mbox2dir -m Mail/inbox $spooldir/mbox1
16747 mhn +inbox -store -auto -part 2.2.1 4 | cwdrepl || exit $?
16748
16749 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16750 at_status=$? at_failed=false
16751 $at_check_filter
16752 at_fn_diff_devnull "$at_stderr" || at_failed=:
16753 echo >>"$at_stdout"; printf "%s\n" "storing message 4 part 2.2.1 as file ./msg.23
16754 " | \
16755 $at_diff - "$at_stdout" || at_failed=:
16756 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:142"
16757 $at_failed && at_fn_log_failure
16758 $at_traceon; }
16759
16760 set +x
16761 $at_times_p && times >"$at_times_file"
16762 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16763 read at_status <"$at_status_file"
16764 #AT_STOP_239
16765 #AT_START_240
16766 at_fn_group_banner 240 'mhn.at:150' \
16767 "mhn -store -auto (pathname safety)" " " 23
16768 at_xfail=no
16769 (
16770 printf "%s\n" "240. $at_setup_line: testing $at_desc ..."
16771 $at_traceon
16772
16773
16774
16775 test -d Mail || mkdir Mail
16776 HOME=`pwd`
16777 export HOME
16778 MH=$HOME/mh_profile
16779 export MH
16780 cat > $MH <<EOT
16781 Path: $HOME/Mail
16782 mhetcdir: $abs_top_srcdir/mh/etc
16783 moreproc: /bin/cat
16784 EOT
16785 MTSTAILOR=$HOME/mtstailor
16786 export MTSTAILOR
16787 exec <&-
16788
16789 { set +x
16790 printf "%s\n" "$at_srcdir/mhn.at:150:
16791 mkdir Mail/inbox
16792 cat >Mail/inbox/4 <<'_ATEOF'
16793 From [email protected] Sat Jul 13 00:50:58 2002
16794 Organization: Mailutils-tests
16795 Received: from example.net (localhost 127.0.0.1)
16796 by example.net with ESMTP id g6CLowb05126
16797 for <[email protected]>; Sat, 13 Jul 2002 00:50:58 +0300
16798 Message-Id: <[email protected]>
16799 To: Foo Bar <[email protected]>
16800 Subject: Nested MIME
16801 MIME-Version: 1.0
16802 Content-Type: multipart/mixed; boundary=\"----- =_aaaaaaaaaa0\"
16803 Content-ID: <[email protected]>
16804 Date: Sat, 13 Jul 2002 00:50:58 +0300
16805 From: Sergey Poznyakoff <[email protected]>
16806
16807 ------- =_aaaaaaaaaa0
16808 Content-Type: text/plain; name=\"../msg.21\"; charset=\"us-ascii\"
16809 Content-ID: <[email protected]>
16810 Content-Description: Father William Part I
16811
16812 \`You are old, Father William,' the young man said,
16813 \`And your hair has become very white;
16814 And yet you incessantly stand on your head--
16815 Do you think, at your age, it is right?'
16816
16817 \`In my youth,' Father William replied to his son,
16818 \`I feared it might injure the brain;
16819 But, now that I'm perfectly sure I have none,
16820 Why, I do it again and again.'
16821
16822
16823 ------- =_aaaaaaaaaa0
16824 Content-Type: multipart/mixed; boundary=\"----- =_aaaaaaaaaa1\"
16825 Content-ID: <[email protected]>
16826
16827 ------- =_aaaaaaaaaa1
16828 Content-Type: application/octet-stream; name=\"../msg.22\"
16829 Content-ID: <[email protected]>
16830 Content-Description: Father William Part II
16831 Content-Transfer-Encoding: base64
16832
16833 YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhcyBJIG1lbnRpb25lZCBiZWZvcmUsCkFu
16834 ZCBoYXZlIGdyb3duIG1vc3QgdW5jb21tb25seSBmYXQ7CllldCB5b3UgdHVybmVkIGEgYmFjay1z
16835 b21lcnNhdWx0IGluIGF0IHRoZSBkb29yLS0KUHJheSwgd2hhdCBpcyB0aGUgcmVhc29uIG9mIHRo
16836 YXQ/JwoKYEluIG15IHlvdXRoLCcgc2FpZCB0aGUgc2FnZSwgYXMgaGUgc2hvb2sgaGlzIGdyZXkg
16837 bG9ja3MsCmBJIGtlcHQgYWxsIG15IGxpbWJzIHZlcnkgc3VwcGxlCkJ5IHRoZSB1c2Ugb2YgdGhp
16838 cyBvaW50bWVudC0tb25lIHNoaWxsaW5nIHRoZSBib3gtLQpBbGxvdyBtZSB0byBzZWxsIHlvdSBh
16839 IGNvdXBsZT8nCg==
16840
16841 ------- =_aaaaaaaaaa1
16842 Content-Type: multipart/mixed; boundary=\"----- =_aaaaaaaaaa2\"
16843 Content-ID: <[email protected]>
16844
16845 ------- =_aaaaaaaaaa2
16846 Content-Type: application/octet-stream; name=\"../msg.23\"
16847 Content-ID: <[email protected]>
16848 Content-Description: Father William Part III
16849 Content-Transfer-Encoding: base64
16850
16851 YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhbmQgeW91ciBqYXdzIGFyZSB0b28gd2Vh
16852 awpGb3IgYW55dGhpbmcgdG91Z2hlciB0aGFuIHN1ZXQ7CllldCB5b3UgZmluaXNoZWQgdGhlIGdv
16853 b3NlLCB3aXRoIHRoZSBib25lcyBhbmQgdGhlIGJlYWstLQpQcmF5IGhvdyBkaWQgeW91IG1hbmFn
16854 ZSB0byBkbyBpdD8nCgpgSW4gbXkgeW91dGgsJyBzYWlkIGhpcyBmYXRoZXIsIGBJIHRvb2sgdG8g
16855 dGhlIGxhdywKQW5kIGFyZ3VlZCBlYWNoIGNhc2Ugd2l0aCBteSB3aWZlOwpBbmQgdGhlIG11c2N1
16856 bGFyIHN0cmVuZ3RoLCB3aGljaCBpdCBnYXZlIHRvIG15IGphdywKSGFzIGxhc3RlZCB0aGUgcmVz
16857 dCBvZiBteSBsaWZlLicK
16858
16859 ------- =_aaaaaaaaaa2
16860 Content-Type: application/octet-stream; name=\"../msg.24\"
16861 Content-ID: <[email protected]>
16862 Content-Description: Father William Part IV
16863 Content-Transfer-Encoding: base64
16864
16865 YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBvbmUgd291bGQgaGFyZGx5IHN1cHBvc2UK
16866 VGhhdCB5b3VyIGV5ZSB3YXMgYXMgc3RlYWR5IGFzIGV2ZXI7CllldCB5b3UgYmFsYW5jZWQgYW4g
16867 ZWVsIG9uIHRoZSBlbmQgb2YgeW91ciBub3NlLS0KV2hhdCBtYWRlIHlvdSBzbyBhd2Z1bGx5IGNs
16868 ZXZlcj8nCgpgSSBoYXZlIGFuc3dlcmVkIHRocmVlIHF1ZXN0aW9ucywgYW5kIHRoYXQgaXMgZW5v
16869 dWdoLCcKU2FpZCBoaXMgZmF0aGVyOyBgZG9uJ3QgZ2l2ZSB5b3Vyc2VsZiBhaXJzIQpEbyB5b3Ug
16870 dGhpbmsgSSBjYW4gbGlzdGVuIGFsbCBkYXkgdG8gc3VjaCBzdHVmZj8KQmUgb2ZmLCBvciBJJ2xs
16871 IGtpY2sgeW91IGRvd24gc3RhaXJzIScK
16872
16873 ------- =_aaaaaaaaaa2--
16874
16875 ------- =_aaaaaaaaaa1--
16876
16877 ------- =_aaaaaaaaaa0--
16878 _ATEOF
16879
16880 mhn +inbox -store -auto -part 2.1 4 || echo \$?
16881 echo == 4.2.1.octet-stream ==
16882 cat 4.2.1.octet-stream
16883 "
16884 at_fn_check_prepare_notrace 'a `...` command substitution' "mhn.at:150"
16885 ( $at_check_trace;
16886 mkdir Mail/inbox
16887 cat >Mail/inbox/4 <<'_ATEOF'
16888 From [email protected] Sat Jul 13 00:50:58 2002
16889 Organization: Mailutils-tests
16890 Received: from example.net (localhost 127.0.0.1)
16891 by example.net with ESMTP id g6CLowb05126
16892 for <[email protected]>; Sat, 13 Jul 2002 00:50:58 +0300
16893 Message-Id: <[email protected]>
16894 To: Foo Bar <[email protected]>
16895 Subject: Nested MIME
16896 MIME-Version: 1.0
16897 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0"
16898 Content-ID: <[email protected]>
16899 Date: Sat, 13 Jul 2002 00:50:58 +0300
16900 From: Sergey Poznyakoff <[email protected]>
16901
16902 ------- =_aaaaaaaaaa0
16903 Content-Type: text/plain; name="../msg.21"; charset="us-ascii"
16904 Content-ID: <[email protected]>
16905 Content-Description: Father William Part I
16906
16907 `You are old, Father William,' the young man said,
16908 `And your hair has become very white;
16909 And yet you incessantly stand on your head--
16910 Do you think, at your age, it is right?'
16911
16912 `In my youth,' Father William replied to his son,
16913 `I feared it might injure the brain;
16914 But, now that I'm perfectly sure I have none,
16915 Why, I do it again and again.'
16916
16917
16918 ------- =_aaaaaaaaaa0
16919 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa1"
16920 Content-ID: <[email protected]>
16921
16922 ------- =_aaaaaaaaaa1
16923 Content-Type: application/octet-stream; name="../msg.22"
16924 Content-ID: <[email protected]>
16925 Content-Description: Father William Part II
16926 Content-Transfer-Encoding: base64
16927
16928 YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhcyBJIG1lbnRpb25lZCBiZWZvcmUsCkFu
16929 ZCBoYXZlIGdyb3duIG1vc3QgdW5jb21tb25seSBmYXQ7CllldCB5b3UgdHVybmVkIGEgYmFjay1z
16930 b21lcnNhdWx0IGluIGF0IHRoZSBkb29yLS0KUHJheSwgd2hhdCBpcyB0aGUgcmVhc29uIG9mIHRo
16931 YXQ/JwoKYEluIG15IHlvdXRoLCcgc2FpZCB0aGUgc2FnZSwgYXMgaGUgc2hvb2sgaGlzIGdyZXkg
16932 bG9ja3MsCmBJIGtlcHQgYWxsIG15IGxpbWJzIHZlcnkgc3VwcGxlCkJ5IHRoZSB1c2Ugb2YgdGhp
16933 cyBvaW50bWVudC0tb25lIHNoaWxsaW5nIHRoZSBib3gtLQpBbGxvdyBtZSB0byBzZWxsIHlvdSBh
16934 IGNvdXBsZT8nCg==
16935
16936 ------- =_aaaaaaaaaa1
16937 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa2"
16938 Content-ID: <[email protected]>
16939
16940 ------- =_aaaaaaaaaa2
16941 Content-Type: application/octet-stream; name="../msg.23"
16942 Content-ID: <[email protected]>
16943 Content-Description: Father William Part III
16944 Content-Transfer-Encoding: base64
16945
16946 YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhbmQgeW91ciBqYXdzIGFyZSB0b28gd2Vh
16947 awpGb3IgYW55dGhpbmcgdG91Z2hlciB0aGFuIHN1ZXQ7CllldCB5b3UgZmluaXNoZWQgdGhlIGdv
16948 b3NlLCB3aXRoIHRoZSBib25lcyBhbmQgdGhlIGJlYWstLQpQcmF5IGhvdyBkaWQgeW91IG1hbmFn
16949 ZSB0byBkbyBpdD8nCgpgSW4gbXkgeW91dGgsJyBzYWlkIGhpcyBmYXRoZXIsIGBJIHRvb2sgdG8g
16950 dGhlIGxhdywKQW5kIGFyZ3VlZCBlYWNoIGNhc2Ugd2l0aCBteSB3aWZlOwpBbmQgdGhlIG11c2N1
16951 bGFyIHN0cmVuZ3RoLCB3aGljaCBpdCBnYXZlIHRvIG15IGphdywKSGFzIGxhc3RlZCB0aGUgcmVz
16952 dCBvZiBteSBsaWZlLicK
16953
16954 ------- =_aaaaaaaaaa2
16955 Content-Type: application/octet-stream; name="../msg.24"
16956 Content-ID: <[email protected]>
16957 Content-Description: Father William Part IV
16958 Content-Transfer-Encoding: base64
16959
16960 YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBvbmUgd291bGQgaGFyZGx5IHN1cHBvc2UK
16961 VGhhdCB5b3VyIGV5ZSB3YXMgYXMgc3RlYWR5IGFzIGV2ZXI7CllldCB5b3UgYmFsYW5jZWQgYW4g
16962 ZWVsIG9uIHRoZSBlbmQgb2YgeW91ciBub3NlLS0KV2hhdCBtYWRlIHlvdSBzbyBhd2Z1bGx5IGNs
16963 ZXZlcj8nCgpgSSBoYXZlIGFuc3dlcmVkIHRocmVlIHF1ZXN0aW9ucywgYW5kIHRoYXQgaXMgZW5v
16964 dWdoLCcKU2FpZCBoaXMgZmF0aGVyOyBgZG9uJ3QgZ2l2ZSB5b3Vyc2VsZiBhaXJzIQpEbyB5b3Ug
16965 dGhpbmsgSSBjYW4gbGlzdGVuIGFsbCBkYXkgdG8gc3VjaCBzdHVmZj8KQmUgb2ZmLCBvciBJJ2xs
16966 IGtpY2sgeW91IGRvd24gc3RhaXJzIScK
16967
16968 ------- =_aaaaaaaaaa2--
16969
16970 ------- =_aaaaaaaaaa1--
16971
16972 ------- =_aaaaaaaaaa0--
16973 _ATEOF
16974
16975 mhn +inbox -store -auto -part 2.1 4 || echo $?
16976 echo == 4.2.1.octet-stream ==
16977 cat 4.2.1.octet-stream
16978
16979 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16980 at_status=$? at_failed=false
16981 $at_check_filter
16982 at_fn_diff_devnull "$at_stderr" || at_failed=:
16983 echo >>"$at_stdout"; printf "%s\n" "storing message 4 part 2.1 as file 4.2.1.octet-stream
16984 == 4.2.1.octet-stream ==
16985 \`You are old,' said the youth, \`as I mentioned before,
16986 And have grown most uncommonly fat;
16987 Yet you turned a back-somersault in at the door--
16988 Pray, what is the reason of that?'
16989
16990 \`In my youth,' said the sage, as he shook his grey locks,
16991 \`I kept all my limbs very supple
16992 By the use of this ointment--one shilling the box--
16993 Allow me to sell you a couple?'
16994 " | \
16995 $at_diff - "$at_stdout" || at_failed=:
16996 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:150"
16997 $at_failed && at_fn_log_failure
16998 $at_traceon; }
16999
17000 set +x
17001 $at_times_p && times >"$at_times_file"
17002 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17003 read at_status <"$at_status_file"
17004 #AT_STOP_240
17005 #AT_START_241
17006 at_fn_group_banner 241 'mhn.at:257' \
17007 "mhn-storage" " " 23
17008 at_xfail=no
17009 (
17010 printf "%s\n" "241. $at_setup_line: testing $at_desc ..."
17011 $at_traceon
17012
17013
17014
17015 test -d Mail || mkdir Mail
17016 HOME=`pwd`
17017 export HOME
17018 MH=$HOME/mh_profile
17019 export MH
17020 cat > $MH <<EOT
17021 Path: $HOME/Mail
17022 mhetcdir: $abs_top_srcdir/mh/etc
17023 moreproc: /bin/cat
17024 EOT
17025 MTSTAILOR=$HOME/mtstailor
17026 export MTSTAILOR
17027 exec <&-
17028
17029 { set +x
17030 printf "%s\n" "$at_srcdir/mhn.at:257:
17031 mbox2dir -m Mail/inbox \$spooldir/mbox1
17032
17033 mkdir out
17034 echo \"mhn-storage: \$HOME/out\" >> \$MH
17035
17036 mhn +inbox -store 4 | cwdrepl || echo \$?
17037 "
17038 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:257"
17039 ( $at_check_trace;
17040 mbox2dir -m Mail/inbox $spooldir/mbox1
17041
17042 mkdir out
17043 echo "mhn-storage: $HOME/out" >> $MH
17044
17045 mhn +inbox -store 4 | cwdrepl || echo $?
17046
17047 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17048 at_status=$? at_failed=false
17049 $at_check_filter
17050 at_fn_diff_devnull "$at_stderr" || at_failed=:
17051 echo >>"$at_stdout"; printf "%s\n" "storing message 4 part 1 as file ./out/4.1.plain
17052 storing message 4 part 2.1 as file ./out/4.2.1.octet-stream
17053 storing message 4 part 2.2.1 as file ./out/4.2.2.1.octet-stream
17054 storing message 4 part 2.2.2 as file ./out/4.2.2.2.octet-stream
17055 " | \
17056 $at_diff - "$at_stdout" || at_failed=:
17057 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:257"
17058 $at_failed && at_fn_log_failure
17059 $at_traceon; }
17060
17061 set +x
17062 $at_times_p && times >"$at_times_file"
17063 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17064 read at_status <"$at_status_file"
17065 #AT_STOP_241
17066 #AT_START_242
17067 at_fn_group_banner 242 'mhn.at:272' \
17068 "mhn-store-: all escapes" " " 23
17069 at_xfail=no
17070 (
17071 printf "%s\n" "242. $at_setup_line: testing $at_desc ..."
17072 $at_traceon
17073
17074
17075
17076 test -d Mail || mkdir Mail
17077 HOME=`pwd`
17078 export HOME
17079 MH=$HOME/mh_profile
17080 export MH
17081 cat > $MH <<EOT
17082 Path: $HOME/Mail
17083 mhetcdir: $abs_top_srcdir/mh/etc
17084 moreproc: /bin/cat
17085 EOT
17086 MTSTAILOR=$HOME/mtstailor
17087 export MTSTAILOR
17088 exec <&-
17089
17090 { set +x
17091 printf "%s\n" "$at_srcdir/mhn.at:272:
17092 mbox2dir -m Mail/inbox \$spooldir/mbox1
17093 echo \"mhn-store-application: %%-%m%P.%s-%p\" >> \$MH
17094 mhn +inbox -store 4 || exit \$?
17095 find . -name '%*' | sort
17096 "
17097 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:272"
17098 ( $at_check_trace;
17099 mbox2dir -m Mail/inbox $spooldir/mbox1
17100 echo "mhn-store-application: %%-%m%P.%s-%p" >> $MH
17101 mhn +inbox -store 4 || exit $?
17102 find . -name '%*' | sort
17103
17104 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17105 at_status=$? at_failed=false
17106 $at_check_filter
17107 at_fn_diff_devnull "$at_stderr" || at_failed=:
17108 echo >>"$at_stdout"; printf "%s\n" "storing message 4 part 1 as file 4.1.plain
17109 storing message 4 part 2.1 as file %4.2.1.octet-stream-2.1
17110 storing message 4 part 2.2.1 as file %4.2.2.1.octet-stream-2.2.1
17111 storing message 4 part 2.2.2 as file %4.2.2.2.octet-stream-2.2.2
17112 ./%4.2.1.octet-stream-2.1
17113 ./%4.2.2.1.octet-stream-2.2.1
17114 ./%4.2.2.2.octet-stream-2.2.2
17115 " | \
17116 $at_diff - "$at_stdout" || at_failed=:
17117 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:272"
17118 $at_failed && at_fn_log_failure
17119 $at_traceon; }
17120
17121 set +x
17122 $at_times_p && times >"$at_times_file"
17123 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17124 read at_status <"$at_status_file"
17125 #AT_STOP_242
17126 #AT_START_243
17127 at_fn_group_banner 243 'mhn.at:288' \
17128 "mhn-store-: absolute path" " " 23
17129 at_xfail=no
17130 (
17131 printf "%s\n" "243. $at_setup_line: testing $at_desc ..."
17132 $at_traceon
17133
17134
17135
17136 test -d Mail || mkdir Mail
17137 HOME=`pwd`
17138 export HOME
17139 MH=$HOME/mh_profile
17140 export MH
17141 cat > $MH <<EOT
17142 Path: $HOME/Mail
17143 mhetcdir: $abs_top_srcdir/mh/etc
17144 moreproc: /bin/cat
17145 EOT
17146 MTSTAILOR=$HOME/mtstailor
17147 export MTSTAILOR
17148 exec <&-
17149
17150 { set +x
17151 printf "%s\n" "$at_srcdir/mhn.at:288:
17152 mbox2dir -m Mail/inbox \$spooldir/mbox1
17153 mkdir out
17154 echo \"mhn-store-application: \$HOME/out/%m%P.%s\" >> \$MH
17155 mhn +inbox -store 4 | cwdrepl || exit \$?
17156 "
17157 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:288"
17158 ( $at_check_trace;
17159 mbox2dir -m Mail/inbox $spooldir/mbox1
17160 mkdir out
17161 echo "mhn-store-application: $HOME/out/%m%P.%s" >> $MH
17162 mhn +inbox -store 4 | cwdrepl || exit $?
17163
17164 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17165 at_status=$? at_failed=false
17166 $at_check_filter
17167 at_fn_diff_devnull "$at_stderr" || at_failed=:
17168 echo >>"$at_stdout"; printf "%s\n" "storing message 4 part 1 as file 4.1.plain
17169 storing message 4 part 2.1 as file ./out/4.2.1.octet-stream
17170 storing message 4 part 2.2.1 as file ./out/4.2.2.1.octet-stream
17171 storing message 4 part 2.2.2 as file ./out/4.2.2.2.octet-stream
17172 " | \
17173 $at_diff - "$at_stdout" || at_failed=:
17174 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:288"
17175 $at_failed && at_fn_log_failure
17176 $at_traceon; }
17177
17178 set +x
17179 $at_times_p && times >"$at_times_file"
17180 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17181 read at_status <"$at_status_file"
17182 #AT_STOP_243
17183 #AT_START_244
17184 at_fn_group_banner 244 'mhn.at:301' \
17185 "mhn-store-: +folder" " " 23
17186 at_xfail=no
17187 (
17188 printf "%s\n" "244. $at_setup_line: testing $at_desc ..."
17189 $at_traceon
17190
17191
17192
17193 test -d Mail || mkdir Mail
17194 HOME=`pwd`
17195 export HOME
17196 MH=$HOME/mh_profile
17197 export MH
17198 cat > $MH <<EOT
17199 Path: $HOME/Mail
17200 mhetcdir: $abs_top_srcdir/mh/etc
17201 moreproc: /bin/cat
17202 EOT
17203 MTSTAILOR=$HOME/mtstailor
17204 export MTSTAILOR
17205 exec <&-
17206
17207 { set +x
17208 printf "%s\n" "$at_srcdir/mhn.at:301:
17209 mbox2dir -m Mail/inbox \$spooldir/mbox1
17210 mkdir Mail/app
17211 echo \"mhn-store-application: +app\" >> \$MH
17212 mhn +inbox -store 4 | cwdrepl || exit \$?
17213 "
17214 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:301"
17215 ( $at_check_trace;
17216 mbox2dir -m Mail/inbox $spooldir/mbox1
17217 mkdir Mail/app
17218 echo "mhn-store-application: +app" >> $MH
17219 mhn +inbox -store 4 | cwdrepl || exit $?
17220
17221 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17222 at_status=$? at_failed=false
17223 $at_check_filter
17224 at_fn_diff_devnull "$at_stderr" || at_failed=:
17225 echo >>"$at_stdout"; printf "%s\n" "storing message 4 part 1 as file 4.1.plain
17226 storing message 4 part 2.1 to folder +app as message 1
17227 storing message 4 part 2.2.1 to folder +app as message 2
17228 storing message 4 part 2.2.2 to folder +app as message 3
17229 " | \
17230 $at_diff - "$at_stdout" || at_failed=:
17231 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:301"
17232 $at_failed && at_fn_log_failure
17233 $at_traceon; }
17234
17235 set +x
17236 $at_times_p && times >"$at_times_file"
17237 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17238 read at_status <"$at_status_file"
17239 #AT_STOP_244
17240 #AT_START_245
17241 at_fn_group_banner 245 'mhn.at:314' \
17242 "mhn-store-: +" " " 23
17243 at_xfail=no
17244 (
17245 printf "%s\n" "245. $at_setup_line: testing $at_desc ..."
17246 $at_traceon
17247
17248
17249
17250 test -d Mail || mkdir Mail
17251 HOME=`pwd`
17252 export HOME
17253 MH=$HOME/mh_profile
17254 export MH
17255 cat > $MH <<EOT
17256 Path: $HOME/Mail
17257 mhetcdir: $abs_top_srcdir/mh/etc
17258 moreproc: /bin/cat
17259 EOT
17260 MTSTAILOR=$HOME/mtstailor
17261 export MTSTAILOR
17262 exec <&-
17263
17264 { set +x
17265 printf "%s\n" "$at_srcdir/mhn.at:314:
17266 mbox2dir -m Mail/inbox \$spooldir/mbox1
17267
17268 echo \"Current-Folder: inbox\" > Mail/context
17269 cat >> \$MH <<EOT
17270 mhn-store-application/octet-stream: +
17271 EOT
17272 mhn +inbox -store -part 2.2.1 4 | cwdrepl || exit \$?
17273 "
17274 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:314"
17275 ( $at_check_trace;
17276 mbox2dir -m Mail/inbox $spooldir/mbox1
17277
17278 echo "Current-Folder: inbox" > Mail/context
17279 cat >> $MH <<EOT
17280 mhn-store-application/octet-stream: +
17281 EOT
17282 mhn +inbox -store -part 2.2.1 4 | cwdrepl || exit $?
17283
17284 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17285 at_status=$? at_failed=false
17286 $at_check_filter
17287 at_fn_diff_devnull "$at_stderr" || at_failed=:
17288 echo >>"$at_stdout"; printf "%s\n" "storing message 4 part 2.2.1 to folder inbox as message 6
17289 " | \
17290 $at_diff - "$at_stdout" || at_failed=:
17291 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:314"
17292 $at_failed && at_fn_log_failure
17293 $at_traceon; }
17294
17295 set +x
17296 $at_times_p && times >"$at_times_file"
17297 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17298 read at_status <"$at_status_file"
17299 #AT_STOP_245
17300 #AT_START_246
17301 at_fn_group_banner 246 'mhn.at:327' \
17302 "mhn-store-: pipe" " " 23
17303 at_xfail=no
17304 (
17305 printf "%s\n" "246. $at_setup_line: testing $at_desc ..."
17306 $at_traceon
17307
17308
17309
17310 test -d Mail || mkdir Mail
17311 HOME=`pwd`
17312 export HOME
17313 MH=$HOME/mh_profile
17314 export MH
17315 cat > $MH <<EOT
17316 Path: $HOME/Mail
17317 mhetcdir: $abs_top_srcdir/mh/etc
17318 moreproc: /bin/cat
17319 EOT
17320 MTSTAILOR=$HOME/mtstailor
17321 export MTSTAILOR
17322 exec <&-
17323
17324 { set +x
17325 printf "%s\n" "$at_srcdir/mhn.at:327:
17326 mbox2dir -m Mail/inbox \$spooldir/mbox1
17327
17328 echo \"Current-Folder: inbox\" > Mail/context
17329 echo \"mhn-store-text: | \$abs_top_srcdir/mh/tests/mhed -\" >> \$MH
17330 mhn +inbox -store -part 1 4 | sed \"s|\$abs_top_srcdir/mh/tests/||g;s|(cd \\(.*\\)\\;|(cd home\\;|;s| *\$||\" || exit \$?
17331 "
17332 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:327"
17333 ( $at_check_trace;
17334 mbox2dir -m Mail/inbox $spooldir/mbox1
17335
17336 echo "Current-Folder: inbox" > Mail/context
17337 echo "mhn-store-text: | $abs_top_srcdir/mh/tests/mhed -" >> $MH
17338 mhn +inbox -store -part 1 4 | sed "s|$abs_top_srcdir/mh/tests/||g;s|(cd \(.*\)\;|(cd home\;|;s| *$||" || exit $?
17339
17340 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17341 at_status=$? at_failed=false
17342 $at_check_filter
17343 at_fn_diff_devnull "$at_stderr" || at_failed=:
17344 echo >>"$at_stdout"; printf "%s\n" "storing msg 4 part 1 using command (cd home; mhed -)
17345 -- Editor invocation: -
17346 -- Input file:
17347 \`You are old, Father William,' the young man said,
17348 \`And your hair has become very white;
17349 And yet you incessantly stand on your head--
17350 Do you think, at your age, it is right?'
17351
17352 \`In my youth,' Father William replied to his son,
17353 \`I feared it might injure the brain;
17354 But, now that I'm perfectly sure I have none,
17355 Why, I do it again and again.'
17356
17357 -- Input file end
17358 Seen by mhed
17359 " | \
17360 $at_diff - "$at_stdout" || at_failed=:
17361 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:327"
17362 $at_failed && at_fn_log_failure
17363 $at_traceon; }
17364
17365 set +x
17366 $at_times_p && times >"$at_times_file"
17367 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17368 read at_status <"$at_status_file"
17369 #AT_STOP_246
17370 #AT_START_247
17371 at_fn_group_banner 247 'mhn.at:357' \
17372 "mhn-show msg1" " " 23
17373 at_xfail=no
17374 (
17375 printf "%s\n" "247. $at_setup_line: testing $at_desc ..."
17376 $at_traceon
17377
17378
17379
17380 test -d Mail || mkdir Mail
17381 HOME=`pwd`
17382 export HOME
17383 MH=$HOME/mh_profile
17384 export MH
17385 cat > $MH <<EOT
17386 Path: $HOME/Mail
17387 mhetcdir: $abs_top_srcdir/mh/etc
17388 moreproc: /bin/cat
17389 EOT
17390 MTSTAILOR=$HOME/mtstailor
17391 export MTSTAILOR
17392 exec <&-
17393
17394 { set +x
17395 printf "%s\n" "$at_srcdir/mhn.at:357:
17396 mbox2dir -m Mail/inbox \$spooldir/mbox1
17397 mhn -show 1
17398 "
17399 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:357"
17400 ( $at_check_trace;
17401 mbox2dir -m Mail/inbox $spooldir/mbox1
17402 mhn -show 1
17403
17404 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17405 at_status=$? at_failed=false
17406 $at_check_filter
17407 at_fn_diff_devnull "$at_stderr" || at_failed=:
17408 echo >>"$at_stdout"; printf "%s\n" "Date: Fri, 28 Dec 2001 22:18:08 +0200
17409 To: Bar <[email protected]>
17410 From: Foo Bar <[email protected]>
17411 Subject: Jabberwocky
17412
17413
17414
17415 part text/plain 937
17416 \`Twas brillig, and the slithy toves
17417 Did gyre and gimble in the wabe;
17418 All mimsy were the borogoves,
17419 And the mome raths outgrabe.
17420
17421 \`Beware the Jabberwock, my son!
17422 The jaws that bite, the claws that catch!
17423 Beware the Jujub bird, and shun
17424 The frumious Bandersnatch!'
17425
17426 He took his vorpal sword in hand:
17427 Long time the manxome foe he sought --
17428 So rested he by the Tumtum gree,
17429 And stood awhile in thought.
17430
17431 And as in uffish thought he stood,
17432 The Jabberwock, with eyes of flame,
17433 Came whiffling through the tulgey wook,
17434 And burbled as it came!
17435
17436 One, two! One, two! And through and through
17437 The vorpal blade went snicker-snack!
17438 He left it dead, and with its head
17439 He went galumphing back.
17440
17441 \`And has thou slain the Jabberwock?
17442 Come to my arms, my beamish boy!
17443 O frabjous day! Calloh! Callay!
17444 He chortled in his joy.
17445
17446 \`Twas brillig, and the slithy toves
17447 Did gyre and gimble in the wabe;
17448 All mimsy were the borogoves,
17449 And the mome raths outgrabe.
17450
17451 " | \
17452 $at_diff - "$at_stdout" || at_failed=:
17453 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:357"
17454 $at_failed && at_fn_log_failure
17455 $at_traceon; }
17456
17457 set +x
17458 $at_times_p && times >"$at_times_file"
17459 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17460 read at_status <"$at_status_file"
17461 #AT_STOP_247
17462 #AT_START_248
17463 at_fn_group_banner 248 'mhn.at:407' \
17464 "mhn-show type=tar" " " 23
17465 at_xfail=no
17466 (
17467 printf "%s\n" "248. $at_setup_line: testing $at_desc ..."
17468 $at_traceon
17469
17470
17471
17472 test -d Mail || mkdir Mail
17473 HOME=`pwd`
17474 export HOME
17475 MH=$HOME/mh_profile
17476 export MH
17477 cat > $MH <<EOT
17478 Path: $HOME/Mail
17479 mhetcdir: $abs_top_srcdir/mh/etc
17480 moreproc: /bin/cat
17481 EOT
17482 MTSTAILOR=$HOME/mtstailor
17483 export MTSTAILOR
17484 exec <&-
17485
17486 { set +x
17487 printf "%s\n" "$at_srcdir/mhn.at:407:
17488 mbox2dir -m Mail/inbox \$spooldir/mime.mbox
17489 cat >filter.awk <<'_ATEOF'
17490
17491 /^-rw-r--r--/ { print \$NF; next }
17492 { print }
17493 _ATEOF
17494
17495 mhn -show 2 | awk -f filter.awk
17496 "
17497 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:407"
17498 ( $at_check_trace;
17499 mbox2dir -m Mail/inbox $spooldir/mime.mbox
17500 cat >filter.awk <<'_ATEOF'
17501
17502 /^-rw-r--r--/ { print $NF; next }
17503 { print }
17504 _ATEOF
17505
17506 mhn -show 2 | awk -f filter.awk
17507
17508 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17509 at_status=$? at_failed=false
17510 $at_check_filter
17511 at_fn_diff_devnull "$at_stderr" || at_failed=:
17512 echo >>"$at_stdout"; printf "%s\n" "Date: Mon, 29 Nov 2010 14:04:19 +0200
17513 To: <[email protected]>
17514 From: Sergey Poznyakoff <[email protected]>
17515 Subject: Verses (type=tar)
17516
17517 MIME-Version: 1.0
17518
17519 part 1 text/plain 15
17520 Initial text.
17521
17522 Father_William
17523 Jabberwocky
17524 " | \
17525 $at_diff - "$at_stdout" || at_failed=:
17526 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:407"
17527 $at_failed && at_fn_log_failure
17528 $at_traceon; }
17529
17530 set +x
17531 $at_times_p && times >"$at_times_file"
17532 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17533 read at_status <"$at_status_file"
17534 #AT_STOP_248
17535 #AT_START_249
17536 at_fn_group_banner 249 'mhn.at:432' \
17537 "mhn-show unsupported type" " " 23
17538 at_xfail=no
17539 (
17540 printf "%s\n" "249. $at_setup_line: testing $at_desc ..."
17541 $at_traceon
17542
17543
17544
17545 test -d Mail || mkdir Mail
17546 HOME=`pwd`
17547 export HOME
17548 MH=$HOME/mh_profile
17549 export MH
17550 cat > $MH <<EOT
17551 Path: $HOME/Mail
17552 mhetcdir: $abs_top_srcdir/mh/etc
17553 moreproc: /bin/cat
17554 EOT
17555 MTSTAILOR=$HOME/mtstailor
17556 export MTSTAILOR
17557 exec <&-
17558
17559 { set +x
17560 printf "%s\n" "$at_srcdir/mhn.at:432:
17561 mbox2dir -m Mail/inbox \$spooldir/mime.mbox
17562 mhn -show 1
17563 "
17564 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:432"
17565 ( $at_check_trace;
17566 mbox2dir -m Mail/inbox $spooldir/mime.mbox
17567 mhn -show 1
17568
17569 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17570 at_status=$? at_failed=false
17571 $at_check_filter
17572 echo >>"$at_stderr"; printf "%s\n" "mhn: don't know how to display content (content application/x-tar in message 1, part 2)
17573 " | \
17574 $at_diff - "$at_stderr" || at_failed=:
17575 echo >>"$at_stdout"; printf "%s\n" "Date: Mon, 29 Nov 2010 14:00:03 +0200
17576 To: <[email protected]>
17577 From: Sergey Poznyakoff <[email protected]>
17578 Subject: Verses (x-tar)
17579
17580 MIME-Version: 1.0
17581
17582 part 1 text/plain 15
17583 Initial text.
17584
17585 " | \
17586 $at_diff - "$at_stdout" || at_failed=:
17587 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:432"
17588 $at_failed && at_fn_log_failure
17589 $at_traceon; }
17590
17591 set +x
17592 $at_times_p && times >"$at_times_file"
17593 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17594 read at_status <"$at_status_file"
17595 #AT_STOP_249
17596 #AT_START_250
17597 at_fn_group_banner 250 'mhn.at:451' \
17598 "mhn-show- variable (with subtype)" " " 23
17599 at_xfail=no
17600 (
17601 printf "%s\n" "250. $at_setup_line: testing $at_desc ..."
17602 $at_traceon
17603
17604
17605
17606 test -d Mail || mkdir Mail
17607 HOME=`pwd`
17608 export HOME
17609 MH=$HOME/mh_profile
17610 export MH
17611 cat > $MH <<EOT
17612 Path: $HOME/Mail
17613 mhetcdir: $abs_top_srcdir/mh/etc
17614 moreproc: /bin/cat
17615 EOT
17616 MTSTAILOR=$HOME/mtstailor
17617 export MTSTAILOR
17618 exec <&-
17619
17620 { set +x
17621 printf "%s\n" "$at_srcdir/mhn.at:451:
17622 mbox2dir -m Mail/inbox \$spooldir/mime.mbox
17623 echo \"mhn-show-application/x-tar: %ltar tvf '%F'\" >> \$MH
17624 cat >filter.awk <<'_ATEOF'
17625
17626 /^-rw-r--r--/ { print \$NF; next }
17627 { sub(/ *\$/,\"\"); print }
17628 _ATEOF
17629
17630 mhn -show 1 | awk -f filter.awk
17631 "
17632 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:451"
17633 ( $at_check_trace;
17634 mbox2dir -m Mail/inbox $spooldir/mime.mbox
17635 echo "mhn-show-application/x-tar: %ltar tvf '%F'" >> $MH
17636 cat >filter.awk <<'_ATEOF'
17637
17638 /^-rw-r--r--/ { print $NF; next }
17639 { sub(/ *$/,""); print }
17640 _ATEOF
17641
17642 mhn -show 1 | awk -f filter.awk
17643
17644 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17645 at_status=$? at_failed=false
17646 $at_check_filter
17647 at_fn_diff_devnull "$at_stderr" || at_failed=:
17648 echo >>"$at_stdout"; printf "%s\n" "Date: Mon, 29 Nov 2010 14:00:03 +0200
17649 To: <[email protected]>
17650 From: Sergey Poznyakoff <[email protected]>
17651 Subject: Verses (x-tar)
17652
17653 MIME-Version: 1.0
17654
17655 part 1 text/plain 15
17656 Initial text.
17657
17658 part 2 application/x-tar 13835
17659 Father_William
17660 Jabberwocky
17661 " | \
17662 $at_diff - "$at_stdout" || at_failed=:
17663 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:451"
17664 $at_failed && at_fn_log_failure
17665 $at_traceon; }
17666
17667 set +x
17668 $at_times_p && times >"$at_times_file"
17669 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17670 read at_status <"$at_status_file"
17671 #AT_STOP_250
17672 #AT_START_251
17673 at_fn_group_banner 251 'mhn.at:477' \
17674 "mhn-show- variable (without subtype)" " " 23
17675 at_xfail=no
17676 (
17677 printf "%s\n" "251. $at_setup_line: testing $at_desc ..."
17678 $at_traceon
17679
17680
17681
17682 test -d Mail || mkdir Mail
17683 HOME=`pwd`
17684 export HOME
17685 MH=$HOME/mh_profile
17686 export MH
17687 cat > $MH <<EOT
17688 Path: $HOME/Mail
17689 mhetcdir: $abs_top_srcdir/mh/etc
17690 moreproc: /bin/cat
17691 EOT
17692 MTSTAILOR=$HOME/mtstailor
17693 export MTSTAILOR
17694 exec <&-
17695
17696 { set +x
17697 printf "%s\n" "$at_srcdir/mhn.at:477:
17698 mbox2dir -m Mail/inbox \$spooldir/mime.mbox
17699 echo \"mhn-show-application: %ltar tvf '%F'\" >> \$MH
17700 cat >filter.awk <<'_ATEOF'
17701
17702 /^-rw-r--r--/ { print \$NF; next }
17703 { sub(/ *\$/,\"\"); print }
17704 _ATEOF
17705
17706 mhn -show 1 | awk -f filter.awk
17707 "
17708 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:477"
17709 ( $at_check_trace;
17710 mbox2dir -m Mail/inbox $spooldir/mime.mbox
17711 echo "mhn-show-application: %ltar tvf '%F'" >> $MH
17712 cat >filter.awk <<'_ATEOF'
17713
17714 /^-rw-r--r--/ { print $NF; next }
17715 { sub(/ *$/,""); print }
17716 _ATEOF
17717
17718 mhn -show 1 | awk -f filter.awk
17719
17720 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17721 at_status=$? at_failed=false
17722 $at_check_filter
17723 at_fn_diff_devnull "$at_stderr" || at_failed=:
17724 echo >>"$at_stdout"; printf "%s\n" "Date: Mon, 29 Nov 2010 14:00:03 +0200
17725 To: <[email protected]>
17726 From: Sergey Poznyakoff <[email protected]>
17727 Subject: Verses (x-tar)
17728
17729 MIME-Version: 1.0
17730
17731 part 1 text/plain 15
17732 Initial text.
17733
17734 part 2 application/x-tar 13835
17735 Father_William
17736 Jabberwocky
17737 " | \
17738 $at_diff - "$at_stdout" || at_failed=:
17739 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:477"
17740 $at_failed && at_fn_log_failure
17741 $at_traceon; }
17742
17743 set +x
17744 $at_times_p && times >"$at_times_file"
17745 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17746 read at_status <"$at_status_file"
17747 #AT_STOP_251
17748 #AT_START_252
17749 at_fn_group_banner 252 'mhn.at:506' \
17750 "mhn-compose: adjacent plain text" " " 23
17751 at_xfail=no
17752 (
17753 printf "%s\n" "252. $at_setup_line: testing $at_desc ..."
17754 $at_traceon
17755
17756
17757
17758 test -d Mail || mkdir Mail
17759 HOME=`pwd`
17760 export HOME
17761 MH=$HOME/mh_profile
17762 export MH
17763 cat > $MH <<EOT
17764 Path: $HOME/Mail
17765 mhetcdir: $abs_top_srcdir/mh/etc
17766 moreproc: /bin/cat
17767 EOT
17768 MTSTAILOR=$HOME/mtstailor
17769 export MTSTAILOR
17770 exec <&-
17771
17772 { set +x
17773 printf "%s\n" "$at_srcdir/mhn.at:506:
17774 cat >input <<'_ATEOF'
17775 From: [email protected]
17776 Subject: Adjacent plain text contexts
17777 ------
17778 this is the first content
17779 #
17780 and this is the second
17781 _ATEOF
17782
17783 mhn -build ./input || exit \$?
17784 mimeflt input
17785 "
17786 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:506"
17787 ( $at_check_trace;
17788 cat >input <<'_ATEOF'
17789 From: [email protected]
17790 Subject: Adjacent plain text contexts
17791 ------
17792 this is the first content
17793 #
17794 and this is the second
17795 _ATEOF
17796
17797 mhn -build ./input || exit $?
17798 mimeflt input
17799
17800 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17801 at_status=$? at_failed=false
17802 $at_check_filter
17803 at_fn_diff_devnull "$at_stderr" || at_failed=:
17804 echo >>"$at_stdout"; printf "%s\n" "From: [email protected]
17805 Subject: Adjacent plain text contexts
17806 MIME-Version: 1.0
17807 Content-Type: multipart/mixed; boundary=\"BOUNDARY-1\"
17808
17809 --BOUNDARY-1
17810 Content-Type: text/plain
17811 Content-ID: 1
17812
17813 this is the first content
17814
17815 --BOUNDARY-1
17816 Content-Type: text/plain
17817 Content-ID: 2
17818
17819 and this is the second
17820
17821 --BOUNDARY-1--
17822 " | \
17823 $at_diff - "$at_stdout" || at_failed=:
17824 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:506"
17825 $at_failed && at_fn_log_failure
17826 $at_traceon; }
17827
17828 set +x
17829 $at_times_p && times >"$at_times_file"
17830 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17831 read at_status <"$at_status_file"
17832 #AT_STOP_252
17833 #AT_START_253
17834 at_fn_group_banner 253 'mhn.at:540' \
17835 "mhn-compose: plain text content types" " " 23
17836 at_xfail=no
17837 (
17838 printf "%s\n" "253. $at_setup_line: testing $at_desc ..."
17839 $at_traceon
17840
17841
17842
17843 test -d Mail || mkdir Mail
17844 HOME=`pwd`
17845 export HOME
17846 MH=$HOME/mh_profile
17847 export MH
17848 cat > $MH <<EOT
17849 Path: $HOME/Mail
17850 mhetcdir: $abs_top_srcdir/mh/etc
17851 moreproc: /bin/cat
17852 EOT
17853 MTSTAILOR=$HOME/mtstailor
17854 export MTSTAILOR
17855 exec <&-
17856
17857 { set +x
17858 printf "%s\n" "$at_srcdir/mhn.at:540:
17859 cat >input <<'_ATEOF'
17860 From: [email protected]
17861 Subject: Plaintext content types
17862 ------
17863 #<text/enriched [First part]
17864 this content will be tagged as text/enriched
17865 #
17866 and this content will be tagged as text/plain
17867 #
17868 #<application/x-patch [this is a patch]
17869 and this content will be tagged as application/x-patch
17870 _ATEOF
17871
17872 mhn -build -file ./input||exit \$?
17873 mimeflt input
17874 "
17875 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:540"
17876 ( $at_check_trace;
17877 cat >input <<'_ATEOF'
17878 From: [email protected]
17879 Subject: Plaintext content types
17880 ------
17881 #<text/enriched [First part]
17882 this content will be tagged as text/enriched
17883 #
17884 and this content will be tagged as text/plain
17885 #
17886 #<application/x-patch [this is a patch]
17887 and this content will be tagged as application/x-patch
17888 _ATEOF
17889
17890 mhn -build -file ./input||exit $?
17891 mimeflt input
17892
17893 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17894 at_status=$? at_failed=false
17895 $at_check_filter
17896 at_fn_diff_devnull "$at_stderr" || at_failed=:
17897 echo >>"$at_stdout"; printf "%s\n" "From: [email protected]
17898 Subject: Plaintext content types
17899 MIME-Version: 1.0
17900 Content-Type: multipart/mixed; boundary=\"BOUNDARY-1\"
17901
17902 --BOUNDARY-1
17903 Content-Type: text/enriched
17904 Content-ID: 1
17905 Content-Description: First part
17906
17907 this content will be tagged as text/enriched
17908
17909 --BOUNDARY-1
17910 Content-Type: text/plain
17911 Content-ID: 2
17912
17913 and this content will be tagged as text/plain
17914
17915 --BOUNDARY-1
17916 Content-Type: application/x-patch
17917 Content-ID: 3
17918 Content-Description: this is a patch
17919
17920 and this content will be tagged as application/x-patch
17921
17922 --BOUNDARY-1--
17923 " | \
17924 $at_diff - "$at_stdout" || at_failed=:
17925 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:540"
17926 $at_failed && at_fn_log_failure
17927 $at_traceon; }
17928
17929 set +x
17930 $at_times_p && times >"$at_times_file"
17931 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17932 read at_status <"$at_status_file"
17933 #AT_STOP_253
17934 #AT_START_254
17935 at_fn_group_banner 254 'mhn.at:586' \
17936 "mhn-compose: sharp at the beginning of a line" " " 23
17937 at_xfail=no
17938 (
17939 printf "%s\n" "254. $at_setup_line: testing $at_desc ..."
17940 $at_traceon
17941
17942
17943
17944 test -d Mail || mkdir Mail
17945 HOME=`pwd`
17946 export HOME
17947 MH=$HOME/mh_profile
17948 export MH
17949 cat > $MH <<EOT
17950 Path: $HOME/Mail
17951 mhetcdir: $abs_top_srcdir/mh/etc
17952 moreproc: /bin/cat
17953 EOT
17954 MTSTAILOR=$HOME/mtstailor
17955 export MTSTAILOR
17956 exec <&-
17957
17958 { set +x
17959 printf "%s\n" "$at_srcdir/mhn.at:586:
17960 cat >input <<'_ATEOF'
17961 From: [email protected]
17962 Subject: Sharp at the beginning of a line
17963 ------
17964 ##when sent, this line will start with only one #
17965 _ATEOF
17966
17967
17968 mhn -build ./input || exit \$?
17969 mimeflt input
17970 "
17971 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:586"
17972 ( $at_check_trace;
17973 cat >input <<'_ATEOF'
17974 From: [email protected]
17975 Subject: Sharp at the beginning of a line
17976 ------
17977 ##when sent, this line will start with only one #
17978 _ATEOF
17979
17980
17981 mhn -build ./input || exit $?
17982 mimeflt input
17983
17984 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17985 at_status=$? at_failed=false
17986 $at_check_filter
17987 at_fn_diff_devnull "$at_stderr" || at_failed=:
17988 echo >>"$at_stdout"; printf "%s\n" "From: [email protected]
17989 Subject: Sharp at the beginning of a line
17990 MIME-Version: 1.0
17991 Content-Type: text/plain
17992
17993 #when sent, this line will start with only one #
17994 " | \
17995 $at_diff - "$at_stdout" || at_failed=:
17996 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:586"
17997 $at_failed && at_fn_log_failure
17998 $at_traceon; }
17999
18000 set +x
18001 $at_times_p && times >"$at_times_file"
18002 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18003 read at_status <"$at_status_file"
18004 #AT_STOP_254
18005 #AT_START_255
18006 at_fn_group_banner 255 'mhn.at:607' \
18007 "mhn-compose: charset" " " 23
18008 at_xfail=no
18009 (
18010 printf "%s\n" "255. $at_setup_line: testing $at_desc ..."
18011 $at_traceon
18012
18013
18014
18015 test -d Mail || mkdir Mail
18016 HOME=`pwd`
18017 export HOME
18018 MH=$HOME/mh_profile
18019 export MH
18020 cat > $MH <<EOT
18021 Path: $HOME/Mail
18022 mhetcdir: $abs_top_srcdir/mh/etc
18023 moreproc: /bin/cat
18024 EOT
18025 MTSTAILOR=$HOME/mtstailor
18026 export MTSTAILOR
18027 exec <&-
18028
18029 { set +x
18030 printf "%s\n" "$at_srcdir/mhn.at:607:
18031 cat >input <<'_ATEOF'
18032 From: [email protected]
18033 Subject: Charset
18034 ------
18035 #<text/plain; charset=utf-8
18036 Cześć
18037 _ATEOF
18038
18039 mhn -build ./input || exit \$?
18040 mimeflt input
18041 "
18042 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:607"
18043 ( $at_check_trace;
18044 cat >input <<'_ATEOF'
18045 From: [email protected]
18046 Subject: Charset
18047 ------
18048 #<text/plain; charset=utf-8
18049 Cześć
18050 _ATEOF
18051
18052 mhn -build ./input || exit $?
18053 mimeflt input
18054
18055 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18056 at_status=$? at_failed=false
18057 $at_check_filter
18058 at_fn_diff_devnull "$at_stderr" || at_failed=:
18059 echo >>"$at_stdout"; printf "%s\n" "From: [email protected]
18060 Subject: Charset
18061 MIME-Version: 1.0
18062 Content-Type: text/plain; charset=utf-8
18063 Content-Transfer-Encoding: quoted-printable
18064
18065 Cze=C5=9B=C4=87
18066 " | \
18067 $at_diff - "$at_stdout" || at_failed=:
18068 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:607"
18069 $at_failed && at_fn_log_failure
18070 $at_traceon; }
18071
18072 set +x
18073 $at_times_p && times >"$at_times_file"
18074 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18075 read at_status <"$at_status_file"
18076 #AT_STOP_255
18077 #AT_START_256
18078 at_fn_group_banner 256 'mhn.at:629' \
18079 "mhn-compose: forward" " " 23
18080 at_xfail=no
18081 (
18082 printf "%s\n" "256. $at_setup_line: testing $at_desc ..."
18083 $at_traceon
18084
18085
18086
18087 test -d Mail || mkdir Mail
18088 HOME=`pwd`
18089 export HOME
18090 MH=$HOME/mh_profile
18091 export MH
18092 cat > $MH <<EOT
18093 Path: $HOME/Mail
18094 mhetcdir: $abs_top_srcdir/mh/etc
18095 moreproc: /bin/cat
18096 EOT
18097 MTSTAILOR=$HOME/mtstailor
18098 export MTSTAILOR
18099 exec <&-
18100
18101 { set +x
18102 printf "%s\n" "$at_srcdir/mhn.at:629:
18103 mbox2dir -m Mail/inbox \$spooldir/mbox1
18104 cat >input <<'_ATEOF'
18105 From: [email protected]
18106 Subject: Forwards
18107 ------
18108 #forw [forwarded messages] +inbox 1 2 5
18109 _ATEOF
18110
18111
18112 mhn -build ./input || exit \$?
18113 mimeflt input
18114 "
18115 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:629"
18116 ( $at_check_trace;
18117 mbox2dir -m Mail/inbox $spooldir/mbox1
18118 cat >input <<'_ATEOF'
18119 From: [email protected]
18120 Subject: Forwards
18121 ------
18122 #forw [forwarded messages] +inbox 1 2 5
18123 _ATEOF
18124
18125
18126 mhn -build ./input || exit $?
18127 mimeflt input
18128
18129 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18130 at_status=$? at_failed=false
18131 $at_check_filter
18132 at_fn_diff_devnull "$at_stderr" || at_failed=:
18133 echo >>"$at_stdout"; printf "%s\n" "From: [email protected]
18134 Subject: Forwards
18135 MIME-Version: 1.0
18136 Content-Type: multipart/digest; boundary=\"BOUNDARY-1\"
18137 Content-Description: forwarded messages
18138
18139 --BOUNDARY-1
18140 Content-Type: message/rfc822
18141
18142 Received: (from [email protected])
18143 by nonexistent.net id fBSKI8N04906
18144 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
18145 Date: Fri, 28 Dec 2001 22:18:08 +0200
18146 From: Foo Bar <[email protected]>
18147 Message-Id: <[email protected]>
18148 To: Bar <[email protected]>
18149 Subject: Jabberwocky
18150
18151 \`Twas brillig, and the slithy toves
18152 Did gyre and gimble in the wabe;
18153 All mimsy were the borogoves,
18154 And the mome raths outgrabe.
18155
18156 \`Beware the Jabberwock, my son!
18157 The jaws that bite, the claws that catch!
18158 Beware the Jujub bird, and shun
18159 The frumious Bandersnatch!'
18160
18161 He took his vorpal sword in hand:
18162 Long time the manxome foe he sought --
18163 So rested he by the Tumtum gree,
18164 And stood awhile in thought.
18165
18166 And as in uffish thought he stood,
18167 The Jabberwock, with eyes of flame,
18168 Came whiffling through the tulgey wook,
18169 And burbled as it came!
18170
18171 One, two! One, two! And through and through
18172 The vorpal blade went snicker-snack!
18173 He left it dead, and with its head
18174 He went galumphing back.
18175
18176 \`And has thou slain the Jabberwock?
18177 Come to my arms, my beamish boy!
18178 O frabjous day! Calloh! Callay!
18179 He chortled in his joy.
18180
18181 \`Twas brillig, and the slithy toves
18182 Did gyre and gimble in the wabe;
18183 All mimsy were the borogoves,
18184 And the mome raths outgrabe.
18185
18186
18187 --BOUNDARY-1
18188 Content-Type: message/rfc822
18189
18190 Received: (from [email protected])
18191 by dontmailme.org id fERKR9N16790
18192 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
18193 Date: Fri, 28 Dec 2001 23:28:08 +0200
18194 From: Bar <[email protected]>
18195 To: Foo Bar <[email protected]>
18196 Message-Id: <[email protected]>
18197 Subject: Re: Jabberwocky
18198
18199 It seems very pretty, but it's *rather* hard to understand!'
18200 Somehow it seems to fill my head with ideas -- only I don't
18201 exactly know what they are! However, SOMEBODY killed SOMETHING:
18202 that's clear, at any rate...
18203
18204 --BOUNDARY-1
18205 Content-Type: message/rfc822
18206
18207 Organization: Mailutils-tests
18208 Received: from example.net (localhost [127.0.0.1])
18209 by example.net with ESMTP id g6CLhIb05086
18210 for <[email protected]>; Sat, 13 Jul 2002 00:43:18 +0300
18211 Message-Id: <[email protected]>
18212 To: Foo Bar <[email protected]>
18213 Subject: Empty MIME Parts
18214 MIME-Version: 1.0
18215 Content-Type: multipart/mixed; boundary=\"BOUNDARY-2\"
18216 Content-ID: 1
18217 Date: Sat, 13 Jul 2002 00:43:18 +0300
18218 From: Sergey Poznyakoff <[email protected]>
18219
18220 --BOUNDARY-2
18221 Content-Type: text/plain; name=\"empty\"; charset=\"us-ascii\"
18222 Content-ID: 2
18223 Content-Description: Empty part
18224
18225
18226 --BOUNDARY-2
18227 Content-Type: text/plain; name=\"single.line\"; charset=\"us-ascii\"
18228 Content-ID: 3
18229 Content-Description: Single line part
18230
18231
18232
18233 --BOUNDARY-2--
18234
18235 --BOUNDARY-1--
18236 " | \
18237 $at_diff - "$at_stdout" || at_failed=:
18238 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:629"
18239 $at_failed && at_fn_log_failure
18240 $at_traceon; }
18241
18242 set +x
18243 $at_times_p && times >"$at_times_file"
18244 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18245 read at_status <"$at_status_file"
18246 #AT_STOP_256
18247 #AT_START_257
18248 at_fn_group_banner 257 'mhn.at:748' \
18249 "mhn-compose: forward (current folder)" " " 23
18250 at_xfail=no
18251 (
18252 printf "%s\n" "257. $at_setup_line: testing $at_desc ..."
18253 $at_traceon
18254
18255
18256
18257 test -d Mail || mkdir Mail
18258 HOME=`pwd`
18259 export HOME
18260 MH=$HOME/mh_profile
18261 export MH
18262 cat > $MH <<EOT
18263 Path: $HOME/Mail
18264 mhetcdir: $abs_top_srcdir/mh/etc
18265 moreproc: /bin/cat
18266 EOT
18267 MTSTAILOR=$HOME/mtstailor
18268 export MTSTAILOR
18269 exec <&-
18270
18271 { set +x
18272 printf "%s\n" "$at_srcdir/mhn.at:748:
18273 mbox2dir -m Mail/inbox \$spooldir/mbox1
18274 echo \"Current-Folder: inbox\" > Mail/context
18275 cat >input <<'_ATEOF'
18276 From: [email protected]
18277 Subject: Forwards
18278 ------
18279 #forw [forwarded messages] 1 2 5
18280 _ATEOF
18281
18282
18283 mhn -build ./input || exit \$?
18284 mimeflt input
18285 "
18286 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:748"
18287 ( $at_check_trace;
18288 mbox2dir -m Mail/inbox $spooldir/mbox1
18289 echo "Current-Folder: inbox" > Mail/context
18290 cat >input <<'_ATEOF'
18291 From: [email protected]
18292 Subject: Forwards
18293 ------
18294 #forw [forwarded messages] 1 2 5
18295 _ATEOF
18296
18297
18298 mhn -build ./input || exit $?
18299 mimeflt input
18300
18301 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18302 at_status=$? at_failed=false
18303 $at_check_filter
18304 at_fn_diff_devnull "$at_stderr" || at_failed=:
18305 echo >>"$at_stdout"; printf "%s\n" "From: [email protected]
18306 Subject: Forwards
18307 MIME-Version: 1.0
18308 Content-Type: multipart/digest; boundary=\"BOUNDARY-1\"
18309 Content-Description: forwarded messages
18310
18311 --BOUNDARY-1
18312 Content-Type: message/rfc822
18313
18314 Received: (from [email protected])
18315 by nonexistent.net id fBSKI8N04906
18316 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
18317 Date: Fri, 28 Dec 2001 22:18:08 +0200
18318 From: Foo Bar <[email protected]>
18319 Message-Id: <[email protected]>
18320 To: Bar <[email protected]>
18321 Subject: Jabberwocky
18322
18323 \`Twas brillig, and the slithy toves
18324 Did gyre and gimble in the wabe;
18325 All mimsy were the borogoves,
18326 And the mome raths outgrabe.
18327
18328 \`Beware the Jabberwock, my son!
18329 The jaws that bite, the claws that catch!
18330 Beware the Jujub bird, and shun
18331 The frumious Bandersnatch!'
18332
18333 He took his vorpal sword in hand:
18334 Long time the manxome foe he sought --
18335 So rested he by the Tumtum gree,
18336 And stood awhile in thought.
18337
18338 And as in uffish thought he stood,
18339 The Jabberwock, with eyes of flame,
18340 Came whiffling through the tulgey wook,
18341 And burbled as it came!
18342
18343 One, two! One, two! And through and through
18344 The vorpal blade went snicker-snack!
18345 He left it dead, and with its head
18346 He went galumphing back.
18347
18348 \`And has thou slain the Jabberwock?
18349 Come to my arms, my beamish boy!
18350 O frabjous day! Calloh! Callay!
18351 He chortled in his joy.
18352
18353 \`Twas brillig, and the slithy toves
18354 Did gyre and gimble in the wabe;
18355 All mimsy were the borogoves,
18356 And the mome raths outgrabe.
18357
18358
18359 --BOUNDARY-1
18360 Content-Type: message/rfc822
18361
18362 Received: (from [email protected])
18363 by dontmailme.org id fERKR9N16790
18364 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
18365 Date: Fri, 28 Dec 2001 23:28:08 +0200
18366 From: Bar <[email protected]>
18367 To: Foo Bar <[email protected]>
18368 Message-Id: <[email protected]>
18369 Subject: Re: Jabberwocky
18370
18371 It seems very pretty, but it's *rather* hard to understand!'
18372 Somehow it seems to fill my head with ideas -- only I don't
18373 exactly know what they are! However, SOMEBODY killed SOMETHING:
18374 that's clear, at any rate...
18375
18376 --BOUNDARY-1
18377 Content-Type: message/rfc822
18378
18379 Organization: Mailutils-tests
18380 Received: from example.net (localhost [127.0.0.1])
18381 by example.net with ESMTP id g6CLhIb05086
18382 for <[email protected]>; Sat, 13 Jul 2002 00:43:18 +0300
18383 Message-Id: <[email protected]>
18384 To: Foo Bar <[email protected]>
18385 Subject: Empty MIME Parts
18386 MIME-Version: 1.0
18387 Content-Type: multipart/mixed; boundary=\"BOUNDARY-2\"
18388 Content-ID: 1
18389 Date: Sat, 13 Jul 2002 00:43:18 +0300
18390 From: Sergey Poznyakoff <[email protected]>
18391
18392 --BOUNDARY-2
18393 Content-Type: text/plain; name=\"empty\"; charset=\"us-ascii\"
18394 Content-ID: 2
18395 Content-Description: Empty part
18396
18397
18398 --BOUNDARY-2
18399 Content-Type: text/plain; name=\"single.line\"; charset=\"us-ascii\"
18400 Content-ID: 3
18401 Content-Description: Single line part
18402
18403
18404
18405 --BOUNDARY-2--
18406
18407 --BOUNDARY-1--
18408 " | \
18409 $at_diff - "$at_stdout" || at_failed=:
18410 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:748"
18411 $at_failed && at_fn_log_failure
18412 $at_traceon; }
18413
18414 set +x
18415 $at_times_p && times >"$at_times_file"
18416 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18417 read at_status <"$at_status_file"
18418 #AT_STOP_257
18419 #AT_START_258
18420 at_fn_group_banner 258 'mhn.at:868' \
18421 "mhn-compose: forward (single message)" " " 23
18422 at_xfail=no
18423 (
18424 printf "%s\n" "258. $at_setup_line: testing $at_desc ..."
18425 $at_traceon
18426
18427
18428
18429 test -d Mail || mkdir Mail
18430 HOME=`pwd`
18431 export HOME
18432 MH=$HOME/mh_profile
18433 export MH
18434 cat > $MH <<EOT
18435 Path: $HOME/Mail
18436 mhetcdir: $abs_top_srcdir/mh/etc
18437 moreproc: /bin/cat
18438 EOT
18439 MTSTAILOR=$HOME/mtstailor
18440 export MTSTAILOR
18441 exec <&-
18442
18443 { set +x
18444 printf "%s\n" "$at_srcdir/mhn.at:868:
18445 mbox2dir -m Mail/inbox \$spooldir/mbox1
18446 cat >input <<'_ATEOF'
18447 From: [email protected]
18448 Subject: Forwards
18449 ------
18450 #forw [forwarded messages] +inbox 1
18451 _ATEOF
18452
18453
18454 mhn -build ./input || exit \$?
18455 mimeflt input
18456 "
18457 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:868"
18458 ( $at_check_trace;
18459 mbox2dir -m Mail/inbox $spooldir/mbox1
18460 cat >input <<'_ATEOF'
18461 From: [email protected]
18462 Subject: Forwards
18463 ------
18464 #forw [forwarded messages] +inbox 1
18465 _ATEOF
18466
18467
18468 mhn -build ./input || exit $?
18469 mimeflt input
18470
18471 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18472 at_status=$? at_failed=false
18473 $at_check_filter
18474 at_fn_diff_devnull "$at_stderr" || at_failed=:
18475 echo >>"$at_stdout"; printf "%s\n" "From: [email protected]
18476 Subject: Forwards
18477 MIME-Version: 1.0
18478 Content-Type: message/rfc822
18479 Content-Description: forwarded messages
18480
18481 Received: (from [email protected])
18482 by nonexistent.net id fBSKI8N04906
18483 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
18484 Date: Fri, 28 Dec 2001 22:18:08 +0200
18485 From: Foo Bar <[email protected]>
18486 Message-Id: <[email protected]>
18487 To: Bar <[email protected]>
18488 Subject: Jabberwocky
18489
18490 \`Twas brillig, and the slithy toves
18491 Did gyre and gimble in the wabe;
18492 All mimsy were the borogoves,
18493 And the mome raths outgrabe.
18494
18495 \`Beware the Jabberwock, my son!
18496 The jaws that bite, the claws that catch!
18497 Beware the Jujub bird, and shun
18498 The frumious Bandersnatch!'
18499
18500 He took his vorpal sword in hand:
18501 Long time the manxome foe he sought --
18502 So rested he by the Tumtum gree,
18503 And stood awhile in thought.
18504
18505 And as in uffish thought he stood,
18506 The Jabberwock, with eyes of flame,
18507 Came whiffling through the tulgey wook,
18508 And burbled as it came!
18509
18510 One, two! One, two! And through and through
18511 The vorpal blade went snicker-snack!
18512 He left it dead, and with its head
18513 He went galumphing back.
18514
18515 \`And has thou slain the Jabberwock?
18516 Come to my arms, my beamish boy!
18517 O frabjous day! Calloh! Callay!
18518 He chortled in his joy.
18519
18520 \`Twas brillig, and the slithy toves
18521 Did gyre and gimble in the wabe;
18522 All mimsy were the borogoves,
18523 And the mome raths outgrabe.
18524
18525 " | \
18526 $at_diff - "$at_stdout" || at_failed=:
18527 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:868"
18528 $at_failed && at_fn_log_failure
18529 $at_traceon; }
18530
18531 set +x
18532 $at_times_p && times >"$at_times_file"
18533 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18534 read at_status <"$at_status_file"
18535 #AT_STOP_258
18536 #AT_START_259
18537 at_fn_group_banner 259 'mhn.at:934' \
18538 "mhn-compose: external data" " " 23
18539 at_xfail=no
18540 (
18541 printf "%s\n" "259. $at_setup_line: testing $at_desc ..."
18542 $at_traceon
18543
18544
18545
18546 test -d Mail || mkdir Mail
18547 HOME=`pwd`
18548 export HOME
18549 MH=$HOME/mh_profile
18550 export MH
18551 cat > $MH <<EOT
18552 Path: $HOME/Mail
18553 mhetcdir: $abs_top_srcdir/mh/etc
18554 moreproc: /bin/cat
18555 EOT
18556 MTSTAILOR=$HOME/mtstailor
18557 export MTSTAILOR
18558 exec <&-
18559
18560 { set +x
18561 printf "%s\n" "$at_srcdir/mhn.at:934:
18562 cat >input <<'_ATEOF'
18563 From: [email protected]
18564 Subject: External data
18565 ------
18566 #@application/octet-stream; \\
18567 type=tar; \\
18568 conversions=compress \\
18569 [GNU Mailutils distribution] \\
18570 name=\"mailutils-3.0.tar.gz\"; \\
18571 directory=\"/gnu/mailutils\"; \\
18572 site=\"ftp.gnu.org\"; \\
18573 access-type=anon-ftp; \\
18574 mode=\"image\"
18575 _ATEOF
18576
18577 mhn -build ./input || exit \$?
18578 mimeflt input
18579 "
18580 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:934"
18581 ( $at_check_trace;
18582 cat >input <<'_ATEOF'
18583 From: [email protected]
18584 Subject: External data
18585 ------
18586 #@application/octet-stream; \
18587 type=tar; \
18588 conversions=compress \
18589 [GNU Mailutils distribution] \
18590 name="mailutils-3.0.tar.gz"; \
18591 directory="/gnu/mailutils"; \
18592 site="ftp.gnu.org"; \
18593 access-type=anon-ftp; \
18594 mode="image"
18595 _ATEOF
18596
18597 mhn -build ./input || exit $?
18598 mimeflt input
18599
18600 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18601 at_status=$? at_failed=false
18602 $at_check_filter
18603 at_fn_diff_devnull "$at_stderr" || at_failed=:
18604 echo >>"$at_stdout"; printf "%s\n" "From: [email protected]
18605 Subject: External data
18606 MIME-Version: 1.0
18607 Content-Type: message/external-body; name=\"mailutils-3.0.tar.gz\"; directory=\"/gnu/mailutils\"; site=\"ftp.gnu.org\"; access-type=anon-ftp; mode=\"image\"
18608
18609 Content-Type: application/octet-stream; type=tar; conversions=compress
18610 Content-ID: 1
18611 Content-Description: GNU Mailutils distribution
18612
18613 " | \
18614 $at_diff - "$at_stdout" || at_failed=:
18615 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:934"
18616 $at_failed && at_fn_log_failure
18617 $at_traceon; }
18618
18619 set +x
18620 $at_times_p && times >"$at_times_file"
18621 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18622 read at_status <"$at_status_file"
18623 #AT_STOP_259
18624 #AT_START_260
18625 at_fn_group_banner 260 'mhn.at:966' \
18626 "mhn-compose: multipart" " " 23
18627 at_xfail=no
18628 (
18629 printf "%s\n" "260. $at_setup_line: testing $at_desc ..."
18630 $at_traceon
18631
18632
18633
18634 test -d Mail || mkdir Mail
18635 HOME=`pwd`
18636 export HOME
18637 MH=$HOME/mh_profile
18638 export MH
18639 cat > $MH <<EOT
18640 Path: $HOME/Mail
18641 mhetcdir: $abs_top_srcdir/mh/etc
18642 moreproc: /bin/cat
18643 EOT
18644 MTSTAILOR=$HOME/mtstailor
18645 export MTSTAILOR
18646 exec <&-
18647
18648 { set +x
18649 printf "%s\n" "$at_srcdir/mhn.at:966:
18650
18651 mbox2dir -m Mail/mbox1 \$spooldir/mbox1
18652
18653 cat >foo.tar <<'_ATEOF'
18654 Not a tarball, really
18655 _ATEOF
18656
18657
18658 cat >input <<'_ATEOF'
18659 From: [email protected]
18660 Subject: Multipart
18661 ------
18662 Initial text part.
18663
18664 #begin [Multipart message] mixed
18665 #forw [forwarded message] +mbox1 1
18666 Plain text 1
18667 #<text/x-special
18668 Plain text 2
18669 #application/octet-stream; type=tar [Tar archive] ./foo.tar
18670 #end
18671 _ATEOF
18672
18673
18674 mhn -build ./input || exit \$?
18675 mimeflt input
18676 "
18677 at_fn_check_prepare_notrace 'an embedded newline' "mhn.at:966"
18678 ( $at_check_trace;
18679
18680 mbox2dir -m Mail/mbox1 $spooldir/mbox1
18681
18682 cat >foo.tar <<'_ATEOF'
18683 Not a tarball, really
18684 _ATEOF
18685
18686
18687 cat >input <<'_ATEOF'
18688 From: [email protected]
18689 Subject: Multipart
18690 ------
18691 Initial text part.
18692
18693 #begin [Multipart message] mixed
18694 #forw [forwarded message] +mbox1 1
18695 Plain text 1
18696 #<text/x-special
18697 Plain text 2
18698 #application/octet-stream; type=tar [Tar archive] ./foo.tar
18699 #end
18700 _ATEOF
18701
18702
18703 mhn -build ./input || exit $?
18704 mimeflt input
18705
18706 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18707 at_status=$? at_failed=false
18708 $at_check_filter
18709 at_fn_diff_devnull "$at_stderr" || at_failed=:
18710 echo >>"$at_stdout"; printf "%s\n" "From: [email protected]
18711 Subject: Multipart
18712 MIME-Version: 1.0
18713 Content-Type: multipart/mixed; boundary=\"BOUNDARY-1\"
18714
18715 --BOUNDARY-1
18716 Content-Type: text/plain
18717 Content-ID: 1
18718
18719 Initial text part.
18720
18721
18722 --BOUNDARY-1
18723 MIME-Version: 1.0
18724 Content-Type: multipart/mixed; boundary=\"BOUNDARY-2\"
18725
18726 --BOUNDARY-2
18727 MIME-Version: 1.0
18728 Content-Type: message/rfc822
18729 Content-ID: 2
18730 Content-Description: forwarded message
18731
18732 Received: (from [email protected])
18733 by nonexistent.net id fBSKI8N04906
18734 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
18735 Date: Fri, 28 Dec 2001 22:18:08 +0200
18736 From: Foo Bar <[email protected]>
18737 Message-Id: <[email protected]>
18738 To: Bar <[email protected]>
18739 Subject: Jabberwocky
18740
18741 \`Twas brillig, and the slithy toves
18742 Did gyre and gimble in the wabe;
18743 All mimsy were the borogoves,
18744 And the mome raths outgrabe.
18745
18746 \`Beware the Jabberwock, my son!
18747 The jaws that bite, the claws that catch!
18748 Beware the Jujub bird, and shun
18749 The frumious Bandersnatch!'
18750
18751 He took his vorpal sword in hand:
18752 Long time the manxome foe he sought --
18753 So rested he by the Tumtum gree,
18754 And stood awhile in thought.
18755
18756 And as in uffish thought he stood,
18757 The Jabberwock, with eyes of flame,
18758 Came whiffling through the tulgey wook,
18759 And burbled as it came!
18760
18761 One, two! One, two! And through and through
18762 The vorpal blade went snicker-snack!
18763 He left it dead, and with its head
18764 He went galumphing back.
18765
18766 \`And has thou slain the Jabberwock?
18767 Come to my arms, my beamish boy!
18768 O frabjous day! Calloh! Callay!
18769 He chortled in his joy.
18770
18771 \`Twas brillig, and the slithy toves
18772 Did gyre and gimble in the wabe;
18773 All mimsy were the borogoves,
18774 And the mome raths outgrabe.
18775
18776
18777 --BOUNDARY-2
18778 Content-Type: text/plain
18779 Content-ID: 3
18780
18781 Plain text 1
18782
18783 --BOUNDARY-2
18784 Content-Type: text/x-special
18785 Content-ID: 4
18786
18787 Plain text 2
18788
18789 --BOUNDARY-2
18790 Content-Type: application/octet-stream; type=tar
18791 Content-ID: 5
18792 Content-Description: Tar archive
18793 Content-Transfer-Encoding: base64
18794
18795 Tm90IGEgdGFyYmFsbCwgcmVhbGx5Cg==
18796 --BOUNDARY-2--
18797
18798 --BOUNDARY-1--
18799 " | \
18800 $at_diff - "$at_stdout" || at_failed=:
18801 at_fn_check_status 0 $at_status "$at_srcdir/mhn.at:966"
18802 $at_failed && at_fn_log_failure
18803 $at_traceon; }
18804
18805 set +x
18806 $at_times_p && times >"$at_times_file"
18807 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18808 read at_status <"$at_status_file"
18809 #AT_STOP_260
18810 #AT_START_261
18811 at_fn_group_banner 261 'send.at:21' \
18812 "send file" " " 24
18813 at_xfail=no
18814 (
18815 printf "%s\n" "261. $at_setup_line: testing $at_desc ..."
18816 $at_traceon
18817
18818
18819
18820 test -d Mail || mkdir Mail
18821 HOME=`pwd`
18822 export HOME
18823 MH=$HOME/mh_profile
18824 export MH
18825 cat > $MH <<EOT
18826 Path: $HOME/Mail
18827 mhetcdir: $abs_top_srcdir/mh/etc
18828 moreproc: /bin/cat
18829 EOT
18830 MTSTAILOR=$HOME/mtstailor
18831 export MTSTAILOR
18832 exec <&-
18833
18834 { set +x
18835 printf "%s\n" "$at_srcdir/send.at:21:
18836
18837 cat > \$MTSTAILOR <<EOT
18838 localname: darkstar
18839 localdomain: example.net
18840 username: mhtester
18841 url: sendmail://\$abs_top_builddir/testsuite/mockmail
18842 EOT
18843
18844 MAIL_DUMP=\$HOME/mta.diag
18845 export MAIL_DUMP
18846
18847 cat >input <<'_ATEOF'
18848 From: [email protected]
18849 To: [email protected]
18850 Subject: Send file test
18851 ------
18852 Message body
18853 _ATEOF
18854
18855 send ./input || exit \$?
18856 sed -e '/^Date:/s/:.*\$/: now/' -e '/^LENGTH: /s/: [0-9][0-9]*/: X/' \$MAIL_DUMP
18857 find . -name ,input
18858 "
18859 at_fn_check_prepare_notrace 'an embedded newline' "send.at:21"
18860 ( $at_check_trace;
18861
18862 cat > $MTSTAILOR <<EOT
18863 localname: darkstar
18864 localdomain: example.net
18865 username: mhtester
18866 url: sendmail://$abs_top_builddir/testsuite/mockmail
18867 EOT
18868
18869 MAIL_DUMP=$HOME/mta.diag
18870 export MAIL_DUMP
18871
18872 cat >input <<'_ATEOF'
18873 From: [email protected]
18874 To: [email protected]
18875 Subject: Send file test
18876 ------
18877 Message body
18878 _ATEOF
18879
18880 send ./input || exit $?
18881 sed -e '/^Date:/s/:.*$/: now/' -e '/^LENGTH: /s/: [0-9][0-9]*/: X/' $MAIL_DUMP
18882 find . -name ,input
18883
18884 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18885 at_status=$? at_failed=false
18886 $at_check_filter
18887 at_fn_diff_devnull "$at_stderr" || at_failed=:
18888 echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001
18889 SENDER: [email protected]
18890 NRCPT: 1
18891 RCPT[0]: <[email protected]>
18892 LENGTH: X
18893 From: [email protected]
18894 To: <[email protected]>
18895 Subject: Send file test
18896 Date: now
18897 User-Agent: MH (GNU Mailutils 3.20)
18898
18899 Message body
18900
18901 ./,input
18902 " | \
18903 $at_diff - "$at_stdout" || at_failed=:
18904 at_fn_check_status 0 $at_status "$at_srcdir/send.at:21"
18905 $at_failed && at_fn_log_failure
18906 $at_traceon; }
18907
18908 set +x
18909 $at_times_p && times >"$at_times_file"
18910 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18911 read at_status <"$at_status_file"
18912 #AT_STOP_261
18913 #AT_START_262
18914 at_fn_group_banner 262 'send.at:51' \
18915 "send files" " " 24
18916 at_xfail=no
18917 (
18918 printf "%s\n" "262. $at_setup_line: testing $at_desc ..."
18919 $at_traceon
18920
18921
18922
18923 test -d Mail || mkdir Mail
18924 HOME=`pwd`
18925 export HOME
18926 MH=$HOME/mh_profile
18927 export MH
18928 cat > $MH <<EOT
18929 Path: $HOME/Mail
18930 mhetcdir: $abs_top_srcdir/mh/etc
18931 moreproc: /bin/cat
18932 EOT
18933 MTSTAILOR=$HOME/mtstailor
18934 export MTSTAILOR
18935 exec <&-
18936
18937 { set +x
18938 printf "%s\n" "$at_srcdir/send.at:51:
18939
18940 cat > \$MTSTAILOR <<EOT
18941 localname: darkstar
18942 localdomain: example.net
18943 username: mhtester
18944 url: sendmail://\$abs_top_builddir/testsuite/mockmail
18945 EOT
18946
18947 MAIL_DUMP=\$HOME/mta.diag
18948 export MAIL_DUMP
18949
18950 cat >input.1 <<'_ATEOF'
18951 From: [email protected]
18952 To: [email protected]
18953 Subject: Send file test 1
18954 ------
18955 Message body 1
18956 _ATEOF
18957
18958
18959 cat >input.2 <<'_ATEOF'
18960 From: [email protected]
18961 To: [email protected]
18962 Subject: Send file test 2
18963 ------
18964 Message body 2
18965 _ATEOF
18966
18967
18968 MAIL_DUMP_APPEND=1
18969 export MAIL_DUMP_APPEND
18970
18971 send ./input.1 ./input.2 || exit \$?
18972 sed -e '/^Date:/s/:.*\$/: now/' -e '/^LENGTH: /s/: [0-9][0-9]*/: X/' \$MAIL_DUMP
18973 find . -name ',input.[12]' | sort
18974 "
18975 at_fn_check_prepare_notrace 'an embedded newline' "send.at:51"
18976 ( $at_check_trace;
18977
18978 cat > $MTSTAILOR <<EOT
18979 localname: darkstar
18980 localdomain: example.net
18981 username: mhtester
18982 url: sendmail://$abs_top_builddir/testsuite/mockmail
18983 EOT
18984
18985 MAIL_DUMP=$HOME/mta.diag
18986 export MAIL_DUMP
18987
18988 cat >input.1 <<'_ATEOF'
18989 From: [email protected]
18990 To: [email protected]
18991 Subject: Send file test 1
18992 ------
18993 Message body 1
18994 _ATEOF
18995
18996
18997 cat >input.2 <<'_ATEOF'
18998 From: [email protected]
18999 To: [email protected]
19000 Subject: Send file test 2
19001 ------
19002 Message body 2
19003 _ATEOF
19004
19005
19006 MAIL_DUMP_APPEND=1
19007 export MAIL_DUMP_APPEND
19008
19009 send ./input.1 ./input.2 || exit $?
19010 sed -e '/^Date:/s/:.*$/: now/' -e '/^LENGTH: /s/: [0-9][0-9]*/: X/' $MAIL_DUMP
19011 find . -name ',input.[12]' | sort
19012
19013 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19014 at_status=$? at_failed=false
19015 $at_check_filter
19016 at_fn_diff_devnull "$at_stderr" || at_failed=:
19017 echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001
19018 SENDER: [email protected]
19019 NRCPT: 1
19020 RCPT[0]: <[email protected]>
19021 LENGTH: X
19022 From: [email protected]
19023 To: <[email protected]>
19024 Subject: Send file test 1
19025 Date: now
19026 User-Agent: MH (GNU Mailutils 3.20)
19027
19028 Message body 1
19029
19030 MSGID: 0001
19031 SENDER: [email protected]
19032 NRCPT: 1
19033 RCPT[0]: <[email protected]>
19034 LENGTH: X
19035 From: [email protected]
19036 To: <[email protected]>
19037 Subject: Send file test 2
19038 Date: now
19039 User-Agent: MH (GNU Mailutils 3.20)
19040
19041 Message body 2
19042
19043 ./,input.1
19044 ./,input.2
19045 " | \
19046 $at_diff - "$at_stdout" || at_failed=:
19047 at_fn_check_status 0 $at_status "$at_srcdir/send.at:51"
19048 $at_failed && at_fn_log_failure
19049 $at_traceon; }
19050
19051 set +x
19052 $at_times_p && times >"$at_times_file"
19053 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19054 read at_status <"$at_status_file"
19055 #AT_STOP_262
19056 #AT_START_263
19057 at_fn_group_banner 263 'send.at:107' \
19058 "send -draft" " " 24
19059 at_xfail=no
19060 (
19061 printf "%s\n" "263. $at_setup_line: testing $at_desc ..."
19062 $at_traceon
19063
19064
19065
19066 test -d Mail || mkdir Mail
19067 HOME=`pwd`
19068 export HOME
19069 MH=$HOME/mh_profile
19070 export MH
19071 cat > $MH <<EOT
19072 Path: $HOME/Mail
19073 mhetcdir: $abs_top_srcdir/mh/etc
19074 moreproc: /bin/cat
19075 EOT
19076 MTSTAILOR=$HOME/mtstailor
19077 export MTSTAILOR
19078 exec <&-
19079
19080 { set +x
19081 printf "%s\n" "$at_srcdir/send.at:107:
19082
19083 cat > \$MTSTAILOR <<EOT
19084 localname: darkstar
19085 localdomain: example.net
19086 username: mhtester
19087 url: sendmail://\$abs_top_builddir/testsuite/mockmail
19088 EOT
19089
19090 MAIL_DUMP=\$HOME/mta.diag
19091 export MAIL_DUMP
19092
19093 cat >Mail/draft <<'_ATEOF'
19094 From: [email protected]
19095 To: [email protected]
19096 Subject: Send file test
19097 ------
19098 Message body
19099 _ATEOF
19100
19101 send -draft || exit \$?
19102 sed -e '/^Date:/s/:.*\$/: now/' -e '/^LENGTH: /s/: [0-9][0-9]*/: X/' \$MAIL_DUMP
19103 echo == Mail/,draft ==
19104 cat Mail/,draft
19105 "
19106 at_fn_check_prepare_notrace 'an embedded newline' "send.at:107"
19107 ( $at_check_trace;
19108
19109 cat > $MTSTAILOR <<EOT
19110 localname: darkstar
19111 localdomain: example.net
19112 username: mhtester
19113 url: sendmail://$abs_top_builddir/testsuite/mockmail
19114 EOT
19115
19116 MAIL_DUMP=$HOME/mta.diag
19117 export MAIL_DUMP
19118
19119 cat >Mail/draft <<'_ATEOF'
19120 From: [email protected]
19121 To: [email protected]
19122 Subject: Send file test
19123 ------
19124 Message body
19125 _ATEOF
19126
19127 send -draft || exit $?
19128 sed -e '/^Date:/s/:.*$/: now/' -e '/^LENGTH: /s/: [0-9][0-9]*/: X/' $MAIL_DUMP
19129 echo == Mail/,draft ==
19130 cat Mail/,draft
19131
19132 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19133 at_status=$? at_failed=false
19134 $at_check_filter
19135 at_fn_diff_devnull "$at_stderr" || at_failed=:
19136 echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001
19137 SENDER: [email protected]
19138 NRCPT: 1
19139 RCPT[0]: <[email protected]>
19140 LENGTH: X
19141 From: [email protected]
19142 To: <[email protected]>
19143 Subject: Send file test
19144 Date: now
19145 User-Agent: MH (GNU Mailutils 3.20)
19146
19147 Message body
19148
19149 == Mail/,draft ==
19150 From: [email protected]
19151 To: [email protected]
19152 Subject: Send file test
19153 ------
19154 Message body
19155 " | \
19156 $at_diff - "$at_stdout" || at_failed=:
19157 at_fn_check_status 0 $at_status "$at_srcdir/send.at:107"
19158 $at_failed && at_fn_log_failure
19159 $at_traceon; }
19160
19161 set +x
19162 $at_times_p && times >"$at_times_file"
19163 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19164 read at_status <"$at_status_file"
19165 #AT_STOP_263
19166 #AT_START_264
19167 at_fn_group_banner 264 'send.at:143' \
19168 "send -draftfolder" " " 24
19169 at_xfail=no
19170 (
19171 printf "%s\n" "264. $at_setup_line: testing $at_desc ..."
19172 $at_traceon
19173
19174
19175
19176 test -d Mail || mkdir Mail
19177 HOME=`pwd`
19178 export HOME
19179 MH=$HOME/mh_profile
19180 export MH
19181 cat > $MH <<EOT
19182 Path: $HOME/Mail
19183 mhetcdir: $abs_top_srcdir/mh/etc
19184 moreproc: /bin/cat
19185 EOT
19186 MTSTAILOR=$HOME/mtstailor
19187 export MTSTAILOR
19188 exec <&-
19189
19190 { set +x
19191 printf "%s\n" "$at_srcdir/send.at:143:
19192
19193 cat > \$MTSTAILOR <<EOT
19194 localname: darkstar
19195 localdomain: example.net
19196 username: mhtester
19197 url: sendmail://\$abs_top_builddir/testsuite/mockmail
19198 EOT
19199
19200 MAIL_DUMP=\$HOME/mta.diag
19201 export MAIL_DUMP
19202
19203 mkdir Mail/drafts
19204 cat >Mail/drafts/2 <<'_ATEOF'
19205 From: [email protected]
19206 To: [email protected]
19207 Subject: Draftfolder test
19208
19209 Message body
19210 _ATEOF
19211
19212 echo \"cur: 2\" > Mail/drafts/.mh_sequences
19213
19214 send -draftfolder +drafts || echo \$?
19215 sed -e '/^Date:/s/:.*\$/: now/' -e '/^LENGTH: /s/: [0-9][0-9]*/: X/' \$MAIL_DUMP
19216 "
19217 at_fn_check_prepare_notrace 'an embedded newline' "send.at:143"
19218 ( $at_check_trace;
19219
19220 cat > $MTSTAILOR <<EOT
19221 localname: darkstar
19222 localdomain: example.net
19223 username: mhtester
19224 url: sendmail://$abs_top_builddir/testsuite/mockmail
19225 EOT
19226
19227 MAIL_DUMP=$HOME/mta.diag
19228 export MAIL_DUMP
19229
19230 mkdir Mail/drafts
19231 cat >Mail/drafts/2 <<'_ATEOF'
19232 From: [email protected]
19233 To: [email protected]
19234 Subject: Draftfolder test
19235
19236 Message body
19237 _ATEOF
19238
19239 echo "cur: 2" > Mail/drafts/.mh_sequences
19240
19241 send -draftfolder +drafts || echo $?
19242 sed -e '/^Date:/s/:.*$/: now/' -e '/^LENGTH: /s/: [0-9][0-9]*/: X/' $MAIL_DUMP
19243
19244 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19245 at_status=$? at_failed=false
19246 $at_check_filter
19247 at_fn_diff_devnull "$at_stderr" || at_failed=:
19248 echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001
19249 SENDER: [email protected]
19250 NRCPT: 1
19251 RCPT[0]: <[email protected]>
19252 LENGTH: X
19253 From: [email protected]
19254 To: <[email protected]>
19255 Subject: Draftfolder test
19256 Date: now
19257 User-Agent: MH (GNU Mailutils 3.20)
19258
19259 Message body
19260
19261 " | \
19262 $at_diff - "$at_stdout" || at_failed=:
19263 at_fn_check_status 0 $at_status "$at_srcdir/send.at:143"
19264 $at_failed && at_fn_log_failure
19265 $at_traceon; }
19266
19267 set +x
19268 $at_times_p && times >"$at_times_file"
19269 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19270 read at_status <"$at_status_file"
19271 #AT_STOP_264
19272 #AT_START_265
19273 at_fn_group_banner 265 'send.at:175' \
19274 "send -draftmessage" " " 24
19275 at_xfail=no
19276 (
19277 printf "%s\n" "265. $at_setup_line: testing $at_desc ..."
19278 $at_traceon
19279
19280
19281
19282 test -d Mail || mkdir Mail
19283 HOME=`pwd`
19284 export HOME
19285 MH=$HOME/mh_profile
19286 export MH
19287 cat > $MH <<EOT
19288 Path: $HOME/Mail
19289 mhetcdir: $abs_top_srcdir/mh/etc
19290 moreproc: /bin/cat
19291 EOT
19292 MTSTAILOR=$HOME/mtstailor
19293 export MTSTAILOR
19294 exec <&-
19295
19296 { set +x
19297 printf "%s\n" "$at_srcdir/send.at:175:
19298
19299 cat > \$MTSTAILOR <<EOT
19300 localname: darkstar
19301 localdomain: example.net
19302 username: mhtester
19303 url: sendmail://\$abs_top_builddir/testsuite/mockmail
19304 EOT
19305
19306 MAIL_DUMP=\$HOME/mta.diag
19307 export MAIL_DUMP
19308
19309 mkdir Mail/drafts
19310 cat >Mail/drafts/2 <<'_ATEOF'
19311 From: [email protected]
19312 To: [email protected]
19313 Subject: Draftfolder test
19314
19315 Message body
19316 _ATEOF
19317
19318
19319 cat >Mail/drafts/5 <<'_ATEOF'
19320 From: [email protected]
19321 To: [email protected]
19322 Subject: Draftmessage test
19323
19324 Message body
19325 _ATEOF
19326
19327 echo \"cur: 2\" > Mail/drafts/.mh_sequences
19328
19329 send -draftfolder +drafts -draftmessage 5 || echo \$?
19330 sed -e '/^Date:/s/:.*\$/: now/' -e '/^LENGTH: /s/: [0-9][0-9]*/: X/' \$MAIL_DUMP
19331 "
19332 at_fn_check_prepare_notrace 'an embedded newline' "send.at:175"
19333 ( $at_check_trace;
19334
19335 cat > $MTSTAILOR <<EOT
19336 localname: darkstar
19337 localdomain: example.net
19338 username: mhtester
19339 url: sendmail://$abs_top_builddir/testsuite/mockmail
19340 EOT
19341
19342 MAIL_DUMP=$HOME/mta.diag
19343 export MAIL_DUMP
19344
19345 mkdir Mail/drafts
19346 cat >Mail/drafts/2 <<'_ATEOF'
19347 From: [email protected]
19348 To: [email protected]
19349 Subject: Draftfolder test
19350
19351 Message body
19352 _ATEOF
19353
19354
19355 cat >Mail/drafts/5 <<'_ATEOF'
19356 From: [email protected]
19357 To: [email protected]
19358 Subject: Draftmessage test
19359
19360 Message body
19361 _ATEOF
19362
19363 echo "cur: 2" > Mail/drafts/.mh_sequences
19364
19365 send -draftfolder +drafts -draftmessage 5 || echo $?
19366 sed -e '/^Date:/s/:.*$/: now/' -e '/^LENGTH: /s/: [0-9][0-9]*/: X/' $MAIL_DUMP
19367
19368 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19369 at_status=$? at_failed=false
19370 $at_check_filter
19371 at_fn_diff_devnull "$at_stderr" || at_failed=:
19372 echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001
19373 SENDER: [email protected]
19374 NRCPT: 1
19375 RCPT[0]: <[email protected]>
19376 LENGTH: X
19377 From: [email protected]
19378 To: <[email protected]>
19379 Subject: Draftmessage test
19380 Date: now
19381 User-Agent: MH (GNU Mailutils 3.20)
19382
19383 Message body
19384
19385 " | \
19386 $at_diff - "$at_stdout" || at_failed=:
19387 at_fn_check_status 0 $at_status "$at_srcdir/send.at:175"
19388 $at_failed && at_fn_log_failure
19389 $at_traceon; }
19390
19391 set +x
19392 $at_times_p && times >"$at_times_file"
19393 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19394 read at_status <"$at_status_file"
19395 #AT_STOP_265
19396 #AT_START_266
19397 at_fn_group_banner 266 'sortm.at:22' \
19398 "sortm -textfield" " " 25
19399 at_xfail=no
19400 (
19401 printf "%s\n" "266. $at_setup_line: testing $at_desc ..."
19402 $at_traceon
19403
19404
19405
19406 test -d Mail || mkdir Mail
19407 HOME=`pwd`
19408 export HOME
19409 MH=$HOME/mh_profile
19410 export MH
19411 cat > $MH <<EOT
19412 Path: $HOME/Mail
19413 mhetcdir: $abs_top_srcdir/mh/etc
19414 moreproc: /bin/cat
19415 EOT
19416 MTSTAILOR=$HOME/mtstailor
19417 export MTSTAILOR
19418 exec <&-
19419
19420 { set +x
19421 printf "%s\n" "$at_srcdir/sortm.at:22:
19422 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
19423 echo \"cur: 11\" > Mail/teaparty/.mh_sequences
19424 sortm -text From -nodate +teaparty || exit \$?
19425 sed -e 's/ *//' Mail/teaparty/.mu-prop | grep -v '^uid-validity:10\$' | grep uid-validity >/dev/null && echo OK
19426 scan -format '%4(msg)%<(cur)+%| %> %02(mon{date})/%02(mday{date}) %24(friendly{from}) %{subject}'
19427 "
19428 at_fn_check_prepare_notrace 'an embedded newline' "sortm.at:22"
19429 ( $at_check_trace;
19430 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
19431 echo "cur: 11" > Mail/teaparty/.mh_sequences
19432 sortm -text From -nodate +teaparty || exit $?
19433 sed -e 's/ *//' Mail/teaparty/.mu-prop | grep -v '^uid-validity:10$' | grep uid-validity >/dev/null && echo OK
19434 scan -format '%4(msg)%<(cur)+%| %> %02(mon{date})/%02(mday{date}) %24(friendly{from}) %{subject}'
19435
19436 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19437 at_status=$? at_failed=false
19438 $at_check_filter
19439 at_fn_diff_devnull "$at_stderr" || at_failed=:
19440 echo >>"$at_stdout"; printf "%s\n" "OK
19441 1 07/29 Alice Re: Invitation
19442 2 07/29 Alice Re: Invitation
19443 3 07/29 Alice Re: Invitation
19444 4 07/29 Alice Re: Personal remark
19445 5 07/29 Alice Re: Riddle
19446 6 07/29 Alice Re: Riddle
19447 7 07/29 Alice Re: Be specific
19448 8 07/29 Alice Re: Watch
19449 9 07/29 Alice Funny watch (was Re: Watch)
19450 10 07/29 Alice Re: Funny watch
19451 11 07/29 Alice Re: Funny watch
19452 12 07/29 Alice Re: Riddle
19453 13 07/29 Alice Re: Riddle
19454 14 07/29 Alice Re: Discussing Time
19455 15 07/29 Alice Re: Discussing Time
19456 16 07/29 Alice Re: Discussing Time
19457 17 07/29 Alice Re: Discussing Time
19458 18 07/29 Alice Re: Discussing Time
19459 19 07/29 Alice Re: Discussing Time
19460 20 07/29 Alice A guess (was Re: Discussing Time)
19461 21 07/29 Alice Re: A guess
19462 22 07/29 Alice Re: A guess
19463 23 07/29 Alice Re: Request for a story
19464 24 07/29 Alice Re: Request for a story
19465 25 07/29 Alice Re: Story
19466 26 07/29 Alice Re: Story
19467 27 07/29 Alice Re: Story
19468 28 07/29 Alice Re: Remark
19469 29 07/29 Alice Personal remark
19470 30 07/29 Alice Re: Story
19471 31 07/29 Alice Re: Story
19472 32 07/29 Alice Re: Story
19473 33 07/29 Alice Re: Story
19474 34 07/29 Alice Re: Story
19475 35 07/29 Alice Re: Story
19476 36 07/29 Alice Re: Story
19477 37 07/29 Alice Re: Story
19478 38 07/29 Alice Thoughts
19479 39 07/29 Dormouse Re: Be specific
19480 40 07/29 Dormouse Re: Remark
19481 41 07/29 Dormouse Re: Discussing Time
19482 42 07/29 Dormouse Re: Request for a story
19483 43 07/29 Dormouse Story (was Re: Request for a story)
19484 44 07/29 Dormouse Re: Story
19485 45 07/29 Dormouse Re: Story
19486 46 07/29 Dormouse Re: Story
19487 47 07/29 Dormouse Re: Story
19488 48 07/29 Dormouse Re: Story
19489 49 07/29 Dormouse Re: Story
19490 50 07/29 Dormouse Re: Story
19491 51 07/29 Dormouse Re: Story
19492 52 07/29 Dormouse Re: Story
19493 53 07/29 Dormouse Re: Story
19494 54 07/29 Hatter Re: Be specific
19495 55 07/29 Hatter Re: Be specific
19496 56 07/29 Hatter Watch
19497 57 07/29 Hatter Re: Watch
19498 58 07/29 Hatter Re: Watch
19499 59 07/29 Hatter Re: Funny watch
19500 60 07/29 Hatter Re: Funny watch
19501 61 07/29 Hatter Remark
19502 62 07/29 Hatter Re: Riddle
19503 63 07/29 Hatter Re: Riddle
19504 64 07/29 Hatter Discussing Time
19505 65 07/29 Hatter Re: Discussing Time
19506 66 07/29 Hatter Re: Discussing Time
19507 67 07/29 Hatter Re: Discussing Time
19508 68 07/29 Hatter Re: Discussing Time
19509 69 07/29 Hatter Re: Discussing Time
19510 70 07/29 Hatter Re: Discussing Time
19511 71 07/29 Hatter Re: Discussing Time
19512 72 07/29 Hatter Re: A guess
19513 73 07/29 Hatter Re: A guess
19514 74 07/29 Hatter Re: Request for a story
19515 75 07/29 Hatter Re: Request for a story
19516 76 07/29 Hatter Re: Remark
19517 77 07/29 Hatter Re: Personal remark
19518 78 07/29 Hatter Let's move
19519 79 07/29 Hatter Re: Story
19520 80 07/29 Hatter Rude remark
19521 81 07/29 March Hare Invitation
19522 82 07/29 March Hare Re: Invitation
19523 83 07/29 March Hare Re: Invitation
19524 84 07/29 March Hare Personal remark
19525 85 07/29 March Hare Riddle (was Re: Personal remark)
19526 86+ 07/29 March Hare Re: Riddle
19527 87 07/29 March Hare Be specific (was Re: Riddle)
19528 88 07/29 March Hare Re: Be specific
19529 89 07/29 March Hare Re: Watch
19530 90 07/29 March Hare Re: Watch
19531 91 07/29 March Hare Re: Riddle
19532 92 07/29 March Hare Thought apart Re: Discussing Time
19533 93 07/29 March Hare Request for a story (was Re: A guess)
19534 94 07/29 March Hare Re: Request for a story
19535 95 07/29 March Hare Remark
19536 " | \
19537 $at_diff - "$at_stdout" || at_failed=:
19538 at_fn_check_status 0 $at_status "$at_srcdir/sortm.at:22"
19539 $at_failed && at_fn_log_failure
19540 $at_traceon; }
19541
19542 set +x
19543 $at_times_p && times >"$at_times_file"
19544 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19545 read at_status <"$at_status_file"
19546 #AT_STOP_266
19547 #AT_START_267
19548 at_fn_group_banner 267 'sortm.at:128' \
19549 "sortm -datefield" " " 25
19550 at_xfail=no
19551 (
19552 printf "%s\n" "267. $at_setup_line: testing $at_desc ..."
19553 $at_traceon
19554
19555
19556
19557 test -d Mail || mkdir Mail
19558 HOME=`pwd`
19559 export HOME
19560 MH=$HOME/mh_profile
19561 export MH
19562 cat > $MH <<EOT
19563 Path: $HOME/Mail
19564 mhetcdir: $abs_top_srcdir/mh/etc
19565 moreproc: /bin/cat
19566 EOT
19567 MTSTAILOR=$HOME/mtstailor
19568 export MTSTAILOR
19569 exec <&-
19570
19571 { set +x
19572 printf "%s\n" "$at_srcdir/sortm.at:128:
19573 mbox2dir -m Mail/teaparty \$spooldir/teaparty.mbox
19574 echo \"cur: 11\" > Mail/teaparty/.mh_sequences
19575 sortm -text From -nodate +teaparty || exit \$?
19576 sed -e 's/ *//' Mail/teaparty/.mu-prop | grep -v '^uid-validity:10\$' | grep uid-validity >/dev/null && echo OK
19577 scan -format '%4(msg)%<(cur)+%| %> %02(mon{date})/%02(mday{date}) %24(friendly{from}) %{subject}'
19578 sortm
19579 sed -e 's/ *//' Mail/teaparty/.mu-prop | grep -v '^uid-validity:10\$' | grep uid-validity >/dev/null && echo OK
19580 scan -format '%4(msg)%<(cur)+%| %> %02(mon{date})/%02(mday{date}) %24(friendly{from}) %{subject}'
19581 "
19582 at_fn_check_prepare_notrace 'an embedded newline' "sortm.at:128"
19583 ( $at_check_trace;
19584 mbox2dir -m Mail/teaparty $spooldir/teaparty.mbox
19585 echo "cur: 11" > Mail/teaparty/.mh_sequences
19586 sortm -text From -nodate +teaparty || exit $?
19587 sed -e 's/ *//' Mail/teaparty/.mu-prop | grep -v '^uid-validity:10$' | grep uid-validity >/dev/null && echo OK
19588 scan -format '%4(msg)%<(cur)+%| %> %02(mon{date})/%02(mday{date}) %24(friendly{from}) %{subject}'
19589 sortm
19590 sed -e 's/ *//' Mail/teaparty/.mu-prop | grep -v '^uid-validity:10$' | grep uid-validity >/dev/null && echo OK
19591 scan -format '%4(msg)%<(cur)+%| %> %02(mon{date})/%02(mday{date}) %24(friendly{from}) %{subject}'
19592
19593 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19594 at_status=$? at_failed=false
19595 $at_check_filter
19596 at_fn_diff_devnull "$at_stderr" || at_failed=:
19597 echo >>"$at_stdout"; printf "%s\n" "OK
19598 1 07/29 Alice Re: Invitation
19599 2 07/29 Alice Re: Invitation
19600 3 07/29 Alice Re: Invitation
19601 4 07/29 Alice Re: Personal remark
19602 5 07/29 Alice Re: Riddle
19603 6 07/29 Alice Re: Riddle
19604 7 07/29 Alice Re: Be specific
19605 8 07/29 Alice Re: Watch
19606 9 07/29 Alice Funny watch (was Re: Watch)
19607 10 07/29 Alice Re: Funny watch
19608 11 07/29 Alice Re: Funny watch
19609 12 07/29 Alice Re: Riddle
19610 13 07/29 Alice Re: Riddle
19611 14 07/29 Alice Re: Discussing Time
19612 15 07/29 Alice Re: Discussing Time
19613 16 07/29 Alice Re: Discussing Time
19614 17 07/29 Alice Re: Discussing Time
19615 18 07/29 Alice Re: Discussing Time
19616 19 07/29 Alice Re: Discussing Time
19617 20 07/29 Alice A guess (was Re: Discussing Time)
19618 21 07/29 Alice Re: A guess
19619 22 07/29 Alice Re: A guess
19620 23 07/29 Alice Re: Request for a story
19621 24 07/29 Alice Re: Request for a story
19622 25 07/29 Alice Re: Story
19623 26 07/29 Alice Re: Story
19624 27 07/29 Alice Re: Story
19625 28 07/29 Alice Re: Remark
19626 29 07/29 Alice Personal remark
19627 30 07/29 Alice Re: Story
19628 31 07/29 Alice Re: Story
19629 32 07/29 Alice Re: Story
19630 33 07/29 Alice Re: Story
19631 34 07/29 Alice Re: Story
19632 35 07/29 Alice Re: Story
19633 36 07/29 Alice Re: Story
19634 37 07/29 Alice Re: Story
19635 38 07/29 Alice Thoughts
19636 39 07/29 Dormouse Re: Be specific
19637 40 07/29 Dormouse Re: Remark
19638 41 07/29 Dormouse Re: Discussing Time
19639 42 07/29 Dormouse Re: Request for a story
19640 43 07/29 Dormouse Story (was Re: Request for a story)
19641 44 07/29 Dormouse Re: Story
19642 45 07/29 Dormouse Re: Story
19643 46 07/29 Dormouse Re: Story
19644 47 07/29 Dormouse Re: Story
19645 48 07/29 Dormouse Re: Story
19646 49 07/29 Dormouse Re: Story
19647 50 07/29 Dormouse Re: Story
19648 51 07/29 Dormouse Re: Story
19649 52 07/29 Dormouse Re: Story
19650 53 07/29 Dormouse Re: Story
19651 54 07/29 Hatter Re: Be specific
19652 55 07/29 Hatter Re: Be specific
19653 56 07/29 Hatter Watch
19654 57 07/29 Hatter Re: Watch
19655 58 07/29 Hatter Re: Watch
19656 59 07/29 Hatter Re: Funny watch
19657 60 07/29 Hatter Re: Funny watch
19658 61 07/29 Hatter Remark
19659 62 07/29 Hatter Re: Riddle
19660 63 07/29 Hatter Re: Riddle
19661 64 07/29 Hatter Discussing Time
19662 65 07/29 Hatter Re: Discussing Time
19663 66 07/29 Hatter Re: Discussing Time
19664 67 07/29 Hatter Re: Discussing Time
19665 68 07/29 Hatter Re: Discussing Time
19666 69 07/29 Hatter Re: Discussing Time
19667 70 07/29 Hatter Re: Discussing Time
19668 71 07/29 Hatter Re: Discussing Time
19669 72 07/29 Hatter Re: A guess
19670 73 07/29 Hatter Re: A guess
19671 74 07/29 Hatter Re: Request for a story
19672 75 07/29 Hatter Re: Request for a story
19673 76 07/29 Hatter Re: Remark
19674 77 07/29 Hatter Re: Personal remark
19675 78 07/29 Hatter Let's move
19676 79 07/29 Hatter Re: Story
19677 80 07/29 Hatter Rude remark
19678 81 07/29 March Hare Invitation
19679 82 07/29 March Hare Re: Invitation
19680 83 07/29 March Hare Re: Invitation
19681 84 07/29 March Hare Personal remark
19682 85 07/29 March Hare Riddle (was Re: Personal remark)
19683 86+ 07/29 March Hare Re: Riddle
19684 87 07/29 March Hare Be specific (was Re: Riddle)
19685 88 07/29 March Hare Re: Be specific
19686 89 07/29 March Hare Re: Watch
19687 90 07/29 March Hare Re: Watch
19688 91 07/29 March Hare Re: Riddle
19689 92 07/29 March Hare Thought apart Re: Discussing Time
19690 93 07/29 March Hare Request for a story (was Re: A guess)
19691 94 07/29 March Hare Re: Request for a story
19692 95 07/29 March Hare Remark
19693 OK
19694 1 07/29 March Hare Invitation
19695 2 07/29 Alice Re: Invitation
19696 3 07/29 March Hare Re: Invitation
19697 4 07/29 Alice Re: Invitation
19698 5 07/29 March Hare Re: Invitation
19699 6 07/29 Alice Re: Invitation
19700 7 07/29 March Hare Personal remark
19701 8 07/29 Alice Re: Personal remark
19702 9 07/29 March Hare Riddle (was Re: Personal remark)
19703 10 07/29 Alice Re: Riddle
19704 11+ 07/29 March Hare Re: Riddle
19705 12 07/29 Alice Re: Riddle
19706 13 07/29 March Hare Be specific (was Re: Riddle)
19707 14 07/29 Alice Re: Be specific
19708 15 07/29 Hatter Re: Be specific
19709 16 07/29 March Hare Re: Be specific
19710 17 07/29 Dormouse Re: Be specific
19711 18 07/29 Hatter Re: Be specific
19712 19 07/29 Hatter Watch
19713 20 07/29 Alice Re: Watch
19714 21 07/29 Hatter Re: Watch
19715 22 07/29 March Hare Re: Watch
19716 23 07/29 Hatter Re: Watch
19717 24 07/29 March Hare Re: Watch
19718 25 07/29 Alice Funny watch (was Re: Watch)
19719 26 07/29 Hatter Re: Funny watch
19720 27 07/29 Alice Re: Funny watch
19721 28 07/29 Hatter Re: Funny watch
19722 29 07/29 Alice Re: Funny watch
19723 30 07/29 Hatter Remark
19724 31 07/29 Dormouse Re: Remark
19725 32 07/29 Hatter Re: Riddle
19726 33 07/29 Alice Re: Riddle
19727 34 07/29 Hatter Re: Riddle
19728 35 07/29 March Hare Re: Riddle
19729 36 07/29 Alice Re: Riddle
19730 37 07/29 Hatter Discussing Time
19731 38 07/29 Alice Re: Discussing Time
19732 39 07/29 Hatter Re: Discussing Time
19733 40 07/29 Alice Re: Discussing Time
19734 41 07/29 Hatter Re: Discussing Time
19735 42 07/29 March Hare Thought apart Re: Discussing Time
19736 43 07/29 Alice Re: Discussing Time
19737 44 07/29 Hatter Re: Discussing Time
19738 45 07/29 Alice Re: Discussing Time
19739 46 07/29 Hatter Re: Discussing Time
19740 47 07/29 Alice Re: Discussing Time
19741 48 07/29 Hatter Re: Discussing Time
19742 49 07/29 Dormouse Re: Discussing Time
19743 50 07/29 Hatter Re: Discussing Time
19744 51 07/29 Alice Re: Discussing Time
19745 52 07/29 Hatter Re: Discussing Time
19746 53 07/29 Alice A guess (was Re: Discussing Time)
19747 54 07/29 Hatter Re: A guess
19748 55 07/29 Alice Re: A guess
19749 56 07/29 Hatter Re: A guess
19750 57 07/29 Alice Re: A guess
19751 58 07/29 March Hare Request for a story (was Re: A guess)
19752 59 07/29 Alice Re: Request for a story
19753 60 07/29 Hatter Re: Request for a story
19754 61 07/29 Dormouse Re: Request for a story
19755 62 07/29 March Hare Re: Request for a story
19756 63 07/29 Alice Re: Request for a story
19757 64 07/29 Hatter Re: Request for a story
19758 65 07/29 Dormouse Story (was Re: Request for a story)
19759 66 07/29 Alice Re: Story
19760 67 07/29 Dormouse Re: Story
19761 68 07/29 Alice Re: Story
19762 69 07/29 Dormouse Re: Story
19763 70 07/29 Alice Re: Story
19764 71 07/29 March Hare Remark
19765 72 07/29 Alice Re: Remark
19766 73 07/29 Hatter Re: Remark
19767 74 07/29 Alice Personal remark
19768 75 07/29 Hatter Re: Personal remark
19769 76 07/29 Alice Re: Story
19770 77 07/29 Dormouse Re: Story
19771 78 07/29 Alice Re: Story
19772 79 07/29 Dormouse Re: Story
19773 80 07/29 Alice Re: Story
19774 81 07/29 Dormouse Re: Story
19775 82 07/29 Alice Re: Story
19776 83 07/29 Dormouse Re: Story
19777 84 07/29 Hatter Let's move
19778 85 07/29 Alice Re: Story
19779 86 07/29 Hatter Re: Story
19780 87 07/29 Alice Re: Story
19781 88 07/29 Dormouse Re: Story
19782 89 07/29 Dormouse Re: Story
19783 90 07/29 Alice Re: Story
19784 91 07/29 Dormouse Re: Story
19785 92 07/29 Dormouse Re: Story
19786 93 07/29 Alice Re: Story
19787 94 07/29 Hatter Rude remark
19788 95 07/29 Alice Thoughts
19789 " | \
19790 $at_diff - "$at_stdout" || at_failed=:
19791 at_fn_check_status 0 $at_status "$at_srcdir/sortm.at:128"
19792 $at_failed && at_fn_log_failure
19793 $at_traceon; }
19794
19795 set +x
19796 $at_times_p && times >"$at_times_file"
19797 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19798 read at_status <"$at_status_file"
19799 #AT_STOP_267
19800 #AT_START_268
19801 at_fn_group_banner 268 'fmtcnd00.at:37' \
19802 "if branch" " " 26
19803 at_xfail=no
19804 (
19805 printf "%s\n" "268. $at_setup_line: testing $at_desc ..."
19806 $at_traceon
19807
19808
19809 cat >msg <<'_ATEOF'
19810 From: [email protected]
19811 To: [email protected]
19812 Subject: greater than one thousand
19813
19814 greater than 1000 bytes
19815 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
19816 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
19817 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
19818 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
19819 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
19820 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
19821 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
19822 HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
19823 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
19824 JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ
19825 KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
19826 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
19827 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
19828 NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
19829 OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
19830 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
19831 QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
19832 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
19833 SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
19834 TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
19835 UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
19836 VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
19837 WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
19838 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
19839 YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
19840 ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
19841 _ATEOF
19842
19843 { set +x
19844 printf "%s\n" "$at_srcdir/fmtcnd00.at:37: MH=/dev/null fmtcheck -format '%(void(size))%<(gt 1000)%(divide 1000)m%?(gt 100)%(divide 100)c%|%(size)%> %(putnum)' msg
19845 "
19846 at_fn_check_prepare_notrace 'an embedded newline' "fmtcnd00.at:37"
19847 ( $at_check_trace; MH=/dev/null fmtcheck -format '%(void(size))%<(gt 1000)%(divide 1000)m%?(gt 100)%(divide 100)c%|%(size)%> %(putnum)' msg
19848
19849 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19850 at_status=$? at_failed=false
19851 $at_check_filter
19852 at_fn_diff_devnull "$at_stderr" || at_failed=:
19853 echo >>"$at_stdout"; printf "%s\n" "1m 1
19854 " | \
19855 $at_diff - "$at_stdout" || at_failed=:
19856 at_fn_check_status 0 $at_status "$at_srcdir/fmtcnd00.at:37"
19857 $at_failed && at_fn_log_failure
19858 $at_traceon; }
19859
19860 set +x
19861 $at_times_p && times >"$at_times_file"
19862 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19863 read at_status <"$at_status_file"
19864 #AT_STOP_268
19865 #AT_START_269
19866 at_fn_group_banner 269 'fmtcnd00.at:73' \
19867 "elseif branch" " " 26
19868 at_xfail=no
19869 (
19870 printf "%s\n" "269. $at_setup_line: testing $at_desc ..."
19871 $at_traceon
19872
19873
19874 cat >msg <<'_ATEOF'
19875 From: [email protected]
19876 To: [email protected]
19877 Subject: less than one thousand
19878
19879 less than 1000 bytes
19880 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
19881 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
19882 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
19883 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
19884 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
19885 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
19886 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
19887 HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
19888 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
19889 JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ
19890 KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
19891 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
19892 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
19893 NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
19894 OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
19895 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
19896 QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
19897 _ATEOF
19898
19899 { set +x
19900 printf "%s\n" "$at_srcdir/fmtcnd00.at:73: MH=/dev/null fmtcheck -format '%(void(size))%<(gt 1000)%(divide 1000)m%?(gt 100)%(divide 100)c%|%(size)%> %(putnum)' msg
19901 "
19902 at_fn_check_prepare_notrace 'an embedded newline' "fmtcnd00.at:73"
19903 ( $at_check_trace; MH=/dev/null fmtcheck -format '%(void(size))%<(gt 1000)%(divide 1000)m%?(gt 100)%(divide 100)c%|%(size)%> %(putnum)' msg
19904
19905 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19906 at_status=$? at_failed=false
19907 $at_check_filter
19908 at_fn_diff_devnull "$at_stderr" || at_failed=:
19909 echo >>"$at_stdout"; printf "%s\n" "9c 1
19910 " | \
19911 $at_diff - "$at_stdout" || at_failed=:
19912 at_fn_check_status 0 $at_status "$at_srcdir/fmtcnd00.at:73"
19913 $at_failed && at_fn_log_failure
19914 $at_traceon; }
19915
19916 set +x
19917 $at_times_p && times >"$at_times_file"
19918 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19919 read at_status <"$at_status_file"
19920 #AT_STOP_269
19921 #AT_START_270
19922 at_fn_group_banner 270 'fmtcnd00.at:100' \
19923 "else branch" " " 26
19924 at_xfail=no
19925 (
19926 printf "%s\n" "270. $at_setup_line: testing $at_desc ..."
19927 $at_traceon
19928
19929
19930 cat >msg <<'_ATEOF'
19931 From: [email protected]
19932 To: [email protected]
19933 Subject: under one hundred
19934
19935 less than 100 bytes
19936 _ATEOF
19937
19938 { set +x
19939 printf "%s\n" "$at_srcdir/fmtcnd00.at:100: MH=/dev/null fmtcheck -format '%(void(size))%<(gt 1000)%(divide 1000)m%?(gt 100)%(divide 100)c%|%(size)%> %(putnum)' msg
19940 "
19941 at_fn_check_prepare_notrace 'an embedded newline' "fmtcnd00.at:100"
19942 ( $at_check_trace; MH=/dev/null fmtcheck -format '%(void(size))%<(gt 1000)%(divide 1000)m%?(gt 100)%(divide 100)c%|%(size)%> %(putnum)' msg
19943
19944 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19945 at_status=$? at_failed=false
19946 $at_check_filter
19947 at_fn_diff_devnull "$at_stderr" || at_failed=:
19948 echo >>"$at_stdout"; printf "%s\n" "87 0
19949 " | \
19950 $at_diff - "$at_stdout" || at_failed=:
19951 at_fn_check_status 0 $at_status "$at_srcdir/fmtcnd00.at:100"
19952 $at_failed && at_fn_log_failure
19953 $at_traceon; }
19954
19955 set +x
19956 $at_times_p && times >"$at_times_file"
19957 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19958 read at_status <"$at_status_file"
19959 #AT_STOP_270