Debian Codegraph @

imap4d/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;testsuite.at:76;imap4d version;;
614 2;anystate.at:17;Non-authenticated state;anystate;
615 3;id.at:17;ID command;id;
616 4;select.at:17;select;;
617 5;examine.at:17;examine;;
618 6;status.at:17;status;;
619 7;expunge.at:17;expunge;;
620 8;close-expunge.at:17;Close with expunge;close close-expunge;
621 9;create01.at:17;create;create create00;
622 10;create02.at:17;create nested;create create01;
623 11;append00.at:17;append with flags;append00;
624 12;append01.at:17;append with envelope date;append01;
625 13;list.at:42;list \"\" \"\";list list01;
626 14;list.at:47;list \"\" \"*\";list list02;
627 15;list.at:58;list \"\" \"%\";list list02;
628 16;list.at:69;duplicate INBOX;list list02;
629 17;list.at:82;list \"\" INBOX;list list07;
630 18;list.at:88;list \"\" \"search\";list list08;
631 19;list.at:94;list \"\" \"#archive:*\";list;
632 20;list.at:108;list \"#archive:\" \"*\";list;
633 21;list.at:122;list \"\" \"#archive:%\";list;
634 22;list.at:133;list \"#archive:\" \"%\";list;
635 23;list.at:144;list \"#archive:\" \"a.b\";list;
636 24;list.at:151;list \"#archive:\" \"a.b.c\";list;
637 25;list.at:159;list \"\" \"archive.*\";list;
638 26;list.at:173;list \"archive.\" \"*\";list;
639 27;list.at:189;list \"archive\" \"*\";list;
640 28;list.at:198;list \"~/\" \"*\";list;
641 29;list.at:203;list \"~foo/\" \"%\";list;
642 30;list.at:214;list \"~foo/\" \"*\";list;
643 31;list.at:226;list \"\" \"~foo/*\";list;
644 32;list.at:238;list \"~foo/\" \"%/*\";list;
645 33;list.at:250;list \"other/\" \"*\";list;
646 34;list.at:255;list \"other/foo\" \"%\";list;
647 35;list.at:266;list \"other/foo\" \"*\";list;
648 36;list.at:278;list \"\" \"other/foo/*\";list;
649 37;list.at:290;list \"other/foo/\" \"%/*\";list;
650 38;list.at:301;root ref + asterisk;list list03;
651 39;list.at:311;absolute reference + asterisk;list list04;
652 40;list.at:318;absolute reference + percent;list list05;
653 41;list.at:325;absolute reference + mailbox;list list06;
654 42;search.at:49;search sequence number;search search00;
655 43;search.at:54;search all;search search01;
656 44;search.at:60;search new;search search02;
657 45;search.at:65;search from personal;search search03;
658 46;search.at:68;search from email;search search04;
659 47;search.at:73;search larger;search search05;
660 48;search.at:78;search smaller;search search06;
661 49;search.at:83;search subject;search search07;
662 50;search.at:91;search header;search search08;
663 51;search.at:96;search cc;search search09;
664 52;search.at:101;search to;search search10;
665 53;search.at:107;search sentbefore;search search11;
666 54;search.at:113;search sentsince;search search12;
667 55;search.at:118;search beforedate;search search13;
668 56;search.at:123;search since;search search14;
669 57;search.at:127;search answered;search search15;
670 58;search.at:132;search text;search search16;
671 59;search.at:137;search multiple keys (implicit AND) 1;search search17;
672 60;search.at:140;search multiple keys (implicit AND) 2;search search18;
673 61;search.at:145;search or;search search19;
674 62;search.at:149;precedence 1;search search20;
675 63;search.at:152;precedence 2;search search21;
676 64;search.at:155;precedence 3;search search22;
677 65;search.at:162;BODY - plain message;search search23;
678 66;search.at:166;BODY - MIME level 1;search search24;
679 67;search.at:170;BODY - MIME level 1, base64;search search25;
680 68;search.at:174;BODY - MIME level 2, base64;search search26;
681 69;search.at:178;BODY CHARSET;search search27;
682 70;search.at:178;SUBJECT CHARSET;search search28;
683 71;search.at:178;BODY CHARSET - MIME message/rfc822;search search29;
684 72;search.at:197;TEXT;search search30;
685 73;search.at:201;BODY CHARSET (case-insensitive UTF);search search31;
686 74;search.at:224;UID;search search32;
687 75;fetch.at:56;flags;fetch fetch-flags fetch00;
688 76;fetch.at:61;internaldate;fetch fetch-internaldate fetch01;
689 77;fetch.at:68;uid;fetch fetch-uid fetch02;
690 78;fetch.at:72;uid + internaldate;fetch fetch-internaldate-uid fetch03;
691 79;fetch.at:83;envelope;fetch fetch-envelope fetch04;
692 80;fetch.at:94;ALL;fetch fetch-all fetch05;
693 81;fetch.at:108;BODYSTRUCTURE;fetch fetch-bodystructure fetch06;
694 82;fetch.at:118;BODY;fetch fetch-body fetch07;
695 83;fetch.at:140;BODY[HEADER];fetch fetch-body-header fetch08;
696 84;fetch.at:161;BODY[HEADER.FIELDS];fetch fetch-body-header-fields fetch09;
697 85;fetch.at:173;BODY[HEADER.FIELDS.NOT];fetch fetch-body-header-fields-not fetch10;
698 86;fetch.at:186;BODY[TEXT];fetch fetch-body-text fetch11;
699 87;fetch.at:232;BODY[TEXT]<X.Y>;fetch fetch-body-text-substring fetch12;
700 88;fetch.at:237;BODY[TEXT]<Y.X>;fetch fetch-body-text-rev-substring fetch13;
701 89;fetch.at:248;BODY[TEXT]<X-too-big>;fetch fetch-body-text-off2big fetch14;
702 90;fetch.at:261;BODY[TEXT] (truncated);fetch fetch-body-text-truncated fetch15;
703 91;fetch.at:307;BODY[N.MIME];fetch fetch-body-mime fetch16;
704 92;fetch.at:316;BODY[<section>];fetch fetch-body-section fetch17;
705 93;fetch.at:335;N.HEADER (text/plain);fetch fetch-header-subpart-text fetch18;
706 94;fetch.at:340;N.HEADER (message/rfc822);fetch fetch-header-subpart-msg fetch19;
707 95;fetch.at:357;N.HEADER.FIELDS;fetch fetch-header-fields-subpart fetch20;
708 96;fetch.at:366;nested message/rfc822;fetch fetch-nested fetch21;
709 97;fetch.at:380;nested multipart + message/rfc822;fetch fetch-nested fetch22;
710 98;fetch.at:399;BODY.PEEK[HEADER];fetch fetch-body-peek-header fetch23;
711 99;fetch.at:417;RFC822;fetch fetch-rfc822 fetch24;
712 100;fetch.at:470;RFC822.HEADER;fetch fetch-rfc822-header fetch25;
713 101;fetch.at:486;RFC822.SIZE;fetch fetch-rfc822-size fetch26;
714 102;fetch.at:493;RFC822.TEXT;fetch fetch-rfc822-text fetch27;
715 103;fetch.at:505;FAST;fetch fetch-fast fetch28;
716 104;fetch.at:514;FULL;fetch fetch-full fetch29;
717 105;IDEF0955.at:17;IDEF0955;;
718 106;IDEF0956.at:17;IDEF0956;;
719 107;clt_list.at:19;list;imap list folder;
720 "
721 # List of the all the test groups.
722 at_groups_all=`printf "%s\n" "$at_help_all" | sed 's/;.*//'`
723
724 # at_fn_validate_ranges NAME...
725 # -----------------------------
726 # Validate and normalize the test group number contained in each variable
727 # NAME. Leading zeroes are treated as decimal.
728 at_fn_validate_ranges ()
729 {
730 for at_grp
731 do
732 eval at_value=\$$at_grp
733 if test $at_value -lt 1 || test $at_value -gt 107; then
734 printf "%s\n" "invalid test group: $at_value" >&2
735 exit 1
736 fi
737 case $at_value in
738 0*) # We want to treat leading 0 as decimal, like expr and test, but
739 # AS_VAR_ARITH treats it as octal if it uses $(( )).
740 # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
741 # expr fork, but it is not worth the effort to determine if the
742 # shell supports XSI when the user can just avoid leading 0.
743 eval $at_grp='`expr $at_value + 0`' ;;
744 esac
745 done
746 }
747 # List of the tested programs.
748 at_tested='"imap4d"'
749
750
751 at_prev=
752 for at_option
753 do
754 # If the previous option needs an argument, assign it.
755 if test -n "$at_prev"; then
756 at_option=$at_prev=$at_option
757 at_prev=
758 fi
759
760 case $at_option in
761 *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
762 *) at_optarg= ;;
763 esac
764
765 case $at_option in
766 --help | -h )
767 at_help_p=:
768 ;;
769
770 --list | -l )
771 at_list_p=:
772 ;;
773
774 --version | -V )
775 at_version_p=:
776 ;;
777
778 --clean | -c )
779 at_clean=:
780 ;;
781
782 --color )
783 at_color=always
784 ;;
785 --color=* )
786 case $at_optarg in
787 no | never | none) at_color=never ;;
788 auto | tty | if-tty) at_color=auto ;;
789 always | yes | force) at_color=always ;;
790 *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'`
791 as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;;
792 esac
793 ;;
794
795 --debug | -d )
796 at_debug_p=:
797 ;;
798
799 --errexit | -e )
800 at_debug_p=:
801 at_errexit_p=:
802 ;;
803
804 --verbose | -v )
805 at_verbose=; at_quiet=:
806 ;;
807
808 --trace | -x )
809 at_traceon='set -x'
810 at_trace_echo=echo
811 at_check_filter_trace=at_fn_filter_trace
812 ;;
813
814 [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
815 at_fn_validate_ranges at_option
816 as_fn_append at_groups "$at_option$as_nl"
817 ;;
818
819 # Ranges
820 [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
821 at_range_start=`echo $at_option |tr -d X-`
822 at_fn_validate_ranges at_range_start
823 at_range=`printf "%s\n" "$at_groups_all" | \
824 sed -ne '/^'$at_range_start'$/,$p'`
825 as_fn_append at_groups "$at_range$as_nl"
826 ;;
827
828 -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
829 at_range_end=`echo $at_option |tr -d X-`
830 at_fn_validate_ranges at_range_end
831 at_range=`printf "%s\n" "$at_groups_all" | \
832 sed -ne '1,/^'$at_range_end'$/p'`
833 as_fn_append at_groups "$at_range$as_nl"
834 ;;
835
836 [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
837 [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
838 [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
839 [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
840 [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
841 [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
842 at_range_start=`expr $at_option : '\(.*\)-'`
843 at_range_end=`expr $at_option : '.*-\(.*\)'`
844 if test $at_range_start -gt $at_range_end; then
845 at_tmp=$at_range_end
846 at_range_end=$at_range_start
847 at_range_start=$at_tmp
848 fi
849 at_fn_validate_ranges at_range_start at_range_end
850 at_range=`printf "%s\n" "$at_groups_all" | \
851 sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
852 as_fn_append at_groups "$at_range$as_nl"
853 ;;
854
855 # Directory selection.
856 --directory | -C )
857 at_prev=--directory
858 ;;
859 --directory=* )
860 at_change_dir=:
861 at_dir=$at_optarg
862 if test x- = "x$at_dir" ; then
863 at_dir=./-
864 fi
865 ;;
866
867 # Parallel execution.
868 --jobs | -j )
869 at_jobs=0
870 ;;
871 --jobs=* | -j[0-9]* )
872 if test -n "$at_optarg"; then
873 at_jobs=$at_optarg
874 else
875 at_jobs=`expr X$at_option : 'X-j\(.*\)'`
876 fi
877 case $at_jobs in *[!0-9]*)
878 at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
879 as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;;
880 esac
881 ;;
882
883 # Keywords.
884 --keywords | -k )
885 at_prev=--keywords
886 ;;
887 --keywords=* )
888 at_groups_selected=$at_help_all
889 at_save_IFS=$IFS
890 IFS=,
891 set X $at_optarg
892 shift
893 IFS=$at_save_IFS
894 for at_keyword
895 do
896 at_invert=
897 case $at_keyword in
898 '!'*)
899 at_invert="-v"
900 at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
901 ;;
902 esac
903 # It is on purpose that we match the test group titles too.
904 at_groups_selected=`printf "%s\n" "$at_groups_selected" |
905 grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
906 done
907 # Smash the keywords.
908 at_groups_selected=`printf "%s\n" "$at_groups_selected" | sed 's/;.*//'`
909 as_fn_append at_groups "$at_groups_selected$as_nl"
910 ;;
911 --recheck)
912 at_recheck=:
913 ;;
914
915 *=*)
916 at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
917 # Reject names that are not valid shell variable names.
918 case $at_envvar in
919 '' | [0-9]* | *[!_$as_cr_alnum]* )
920 as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
921 esac
922 at_value=`printf "%s\n" "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
923 # Export now, but save eval for later and for debug scripts.
924 export $at_envvar
925 as_fn_append at_debug_args " $at_envvar='$at_value'"
926 ;;
927
928 *) printf "%s\n" "$as_me: invalid option: $at_option" >&2
929 printf "%s\n" "Try \`$0 --help' for more information." >&2
930 exit 1
931 ;;
932 esac
933 done
934
935 # Verify our last option didn't require an argument
936 if test -n "$at_prev"
937 then :
938 as_fn_error $? "\`$at_prev' requires an argument"
939 fi
940
941 # The file containing the suite.
942 at_suite_log=$at_dir/$as_me.log
943
944 # Selected test groups.
945 if test -z "$at_groups$at_recheck"; then
946 at_groups=$at_groups_all
947 else
948 if test -n "$at_recheck" && test -r "$at_suite_log"; then
949 at_oldfails=`sed -n '
950 /^Failed tests:$/,/^Skipped tests:$/{
951 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
952 }
953 /^Unexpected passes:$/,/^## Detailed failed tests/{
954 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
955 }
956 /^## Detailed failed tests/q
957 ' "$at_suite_log"`
958 as_fn_append at_groups "$at_oldfails$as_nl"
959 fi
960 # Sort the tests, removing duplicates.
961 at_groups=`printf "%s\n" "$at_groups" | sort -nu | sed '/^$/d'`
962 fi
963
964 if test x"$at_color" = xalways \
965 || { test x"$at_color" = xauto && test -t 1; }; then
966 at_red=`printf '\033[0;31m'`
967 at_grn=`printf '\033[0;32m'`
968 at_lgn=`printf '\033[1;32m'`
969 at_blu=`printf '\033[1;34m'`
970 at_std=`printf '\033[m'`
971 else
972 at_red= at_grn= at_lgn= at_blu= at_std=
973 fi
974
975 # Help message.
976 if $at_help_p; then
977 cat <<_ATEOF || at_write_fail=1
978 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
979
980 Run all the tests, or the selected TESTS, given by numeric ranges, and
981 save a detailed log file. Upon failure, create debugging scripts.
982
983 Do not change environment variables directly. Instead, set them via
984 command line arguments. Set \`AUTOTEST_PATH' to select the executables
985 to exercise. Each relative directory is expanded as build and source
986 directories relative to the top level of this distribution.
987 E.g., from within the build directory /tmp/foo-1.0, invoking this:
988
989 $ $0 AUTOTEST_PATH=bin
990
991 is equivalent to the following, assuming the source directory is /src/foo-1.0:
992
993 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
994 _ATEOF
995 cat <<_ATEOF || at_write_fail=1
996
997 Operation modes:
998 -h, --help print the help message, then exit
999 -V, --version print version number, then exit
1000 -c, --clean remove all the files this test suite might create and exit
1001 -l, --list describes all the tests, or the selected TESTS
1002 _ATEOF
1003 cat <<_ATEOF || at_write_fail=1
1004
1005 Execution tuning:
1006 -C, --directory=DIR
1007 change to directory DIR before starting
1008 --color[=never|auto|always]
1009 enable colored test results on terminal, or always
1010 -j, --jobs[=N]
1011 Allow N jobs at once; infinite jobs with no arg (default 1)
1012 -k, --keywords=KEYWORDS
1013 select the tests matching all the comma-separated KEYWORDS
1014 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
1015 --recheck select all tests that failed or passed unexpectedly last time
1016 -e, --errexit abort as soon as a test fails; implies --debug
1017 -v, --verbose force more detailed output
1018 default for debugging scripts
1019 -d, --debug inhibit clean up and top-level logging
1020 default for debugging scripts
1021 -x, --trace enable tests shell tracing
1022 _ATEOF
1023 cat <<_ATEOF || at_write_fail=1
1024
1025 Report bugs to <[email protected]>.
1026 General help using GNU software: <https://www.gnu.org/gethelp/>.
1027 _ATEOF
1028 exit $at_write_fail
1029 fi
1030
1031 # List of tests.
1032 if $at_list_p; then
1033 cat <<_ATEOF || at_write_fail=1
1034 GNU Mailutils 3.20 test suite test groups:
1035
1036 NUM: FILE-NAME:LINE TEST-GROUP-NAME
1037 KEYWORDS
1038
1039 _ATEOF
1040 # Pass an empty line as separator between selected groups and help.
1041 printf "%s\n" "$at_groups$as_nl$as_nl$at_help_all" |
1042 awk 'NF == 1 && FS != ";" {
1043 selected[$ 1] = 1
1044 next
1045 }
1046 /^$/ { FS = ";" }
1047 NF > 0 {
1048 if (selected[$ 1]) {
1049 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1050 if ($ 4) {
1051 lmax = 79
1052 indent = " "
1053 line = indent
1054 len = length (line)
1055 n = split ($ 4, a, " ")
1056 for (i = 1; i <= n; i++) {
1057 l = length (a[i]) + 1
1058 if (i > 1 && len + l > lmax) {
1059 print line
1060 line = indent " " a[i]
1061 len = length (line)
1062 } else {
1063 line = line " " a[i]
1064 len += l
1065 }
1066 }
1067 if (n)
1068 print line
1069 }
1070 }
1071 }' || at_write_fail=1
1072 exit $at_write_fail
1073 fi
1074 if $at_version_p; then
1075 printf "%s\n" "$as_me (GNU Mailutils 3.20)" &&
1076 cat <<\_ATEOF || at_write_fail=1
1077
1078 Copyright (C) 2021 Free Software Foundation, Inc.
1079 This test suite is free software; the Free Software Foundation gives
1080 unlimited permission to copy, distribute and modify it.
1081 _ATEOF
1082 exit $at_write_fail
1083 fi
1084
1085 # Should we print banners? Yes if more than one test is run.
1086 case $at_groups in #(
1087 *$as_nl* )
1088 at_print_banners=: ;; #(
1089 * ) at_print_banners=false ;;
1090 esac
1091 # Text for banner N, set to a single space once printed.
1092 # Banner 1. testsuite.at:89
1093 # Category starts at test group 11.
1094 at_banner_text_1="APPEND"
1095 # Banner 2. testsuite.at:93
1096 # Category starts at test group 13.
1097 at_banner_text_2="LIST"
1098 # Banner 3. testsuite.at:96
1099 # Category starts at test group 42.
1100 at_banner_text_3="SEARCH"
1101 # Banner 4. testsuite.at:99
1102 # Category starts at test group 75.
1103 at_banner_text_4="FETCH"
1104 # Banner 5. testsuite.at:102
1105 # Category starts at test group 105.
1106 at_banner_text_5="IDEF Checks"
1107 # Banner 6. testsuite.at:106
1108 # Category starts at test group 107.
1109 at_banner_text_6="Client library"
1110
1111 # Take any -C into account.
1112 if $at_change_dir ; then
1113 test x != "x$at_dir" && cd "$at_dir" \
1114 || as_fn_error $? "unable to change directory"
1115 at_dir=`pwd`
1116 fi
1117
1118 # Load the config files for any default variable assignments.
1119 for at_file in atconfig atlocal
1120 do
1121 test -r $at_file || continue
1122 . ./$at_file || as_fn_error $? "invalid content: $at_file"
1123 done
1124
1125 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1126 : "${at_top_build_prefix=$at_top_builddir}"
1127
1128 # Perform any assignments requested during argument parsing.
1129 eval "$at_debug_args"
1130
1131 # atconfig delivers names relative to the directory the test suite is
1132 # in, but the groups themselves are run in testsuite-dir/group-dir.
1133 if test -n "$at_top_srcdir"; then
1134 builddir=../..
1135 for at_dir_var in srcdir top_srcdir top_build_prefix
1136 do
1137 eval at_val=\$at_$at_dir_var
1138 case $at_val in
1139 [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1140 *) at_prefix=../../ ;;
1141 esac
1142 eval "$at_dir_var=\$at_prefix\$at_val"
1143 done
1144 fi
1145
1146 ## -------------------- ##
1147 ## Directory structure. ##
1148 ## -------------------- ##
1149
1150 # This is the set of directories and files used by this script
1151 # (non-literals are capitalized):
1152 #
1153 # TESTSUITE - the testsuite
1154 # TESTSUITE.log - summarizes the complete testsuite run
1155 # TESTSUITE.dir/ - created during a run, remains after -d or failed test
1156 # + at-groups/ - during a run: status of all groups in run
1157 # | + NNN/ - during a run: meta-data about test group NNN
1158 # | | + check-line - location (source file and line) of current AT_CHECK
1159 # | | + status - exit status of current AT_CHECK
1160 # | | + stdout - stdout of current AT_CHECK
1161 # | | + stder1 - stderr, including trace
1162 # | | + stderr - stderr, with trace filtered out
1163 # | | + test-source - portion of testsuite that defines group
1164 # | | + times - timestamps for computing duration
1165 # | | + pass - created if group passed
1166 # | | + xpass - created if group xpassed
1167 # | | + fail - created if group failed
1168 # | | + xfail - created if group xfailed
1169 # | | + skip - created if group skipped
1170 # + at-stop - during a run: end the run if this file exists
1171 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1172 # + 0..NNN/ - created for each group NNN, remains after -d or failed test
1173 # | + TESTSUITE.log - summarizes the group results
1174 # | + ... - files created during the group
1175
1176 # The directory the whole suite works in.
1177 # Should be absolute to let the user `cd' at will.
1178 at_suite_dir=$at_dir/$as_me.dir
1179 # The file containing the suite ($at_dir might have changed since earlier).
1180 at_suite_log=$at_dir/$as_me.log
1181 # The directory containing helper files per test group.
1182 at_helper_dir=$at_suite_dir/at-groups
1183 # Stop file: if it exists, do not start new jobs.
1184 at_stop_file=$at_suite_dir/at-stop
1185 # The fifo used for the job dispatcher.
1186 at_job_fifo=$at_suite_dir/at-job-fifo
1187
1188 if $at_clean; then
1189 test -d "$at_suite_dir" &&
1190 find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1191 rm -f -r "$at_suite_dir" "$at_suite_log"
1192 exit $?
1193 fi
1194
1195 # Don't take risks: use only absolute directories in PATH.
1196 #
1197 # For stand-alone test suites (ie. atconfig was not found),
1198 # AUTOTEST_PATH is relative to `.'.
1199 #
1200 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1201 # of the package. Then expand it into build/src parts, since users
1202 # may create executables in both places.
1203 AUTOTEST_PATH=`printf "%s\n" "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1204 at_path=
1205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206 for as_dir in $AUTOTEST_PATH $PATH
1207 do
1208 IFS=$as_save_IFS
1209 case $as_dir in #(((
1210 '') as_dir=./ ;;
1211 */) ;;
1212 *) as_dir=$as_dir/ ;;
1213 esac
1214 test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
1215 case $as_dir in
1216 [\\/]* | ?:[\\/]* )
1217 as_fn_append at_path "$as_dir"
1218 ;;
1219 * )
1220 if test -z "$at_top_build_prefix"; then
1221 # Stand-alone test suite.
1222 as_fn_append at_path "$as_dir"
1223 else
1224 # Embedded test suite.
1225 as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR"
1226 as_fn_append at_path "$at_top_srcdir/$as_dir"
1227 fi
1228 ;;
1229 esac
1230 done
1231 IFS=$as_save_IFS
1232
1233
1234 # Now build and simplify PATH.
1235 #
1236 # There might be directories that don't exist, but don't redirect
1237 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1238 at_new_path=
1239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1240 for as_dir in $at_path
1241 do
1242 IFS=$as_save_IFS
1243 case $as_dir in #(((
1244 '') as_dir=./ ;;
1245 */) ;;
1246 *) as_dir=$as_dir/ ;;
1247 esac
1248 test -d "$as_dir" || continue
1249 case $as_dir in
1250 [\\/]* | ?:[\\/]* ) ;;
1251 * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1252 esac
1253 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1254 *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1255 $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1256 *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;;
1257 esac
1258 done
1259 IFS=$as_save_IFS
1260
1261 PATH=$at_new_path
1262 export PATH
1263
1264 # Setting up the FDs.
1265
1266
1267
1268 # 5 is the log file. Not to be overwritten if `-d'.
1269 if $at_debug_p; then
1270 at_suite_log=/dev/null
1271 else
1272 : >"$at_suite_log"
1273 fi
1274 exec 5>>"$at_suite_log"
1275
1276 # Banners and logs.
1277 printf "%s\n" "## ------------------------------ ##
1278 ## GNU Mailutils 3.20 test suite. ##
1279 ## ------------------------------ ##"
1280 {
1281 printf "%s\n" "## ------------------------------ ##
1282 ## GNU Mailutils 3.20 test suite. ##
1283 ## ------------------------------ ##"
1284 echo
1285
1286 printf "%s\n" "$as_me: command line was:"
1287 printf "%s\n" " \$ $0 $at_cli_args"
1288 echo
1289
1290 # If ChangeLog exists, list a few lines in case it might help determining
1291 # the exact version.
1292 if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
1293 printf "%s\n" "## ---------- ##
1294 ## ChangeLog. ##
1295 ## ---------- ##"
1296 echo
1297 sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
1298 echo
1299 fi
1300
1301 {
1302 cat <<_ASUNAME
1303 ## --------- ##
1304 ## Platform. ##
1305 ## --------- ##
1306
1307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1312
1313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1315
1316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1323
1324 _ASUNAME
1325
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327 for as_dir in $PATH
1328 do
1329 IFS=$as_save_IFS
1330 case $as_dir in #(((
1331 '') as_dir=./ ;;
1332 */) ;;
1333 *) as_dir=$as_dir/ ;;
1334 esac
1335 printf "%s\n" "PATH: $as_dir"
1336 done
1337 IFS=$as_save_IFS
1338
1339 }
1340 echo
1341
1342 # Contents of the config files.
1343 for at_file in atconfig atlocal
1344 do
1345 test -r $at_file || continue
1346 printf "%s\n" "$as_me: $at_file:"
1347 sed 's/^/| /' $at_file
1348 echo
1349 done
1350 } >&5
1351
1352 # This setting is needed on FreeBSD to ensure the LD_LIBRARY_PATH overrides
1353 # the DT_RPATH tag in ELF header. See
1354 # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27510
1355 # for details.
1356 LD_LIBRARY_PATH_RPATH=y
1357 export LD_LIBRARY_PATH_RPATH
1358
1359
1360 ## ------------------------- ##
1361 ## Autotest shell functions. ##
1362 ## ------------------------- ##
1363
1364 # at_fn_banner NUMBER
1365 # -------------------
1366 # Output banner NUMBER, provided the testsuite is running multiple groups and
1367 # this particular banner has not yet been printed.
1368 at_fn_banner ()
1369 {
1370 $at_print_banners || return 0
1371 eval at_banner_text=\$at_banner_text_$1
1372 test "x$at_banner_text" = "x " && return 0
1373 eval "at_banner_text_$1=\" \""
1374 if test -z "$at_banner_text"; then
1375 $at_first || echo
1376 else
1377 printf "%s\n" "$as_nl$at_banner_text$as_nl"
1378 fi
1379 } # at_fn_banner
1380
1381 # at_fn_check_prepare_notrace REASON LINE
1382 # ---------------------------------------
1383 # Perform AT_CHECK preparations for the command at LINE for an untraceable
1384 # command; REASON is the reason for disabling tracing.
1385 at_fn_check_prepare_notrace ()
1386 {
1387 $at_trace_echo "Not enabling shell tracing (command contains $1)"
1388 printf "%s\n" "$2" >"$at_check_line_file"
1389 at_check_trace=: at_check_filter=:
1390 : >"$at_stdout"; : >"$at_stderr"
1391 }
1392
1393 # at_fn_check_prepare_trace LINE
1394 # ------------------------------
1395 # Perform AT_CHECK preparations for the command at LINE for a traceable
1396 # command.
1397 at_fn_check_prepare_trace ()
1398 {
1399 printf "%s\n" "$1" >"$at_check_line_file"
1400 at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace
1401 : >"$at_stdout"; : >"$at_stderr"
1402 }
1403
1404 # at_fn_check_prepare_dynamic COMMAND LINE
1405 # ----------------------------------------
1406 # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
1407 # preparation function.
1408 at_fn_check_prepare_dynamic ()
1409 {
1410 case $1 in
1411 *$as_nl*)
1412 at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
1413 *)
1414 at_fn_check_prepare_trace "$2" ;;
1415 esac
1416 }
1417
1418 # at_fn_filter_trace
1419 # ------------------
1420 # Remove the lines in the file "$at_stderr" generated by "set -x" and print
1421 # them to stderr.
1422 at_fn_filter_trace ()
1423 {
1424 mv "$at_stderr" "$at_stder1"
1425 grep '^ *+' "$at_stder1" >&2
1426 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1427 }
1428
1429 # at_fn_log_failure FILE-LIST
1430 # ---------------------------
1431 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1432 # with a failure exit code.
1433 at_fn_log_failure ()
1434 {
1435 for file
1436 do printf "%s\n" "$file:"; sed 's/^/> /' "$file"; done
1437 echo 1 > "$at_status_file"
1438 exit 1
1439 }
1440
1441 # at_fn_check_skip EXIT-CODE LINE
1442 # -------------------------------
1443 # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
1444 # the test group subshell with that same exit code. Use LINE in any report
1445 # about test failure.
1446 at_fn_check_skip ()
1447 {
1448 case $1 in
1449 99) echo 99 > "$at_status_file"; at_failed=:
1450 printf "%s\n" "$2: hard failure"; exit 99;;
1451 77) echo 77 > "$at_status_file"; exit 77;;
1452 esac
1453 }
1454
1455 # at_fn_check_status EXPECTED EXIT-CODE LINE
1456 # ------------------------------------------
1457 # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
1458 # Otherwise, if it is 77 or 99, exit the test group subshell with that same
1459 # exit code; if it is anything else print an error message referring to LINE,
1460 # and fail the test.
1461 at_fn_check_status ()
1462 {
1463 case $2 in
1464 $1 ) ;;
1465 77) echo 77 > "$at_status_file"; exit 77;;
1466 99) echo 99 > "$at_status_file"; at_failed=:
1467 printf "%s\n" "$3: hard failure"; exit 99;;
1468 *) printf "%s\n" "$3: exit code was $2, expected $1"
1469 at_failed=:;;
1470 esac
1471 }
1472
1473 # at_fn_diff_devnull FILE
1474 # -----------------------
1475 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
1476 # invocations.
1477 at_fn_diff_devnull ()
1478 {
1479 test -s "$1" || return 0
1480 $at_diff "$at_devnull" "$1"
1481 }
1482
1483 # at_fn_test NUMBER
1484 # -----------------
1485 # Parse out test NUMBER from the tail of this file.
1486 at_fn_test ()
1487 {
1488 eval at_sed=\$at_sed$1
1489 sed "$at_sed" "$at_myself" > "$at_test_source"
1490 }
1491
1492 # at_fn_create_debugging_script
1493 # -----------------------------
1494 # Create the debugging script $at_group_dir/run which will reproduce the
1495 # current test group.
1496 at_fn_create_debugging_script ()
1497 {
1498 {
1499 echo "#! /bin/sh" &&
1500 echo 'test ${ZSH_VERSION+y} && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1501 printf "%s\n" "cd '$at_dir'" &&
1502 printf "%s\n" "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1503 echo 'exit 1'
1504 } >"$at_group_dir/run" &&
1505 chmod +x "$at_group_dir/run"
1506 }
1507
1508 ## -------------------------------- ##
1509 ## End of autotest shell functions. ##
1510 ## -------------------------------- ##
1511 {
1512 printf "%s\n" "## ---------------- ##
1513 ## Tested programs. ##
1514 ## ---------------- ##"
1515 echo
1516 } >&5
1517
1518 # Report what programs are being tested.
1519 for at_program in : `eval echo $at_tested`
1520 do
1521 case $at_program in #(
1522 :) :
1523 continue ;; #(
1524 [\\/]* | ?:[\\/]*) :
1525 at_program_=$at_program ;; #(
1526 *) :
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530 IFS=$as_save_IFS
1531 case $as_dir in #(((
1532 '') as_dir=./ ;;
1533 */) ;;
1534 *) as_dir=$as_dir/ ;;
1535 esac
1536 test -f "$as_dir$at_program" && break
1537 done
1538 IFS=$as_save_IFS
1539
1540 at_program_=$as_dir$at_program ;;
1541 esac
1542
1543 if test -f "$at_program_"; then
1544 {
1545 printf "%s\n" "$at_srcdir/testsuite.at:74: $at_program_ --version"
1546 "$at_program_" --version </dev/null
1547 echo
1548 } >&5 2>&1
1549 else
1550 as_fn_error $? "cannot find $at_program" "$LINENO" 5
1551 fi
1552 done
1553
1554 {
1555 printf "%s\n" "## ------------------ ##
1556 ## Running the tests. ##
1557 ## ------------------ ##"
1558 } >&5
1559
1560 at_start_date=`date`
1561 at_start_time=`date +%s 2>/dev/null`
1562 printf "%s\n" "$as_me: starting at: $at_start_date" >&5
1563
1564 # Create the master directory if it doesn't already exist.
1565 as_dir="$at_suite_dir"; as_fn_mkdir_p ||
1566 as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5
1567
1568 # Can we diff with `/dev/null'? DU 5.0 refuses.
1569 if diff /dev/null /dev/null >/dev/null 2>&1; then
1570 at_devnull=/dev/null
1571 else
1572 at_devnull=$at_suite_dir/devnull
1573 >"$at_devnull"
1574 fi
1575
1576 # Use `diff -u' when possible.
1577 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1578 then
1579 at_diff='diff -u'
1580 else
1581 at_diff=diff
1582 fi
1583
1584 # Get the last needed group.
1585 for at_group in : $at_groups; do :; done
1586
1587 # Extract the start and end lines of each test group at the tail
1588 # of this file
1589 awk '
1590 BEGIN { FS="" }
1591 /^#AT_START_/ {
1592 start = NR
1593 }
1594 /^#AT_STOP_/ {
1595 test = substr ($ 0, 10)
1596 print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1597 if (test == "'"$at_group"'") exit
1598 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1599 . "$at_suite_dir/at-source-lines" ||
1600 as_fn_error $? "cannot create test line number cache" "$LINENO" 5
1601 rm -f "$at_suite_dir/at-source-lines"
1602
1603 # Set number of jobs for `-j'; avoid more jobs than test groups.
1604 set X $at_groups; shift; at_max_jobs=$#
1605 if test $at_max_jobs -eq 0; then
1606 at_jobs=1
1607 fi
1608 if test $at_jobs -ne 1 &&
1609 { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
1610 at_jobs=$at_max_jobs
1611 fi
1612
1613 # If parallel mode, don't output banners, don't split summary lines.
1614 if test $at_jobs -ne 1; then
1615 at_print_banners=false
1616 at_quiet=:
1617 fi
1618
1619 # Set up helper dirs.
1620 rm -rf "$at_helper_dir" &&
1621 mkdir "$at_helper_dir" &&
1622 cd "$at_helper_dir" &&
1623 { test -z "$at_groups" || mkdir $at_groups; } ||
1624 as_fn_error $? "testsuite directory setup failed" "$LINENO" 5
1625
1626 # Functions for running a test group. We leave the actual
1627 # test group execution outside of a shell function in order
1628 # to avoid hitting zsh 4.x exit status bugs.
1629
1630 # at_fn_group_prepare
1631 # -------------------
1632 # Prepare for running a test group.
1633 at_fn_group_prepare ()
1634 {
1635 # The directory for additional per-group helper files.
1636 at_job_dir=$at_helper_dir/$at_group
1637 # The file containing the location of the last AT_CHECK.
1638 at_check_line_file=$at_job_dir/check-line
1639 # The file containing the exit status of the last command.
1640 at_status_file=$at_job_dir/status
1641 # The files containing the output of the tested commands.
1642 at_stdout=$at_job_dir/stdout
1643 at_stder1=$at_job_dir/stder1
1644 at_stderr=$at_job_dir/stderr
1645 # The file containing the code for a test group.
1646 at_test_source=$at_job_dir/test-source
1647 # The file containing dates.
1648 at_times_file=$at_job_dir/times
1649
1650 # Be sure to come back to the top test directory.
1651 cd "$at_suite_dir"
1652
1653 # Clearly separate the test groups when verbose.
1654 $at_first || $at_verbose echo
1655
1656 at_group_normalized=$at_group
1657
1658 eval 'while :; do
1659 case $at_group_normalized in #(
1660 '"$at_format"'*) break;;
1661 esac
1662 at_group_normalized=0$at_group_normalized
1663 done'
1664
1665
1666 # Create a fresh directory for the next test group, and enter.
1667 # If one already exists, the user may have invoked ./run from
1668 # within that directory; we remove the contents, but not the
1669 # directory itself, so that we aren't pulling the rug out from
1670 # under the shell's notion of the current directory.
1671 at_group_dir=$at_suite_dir/$at_group_normalized
1672 at_group_log=$at_group_dir/$as_me.log
1673 if test -d "$at_group_dir"
1674 then
1675 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \;
1676 rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??*
1677 fi ||
1678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
1679 printf "%s\n" "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
1680 # Be tolerant if the above `rm' was not able to remove the directory.
1681 as_dir="$at_group_dir"; as_fn_mkdir_p
1682
1683 echo 0 > "$at_status_file"
1684
1685 # In verbose mode, append to the log file *and* show on
1686 # the standard output; in quiet mode only write to the log.
1687 if test -z "$at_verbose"; then
1688 at_tee_pipe='tee -a "$at_group_log"'
1689 else
1690 at_tee_pipe='cat >> "$at_group_log"'
1691 fi
1692 }
1693
1694 # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
1695 # -------------------------------------------------
1696 # Declare the test group ORDINAL, located at LINE with group description DESC,
1697 # and residing under BANNER. Use PAD to align the status column.
1698 at_fn_group_banner ()
1699 {
1700 at_setup_line="$2"
1701 test -n "$5" && at_fn_banner $5
1702 at_desc="$3"
1703 case $1 in
1704 [0-9]) at_desc_line=" $1: ";;
1705 [0-9][0-9]) at_desc_line=" $1: " ;;
1706 *) at_desc_line="$1: " ;;
1707 esac
1708 as_fn_append at_desc_line "$3$4"
1709 $at_quiet printf %s "$at_desc_line"
1710 echo "# -*- compilation -*-" >> "$at_group_log"
1711 }
1712
1713 # at_fn_group_postprocess
1714 # -----------------------
1715 # Perform cleanup after running a test group.
1716 at_fn_group_postprocess ()
1717 {
1718 # Be sure to come back to the suite directory, in particular
1719 # since below we might `rm' the group directory we are in currently.
1720 cd "$at_suite_dir"
1721
1722 if test ! -f "$at_check_line_file"; then
1723 sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1724 A failure happened in a test group before any test could be
1725 run. This means that test suite is improperly designed. Please
1726 report this failure to <[email protected]>.
1727 _ATEOF
1728 printf "%s\n" "$at_setup_line" >"$at_check_line_file"
1729 at_status=99
1730 fi
1731 $at_verbose printf %s "$at_group. $at_setup_line: "
1732 printf %s "$at_group. $at_setup_line: " >> "$at_group_log"
1733 case $at_xfail:$at_status in
1734 yes:0)
1735 at_msg="UNEXPECTED PASS"
1736 at_res=xpass
1737 at_errexit=$at_errexit_p
1738 at_color=$at_red
1739 ;;
1740 no:0)
1741 at_msg="ok"
1742 at_res=pass
1743 at_errexit=false
1744 at_color=$at_grn
1745 ;;
1746 *:77)
1747 at_msg='skipped ('`cat "$at_check_line_file"`')'
1748 at_res=skip
1749 at_errexit=false
1750 at_color=$at_blu
1751 ;;
1752 no:* | *:99)
1753 at_msg='FAILED ('`cat "$at_check_line_file"`')'
1754 at_res=fail
1755 at_errexit=$at_errexit_p
1756 at_color=$at_red
1757 ;;
1758 yes:*)
1759 at_msg='expected failure ('`cat "$at_check_line_file"`')'
1760 at_res=xfail
1761 at_errexit=false
1762 at_color=$at_lgn
1763 ;;
1764 esac
1765 echo "$at_res" > "$at_job_dir/$at_res"
1766 # In parallel mode, output the summary line only afterwards.
1767 if test $at_jobs -ne 1 && test -n "$at_verbose"; then
1768 printf "%s\n" "$at_desc_line $at_color$at_msg$at_std"
1769 else
1770 # Make sure there is a separator even with long titles.
1771 printf "%s\n" " $at_color$at_msg$at_std"
1772 fi
1773 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1774 case $at_status in
1775 0|77)
1776 # $at_times_file is only available if the group succeeded.
1777 # We're not including the group log, so the success message
1778 # is written in the global log separately. But we also
1779 # write to the group log in case they're using -d.
1780 if test -f "$at_times_file"; then
1781 at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')'
1782 rm -f "$at_times_file"
1783 fi
1784 printf "%s\n" "$at_log_msg" >> "$at_group_log"
1785 printf "%s\n" "$at_log_msg" >&5
1786
1787 # Cleanup the group directory, unless the user wants the files
1788 # or the success was unexpected.
1789 if $at_debug_p || test $at_res = xpass; then
1790 at_fn_create_debugging_script
1791 if test $at_res = xpass && $at_errexit; then
1792 echo stop > "$at_stop_file"
1793 fi
1794 else
1795 if test -d "$at_group_dir"; then
1796 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1797 rm -fr "$at_group_dir"
1798 fi
1799 rm -f "$at_test_source"
1800 fi
1801 ;;
1802 *)
1803 # Upon failure, include the log into the testsuite's global
1804 # log. The failure message is written in the group log. It
1805 # is later included in the global log.
1806 printf "%s\n" "$at_log_msg" >> "$at_group_log"
1807
1808 # Upon failure, keep the group directory for autopsy, and create
1809 # the debugging script. With -e, do not start any further tests.
1810 at_fn_create_debugging_script
1811 if $at_errexit; then
1812 echo stop > "$at_stop_file"
1813 fi
1814 ;;
1815 esac
1816 }
1817
1818
1819 ## ------------ ##
1820 ## Driver loop. ##
1821 ## ------------ ##
1822
1823
1824 if (set -m && set +m && set +b) >/dev/null 2>&1; then
1825 set +b
1826 at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
1827 else
1828 at_job_control_on=: at_job_control_off=: at_job_group=
1829 fi
1830
1831 for at_signal in 1 2 15; do
1832 trap 'set +x; set +e
1833 $at_job_control_off
1834 at_signal='"$at_signal"'
1835 echo stop > "$at_stop_file"
1836 trap "" $at_signal
1837 at_pgids=
1838 for at_pgid in `jobs -p 2>/dev/null`; do
1839 at_pgids="$at_pgids $at_job_group$at_pgid"
1840 done
1841 test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
1842 wait
1843 if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
1844 echo >&2
1845 fi
1846 at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
1847 set x $at_signame
1848 test 0 -gt 2 && at_signame=$at_signal
1849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
1850 printf "%s\n" "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
1851 as_fn_arith 128 + $at_signal && exit_status=$as_val
1852 as_fn_exit $exit_status' $at_signal
1853 done
1854
1855 rm -f "$at_stop_file"
1856 at_first=:
1857
1858 if test $at_jobs -ne 1 &&
1859 rm -f "$at_job_fifo" &&
1860 test -n "$at_job_group" &&
1861 ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null
1862 then
1863 # FIFO job dispatcher.
1864
1865 trap 'at_pids=
1866 for at_pid in `jobs -p`; do
1867 at_pids="$at_pids $at_job_group$at_pid"
1868 done
1869 if test -n "$at_pids"; then
1870 at_sig=TSTP
1871 test ${TMOUT+y} && at_sig=STOP
1872 kill -$at_sig $at_pids 2>/dev/null
1873 fi
1874 kill -STOP $$
1875 test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
1876
1877 echo
1878 # Turn jobs into a list of numbers, starting from 1.
1879 at_joblist=`printf "%s\n" "$at_groups" | sed -n 1,${at_jobs}p`
1880
1881 set X $at_joblist
1882 shift
1883 for at_group in $at_groups; do
1884 $at_job_control_on 2>/dev/null
1885 (
1886 # Start one test group.
1887 $at_job_control_off
1888 if $at_first; then
1889 exec 7>"$at_job_fifo"
1890 else
1891 exec 6<&-
1892 fi
1893 trap 'set +x; set +e
1894 trap "" PIPE
1895 echo stop > "$at_stop_file"
1896 echo >&7
1897 as_fn_exit 141' PIPE
1898 at_fn_group_prepare
1899 if cd "$at_group_dir" &&
1900 at_fn_test $at_group &&
1901 . "$at_test_source"
1902 then :; else
1903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
1904 printf "%s\n" "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1905 at_failed=:
1906 fi
1907 at_fn_group_postprocess
1908 echo >&7
1909 ) &
1910 $at_job_control_off
1911 if $at_first; then
1912 at_first=false
1913 exec 6<"$at_job_fifo" 7>"$at_job_fifo"
1914 fi
1915 shift # Consume one token.
1916 if test $# -gt 0; then :; else
1917 read at_token <&6 || break
1918 set x $*
1919 fi
1920 test -f "$at_stop_file" && break
1921 done
1922 exec 7>&-
1923 # Read back the remaining ($at_jobs - 1) tokens.
1924 set X $at_joblist
1925 shift
1926 if test $# -gt 0; then
1927 shift
1928 for at_job
1929 do
1930 read at_token
1931 done <&6
1932 fi
1933 exec 6<&-
1934 wait
1935 else
1936 # Run serially, avoid forks and other potential surprises.
1937 for at_group in $at_groups; do
1938 at_fn_group_prepare
1939 if cd "$at_group_dir" &&
1940 at_fn_test $at_group &&
1941 . "$at_test_source"; then :; else
1942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
1943 printf "%s\n" "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1944 at_failed=:
1945 fi
1946 at_fn_group_postprocess
1947 test -f "$at_stop_file" && break
1948 at_first=false
1949 done
1950 fi
1951
1952 # Wrap up the test suite with summary statistics.
1953 cd "$at_helper_dir"
1954
1955 # Use ?..???? when the list must remain sorted, the faster * otherwise.
1956 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
1957 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
1958 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
1959 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
1960 echo $f; done | sed '/?/d; s,/xpass,,'`
1961 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
1962 echo $f; done | sed '/?/d; s,/fail,,'`
1963
1964 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
1965 shift; at_group_count=$#
1966 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
1967 set X $at_xfail_list; shift; at_xfail_count=$#
1968 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
1969 set X $at_skip_list; shift; at_skip_count=$#
1970
1971 as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val
1972 as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val
1973 as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val
1974
1975 # Back to the top directory.
1976 cd "$at_dir"
1977 rm -rf "$at_helper_dir"
1978
1979 # Compute the duration of the suite.
1980 at_stop_date=`date`
1981 at_stop_time=`date +%s 2>/dev/null`
1982 printf "%s\n" "$as_me: ending at: $at_stop_date" >&5
1983 case $at_start_time,$at_stop_time in
1984 [0-9]*,[0-9]*)
1985 as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val
1986 as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val
1987 as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val
1988 as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val
1989 as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val
1990 at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
1991 printf "%s\n" "$as_me: test suite duration: $at_duration" >&5
1992 ;;
1993 esac
1994
1995 echo
1996 printf "%s\n" "## ------------- ##
1997 ## Test results. ##
1998 ## ------------- ##"
1999 echo
2000 {
2001 echo
2002 printf "%s\n" "## ------------- ##
2003 ## Test results. ##
2004 ## ------------- ##"
2005 echo
2006 } >&5
2007
2008 if test $at_run_count = 1; then
2009 at_result="1 test"
2010 at_were=was
2011 else
2012 at_result="$at_run_count tests"
2013 at_were=were
2014 fi
2015 if $at_errexit_p && test $at_unexpected_count != 0; then
2016 if test $at_xpass_count = 1; then
2017 at_result="$at_result $at_were run, one passed"
2018 else
2019 at_result="$at_result $at_were run, one failed"
2020 fi
2021 at_result="$at_result unexpectedly and inhibited subsequent tests."
2022 at_color=$at_red
2023 else
2024 # Don't you just love exponential explosion of the number of cases?
2025 at_color=$at_red
2026 case $at_xpass_count:$at_fail_count:$at_xfail_count in
2027 # So far, so good.
2028 0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;;
2029 0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;;
2030
2031 # Some unexpected failures
2032 0:*:0) at_result="$at_result $at_were run,
2033 $at_fail_count failed unexpectedly." ;;
2034
2035 # Some failures, both expected and unexpected
2036 0:*:1) at_result="$at_result $at_were run,
2037 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2038 0:*:*) at_result="$at_result $at_were run,
2039 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2040
2041 # No unexpected failures, but some xpasses
2042 *:0:*) at_result="$at_result $at_were run,
2043 $at_xpass_count passed unexpectedly." ;;
2044
2045 # No expected failures, but failures and xpasses
2046 *:1:0) at_result="$at_result $at_were run,
2047 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
2048 *:*:0) at_result="$at_result $at_were run,
2049 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
2050
2051 # All of them.
2052 *:*:1) at_result="$at_result $at_were run,
2053 $at_xpass_count passed unexpectedly,
2054 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2055 *:*:*) at_result="$at_result $at_were run,
2056 $at_xpass_count passed unexpectedly,
2057 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2058 esac
2059
2060 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
2061 at_result="All $at_result"
2062 fi
2063 fi
2064
2065 # Now put skips in the mix.
2066 case $at_skip_count in
2067 0) ;;
2068 1) at_result="$at_result
2069 1 test was skipped." ;;
2070 *) at_result="$at_result
2071 $at_skip_count tests were skipped." ;;
2072 esac
2073
2074 if test $at_unexpected_count = 0; then
2075 echo "$at_color$at_result$at_std"
2076 echo "$at_result" >&5
2077 else
2078 echo "${at_color}ERROR: $at_result$at_std" >&2
2079 echo "ERROR: $at_result" >&5
2080 {
2081 echo
2082 printf "%s\n" "## ------------------------ ##
2083 ## Summary of the failures. ##
2084 ## ------------------------ ##"
2085
2086 # Summary of failed and skipped tests.
2087 if test $at_fail_count != 0; then
2088 echo "Failed tests:"
2089 $SHELL "$at_myself" $at_fail_list --list
2090 echo
2091 fi
2092 if test $at_skip_count != 0; then
2093 echo "Skipped tests:"
2094 $SHELL "$at_myself" $at_skip_list --list
2095 echo
2096 fi
2097 if test $at_xpass_count != 0; then
2098 echo "Unexpected passes:"
2099 $SHELL "$at_myself" $at_xpass_list --list
2100 echo
2101 fi
2102 if test $at_fail_count != 0; then
2103 printf "%s\n" "## ---------------------- ##
2104 ## Detailed failed tests. ##
2105 ## ---------------------- ##"
2106 echo
2107 for at_group in $at_fail_list
2108 do
2109 at_group_normalized=$at_group
2110
2111 eval 'while :; do
2112 case $at_group_normalized in #(
2113 '"$at_format"'*) break;;
2114 esac
2115 at_group_normalized=0$at_group_normalized
2116 done'
2117
2118 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
2119 echo
2120 done
2121 echo
2122 fi
2123 if test -n "$at_top_srcdir"; then
2124 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2125 ## ${at_top_build_prefix}config.log ##
2126 _ASBOX
2127 sed 's/^/| /' ${at_top_build_prefix}config.log
2128 echo
2129 fi
2130 } >&5
2131
2132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2133 ## $as_me.log was created. ##
2134 _ASBOX
2135
2136 echo
2137 if $at_debug_p; then
2138 at_msg='per-test log files'
2139 else
2140 at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
2141 fi
2142 at_msg1a=${at_xpass_list:+', '}
2143 at_msg1=$at_fail_list${at_fail_list:+" failed$at_msg1a"}
2144 at_msg2=$at_xpass_list${at_xpass_list:+" passed unexpectedly"}
2145
2146 printf "%s\n" "Please send $at_msg and all information you think might help:
2147
2148 To: <[email protected]>
2149 Subject: [GNU Mailutils 3.20] $as_me: $at_msg1$at_msg2
2150
2151 You may investigate any problem if you feel able to do so, in which
2152 case the test suite provides a good starting point. Its output may
2153 be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
2154 "
2155 exit 1
2156 fi
2157
2158 exit 0
2159
2160 ## ------------- ##
2161 ## Actual tests. ##
2162 ## ------------- ##
2163 #AT_START_1
2164 at_fn_group_banner 1 'testsuite.at:76' \
2165 "imap4d version" " "
2166 at_xfail=no
2167 (
2168 printf "%s\n" "1. $at_setup_line: testing $at_desc ..."
2169 $at_traceon
2170
2171
2172 { set +x
2173 printf "%s\n" "$at_srcdir/testsuite.at:76: imap4d --version | sed '1{s/-[0-9][0-9]* //;s/ *\\[.*\\]//;q;}' "
2174 at_fn_check_prepare_notrace 'a shell pipeline' "testsuite.at:76"
2175 ( $at_check_trace; imap4d --version | sed '1{s/-[0-9][0-9]* //;s/ *\[.*\]//;q;}'
2176 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2177 at_status=$? at_failed=false
2178 $at_check_filter
2179 at_fn_diff_devnull "$at_stderr" || at_failed=:
2180 echo >>"$at_stdout"; printf "%s\n" "imap4d (GNU Mailutils) 3.20
2181 " | \
2182 $at_diff - "$at_stdout" || at_failed=:
2183 at_fn_check_status 0 $at_status "$at_srcdir/testsuite.at:76"
2184 $at_failed && at_fn_log_failure
2185 $at_traceon; }
2186
2187
2188 set +x
2189 $at_times_p && times >"$at_times_file"
2190 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2191 read at_status <"$at_status_file"
2192 #AT_STOP_1
2193 #AT_START_2
2194 at_fn_group_banner 2 'anystate.at:17' \
2195 "Non-authenticated state" " "
2196 at_xfail=no
2197 (
2198 printf "%s\n" "2. $at_setup_line: testing $at_desc ..."
2199 $at_traceon
2200
2201
2202
2203
2204
2205
2206 cwd=`pwd`
2207
2208 { set +x
2209 printf "%s\n" "$at_srcdir/anystate.at:22:
2210
2211 test -d \$HOME || exit 77
2212 make_config
2213 cat >input <<'_ATEOF'
2214 1 CAPABILITY
2215 2 NOOP
2216 3 NAMESPACE
2217 X LOGOUT
2218 _ATEOF
2219
2220 imap4d --no-config --config-file=imap4d.conf --test < input | tr -d '\\r' | remove_uidvalidity
2221 "
2222 at_fn_check_prepare_notrace 'an embedded newline' "anystate.at:22"
2223 ( $at_check_trace;
2224
2225 test -d $HOME || exit 77
2226 make_config
2227 cat >input <<'_ATEOF'
2228 1 CAPABILITY
2229 2 NOOP
2230 3 NAMESPACE
2231 X LOGOUT
2232 _ATEOF
2233
2234 imap4d --no-config --config-file=imap4d.conf --test < input | tr -d '\r' | remove_uidvalidity
2235
2236 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2237 at_status=$? at_failed=false
2238 $at_check_filter
2239 at_fn_diff_devnull "$at_stderr" || at_failed=:
2240 echo >>"$at_stdout"; printf "%s\n" "* OK IMAP4rev1 Test mode
2241 * CAPABILITY IMAP4rev1 NAMESPACE ID IDLE LITERAL+ UNSELECT
2242 1 OK CAPABILITY Completed
2243 2 OK NOOP Completed
2244 3 BAD NAMESPACE Wrong state
2245 * BYE Session terminating.
2246 X OK LOGOUT Completed
2247 " | \
2248 $at_diff - "$at_stdout" || at_failed=:
2249 at_fn_check_status 0 $at_status "$at_srcdir/anystate.at:22"
2250 $at_failed && at_fn_log_failure
2251 $at_traceon; }
2252
2253
2254
2255
2256
2257 set +x
2258 $at_times_p && times >"$at_times_file"
2259 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2260 read at_status <"$at_status_file"
2261 #AT_STOP_2
2262 #AT_START_3
2263 at_fn_group_banner 3 'id.at:17' \
2264 "ID command" " "
2265 at_xfail=no
2266 (
2267 printf "%s\n" "3. $at_setup_line: testing $at_desc ..."
2268 $at_traceon
2269
2270
2271
2272
2273
2274
2275 cwd=`pwd`
2276
2277 { set +x
2278 printf "%s\n" "$at_srcdir/id.at:22:
2279
2280 test -d \$HOME || exit 77
2281 make_config
2282 cat >input <<'_ATEOF'
2283 1 ID NIL
2284 X LOGOUT
2285 _ATEOF
2286
2287 imap4d --no-config --config-file=imap4d.conf --test < input | tr -d '\\r' | remove_uidvalidity
2288 "
2289 at_fn_check_prepare_notrace 'an embedded newline' "id.at:22"
2290 ( $at_check_trace;
2291
2292 test -d $HOME || exit 77
2293 make_config
2294 cat >input <<'_ATEOF'
2295 1 ID NIL
2296 X LOGOUT
2297 _ATEOF
2298
2299 imap4d --no-config --config-file=imap4d.conf --test < input | tr -d '\r' | remove_uidvalidity
2300
2301 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2302 at_status=$? at_failed=false
2303 $at_check_filter
2304 at_fn_diff_devnull "$at_stderr" || at_failed=:
2305 echo >>"$at_stdout"; printf "%s\n" "* OK IMAP4rev1 Test mode
2306 1 BAD ID Wrong state
2307 * BYE Session terminating.
2308 X OK LOGOUT Completed
2309 " | \
2310 $at_diff - "$at_stdout" || at_failed=:
2311 at_fn_check_status 0 $at_status "$at_srcdir/id.at:22"
2312 $at_failed && at_fn_log_failure
2313 $at_traceon; }
2314
2315
2316
2317
2318
2319
2320 cwd=`pwd`
2321
2322 { set +x
2323 printf "%s\n" "$at_srcdir/id.at:34:
2324
2325 test -d \$HOME || exit 77
2326 make_config
2327 cat >input <<'_ATEOF'
2328 1 ID NIL
2329 X LOGOUT
2330 _ATEOF
2331
2332 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_uidvalidity
2333 "
2334 at_fn_check_prepare_notrace 'an embedded newline' "id.at:34"
2335 ( $at_check_trace;
2336
2337 test -d $HOME || exit 77
2338 make_config
2339 cat >input <<'_ATEOF'
2340 1 ID NIL
2341 X LOGOUT
2342 _ATEOF
2343
2344 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_uidvalidity
2345
2346 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2347 at_status=$? at_failed=false
2348 $at_check_filter
2349 at_fn_diff_devnull "$at_stderr" || at_failed=:
2350 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
2351 1 OK ID Completed
2352 * BYE Session terminating.
2353 X OK LOGOUT Completed
2354 " | \
2355 $at_diff - "$at_stdout" || at_failed=:
2356 at_fn_check_status 0 $at_status "$at_srcdir/id.at:34"
2357 $at_failed && at_fn_log_failure
2358 $at_traceon; }
2359
2360
2361
2362 set +x
2363 $at_times_p && times >"$at_times_file"
2364 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2365 read at_status <"$at_status_file"
2366 #AT_STOP_3
2367 #AT_START_4
2368 at_fn_group_banner 4 'select.at:17' \
2369 "select" " "
2370 at_xfail=no
2371 (
2372 printf "%s\n" "4. $at_setup_line: testing $at_desc ..."
2373 $at_traceon
2374
2375
2376
2377 cwd=`pwd`
2378
2379
2380
2381
2382
2383 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
2384 if test -e INBOX/search.mbox; then
2385
2386 # First, set all modes to +w
2387 find INBOX/search.mbox | xargs chmod +w
2388 # Then, remove executable bit from regular files
2389 find INBOX/search.mbox -type f | xargs chmod -x
2390
2391 else
2392
2393 # First, set all modes to +w
2394 find INBOX | xargs chmod +w
2395 # Then, remove executable bit from regular files
2396 find INBOX -type f | xargs chmod -x
2397
2398 fi
2399
2400
2401
2402
2403 { set +x
2404 printf "%s\n" "$at_srcdir/select.at:19:
2405
2406 test -d \$HOME || exit 77
2407 make_config
2408 cat >input <<'_ATEOF'
2409 1 SELECT INBOX
2410 X LOGOUT
2411 _ATEOF
2412
2413 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_uidvalidity
2414 "
2415 at_fn_check_prepare_notrace 'an embedded newline' "select.at:19"
2416 ( $at_check_trace;
2417
2418 test -d $HOME || exit 77
2419 make_config
2420 cat >input <<'_ATEOF'
2421 1 SELECT INBOX
2422 X LOGOUT
2423 _ATEOF
2424
2425 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_uidvalidity
2426
2427 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2428 at_status=$? at_failed=false
2429 $at_check_filter
2430 at_fn_diff_devnull "$at_stderr" || at_failed=:
2431 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
2432 * 8 EXISTS
2433 * 5 RECENT
2434 * OK [UIDNEXT 9] Predicted next uid
2435 * OK [UNSEEN 4] first unseen message
2436 * FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)
2437 * OK [PERMANENTFLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)] Permanent flags
2438 1 OK [READ-WRITE] SELECT Completed
2439 * BYE Session terminating.
2440 X OK LOGOUT Completed
2441 " | \
2442 $at_diff - "$at_stdout" || at_failed=:
2443 at_fn_check_status 0 $at_status "$at_srcdir/select.at:19"
2444 $at_failed && at_fn_log_failure
2445 $at_traceon; }
2446
2447
2448
2449 set +x
2450 $at_times_p && times >"$at_times_file"
2451 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2452 read at_status <"$at_status_file"
2453 #AT_STOP_4
2454 #AT_START_5
2455 at_fn_group_banner 5 'examine.at:17' \
2456 "examine" " "
2457 at_xfail=no
2458 (
2459 printf "%s\n" "5. $at_setup_line: testing $at_desc ..."
2460 $at_traceon
2461
2462
2463
2464 cwd=`pwd`
2465
2466
2467
2468
2469
2470 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
2471 if test -e INBOX/search.mbox; then
2472
2473 # First, set all modes to +w
2474 find INBOX/search.mbox | xargs chmod +w
2475 # Then, remove executable bit from regular files
2476 find INBOX/search.mbox -type f | xargs chmod -x
2477
2478 else
2479
2480 # First, set all modes to +w
2481 find INBOX | xargs chmod +w
2482 # Then, remove executable bit from regular files
2483 find INBOX -type f | xargs chmod -x
2484
2485 fi
2486
2487
2488
2489
2490 { set +x
2491 printf "%s\n" "$at_srcdir/examine.at:19:
2492
2493 test -d \$HOME || exit 77
2494 make_config
2495 cat >input <<'_ATEOF'
2496 1 EXAMINE INBOX
2497 X LOGOUT
2498 _ATEOF
2499
2500 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_uidvalidity
2501 "
2502 at_fn_check_prepare_notrace 'an embedded newline' "examine.at:19"
2503 ( $at_check_trace;
2504
2505 test -d $HOME || exit 77
2506 make_config
2507 cat >input <<'_ATEOF'
2508 1 EXAMINE INBOX
2509 X LOGOUT
2510 _ATEOF
2511
2512 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_uidvalidity
2513
2514 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2515 at_status=$? at_failed=false
2516 $at_check_filter
2517 at_fn_diff_devnull "$at_stderr" || at_failed=:
2518 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
2519 * 8 EXISTS
2520 * 5 RECENT
2521 * OK [UIDNEXT 9] Predicted next uid
2522 * OK [UNSEEN 4] first unseen message
2523 * FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)
2524 * OK [PERMANENTFLAGS ()] No permanent flags
2525 1 OK [READ-ONLY] EXAMINE Completed
2526 * BYE Session terminating.
2527 X OK LOGOUT Completed
2528 " | \
2529 $at_diff - "$at_stdout" || at_failed=:
2530 at_fn_check_status 0 $at_status "$at_srcdir/examine.at:19"
2531 $at_failed && at_fn_log_failure
2532 $at_traceon; }
2533
2534
2535
2536 set +x
2537 $at_times_p && times >"$at_times_file"
2538 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2539 read at_status <"$at_status_file"
2540 #AT_STOP_5
2541 #AT_START_6
2542 at_fn_group_banner 6 'status.at:17' \
2543 "status" " "
2544 at_xfail=no
2545 (
2546 printf "%s\n" "6. $at_setup_line: testing $at_desc ..."
2547 $at_traceon
2548
2549
2550
2551 cwd=`pwd`
2552
2553
2554
2555
2556
2557 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
2558 if test -e INBOX/search.mbox; then
2559
2560 # First, set all modes to +w
2561 find INBOX/search.mbox | xargs chmod +w
2562 # Then, remove executable bit from regular files
2563 find INBOX/search.mbox -type f | xargs chmod -x
2564
2565 else
2566
2567 # First, set all modes to +w
2568 find INBOX | xargs chmod +w
2569 # Then, remove executable bit from regular files
2570 find INBOX -type f | xargs chmod -x
2571
2572 fi
2573
2574
2575
2576
2577 { set +x
2578 printf "%s\n" "$at_srcdir/status.at:19:
2579
2580 test -d \$HOME || exit 77
2581 make_config
2582 cat >input <<'_ATEOF'
2583 1 STATUS INBOX (MESSAGES RECENT UNSEEN UIDNEXT)
2584 X LOGOUT
2585 _ATEOF
2586
2587 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_uidvalidity
2588 "
2589 at_fn_check_prepare_notrace 'an embedded newline' "status.at:19"
2590 ( $at_check_trace;
2591
2592 test -d $HOME || exit 77
2593 make_config
2594 cat >input <<'_ATEOF'
2595 1 STATUS INBOX (MESSAGES RECENT UNSEEN UIDNEXT)
2596 X LOGOUT
2597 _ATEOF
2598
2599 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_uidvalidity
2600
2601 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2602 at_status=$? at_failed=false
2603 $at_check_filter
2604 at_fn_diff_devnull "$at_stderr" || at_failed=:
2605 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
2606 * STATUS INBOX (MESSAGES 8 RECENT 5 UNSEEN 5 UIDNEXT 9)
2607 1 OK STATUS Completed
2608 * BYE Session terminating.
2609 X OK LOGOUT Completed
2610 " | \
2611 $at_diff - "$at_stdout" || at_failed=:
2612 at_fn_check_status 0 $at_status "$at_srcdir/status.at:19"
2613 $at_failed && at_fn_log_failure
2614 $at_traceon; }
2615
2616
2617
2618 set +x
2619 $at_times_p && times >"$at_times_file"
2620 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2621 read at_status <"$at_status_file"
2622 #AT_STOP_6
2623 #AT_START_7
2624 at_fn_group_banner 7 'expunge.at:17' \
2625 "expunge" " "
2626 at_xfail=no
2627 (
2628 printf "%s\n" "7. $at_setup_line: testing $at_desc ..."
2629 $at_traceon
2630
2631
2632
2633 cwd=`pwd`
2634
2635
2636
2637
2638
2639 cp -r $abs_top_srcdir/testsuite/spool/search.mbox temp
2640 if test -e temp/search.mbox; then
2641
2642 # First, set all modes to +w
2643 find temp/search.mbox | xargs chmod +w
2644 # Then, remove executable bit from regular files
2645 find temp/search.mbox -type f | xargs chmod -x
2646
2647 else
2648
2649 # First, set all modes to +w
2650 find temp | xargs chmod +w
2651 # Then, remove executable bit from regular files
2652 find temp -type f | xargs chmod -x
2653
2654 fi
2655
2656
2657
2658 sed 's/^\(Status: .*\)/\1D/' temp > INBOX
2659
2660 { set +x
2661 printf "%s\n" "$at_srcdir/expunge.at:19:
2662
2663 test -d \$HOME || exit 77
2664 make_config
2665 cat >input <<'_ATEOF'
2666 1 SELECT INBOX
2667 2 EXPUNGE
2668 X LOGOUT
2669 _ATEOF
2670
2671 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_uidvalidity
2672 "
2673 at_fn_check_prepare_notrace 'an embedded newline' "expunge.at:19"
2674 ( $at_check_trace;
2675
2676 test -d $HOME || exit 77
2677 make_config
2678 cat >input <<'_ATEOF'
2679 1 SELECT INBOX
2680 2 EXPUNGE
2681 X LOGOUT
2682 _ATEOF
2683
2684 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_uidvalidity
2685
2686 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2687 at_status=$? at_failed=false
2688 $at_check_filter
2689 at_fn_diff_devnull "$at_stderr" || at_failed=:
2690 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
2691 * 8 EXISTS
2692 * 5 RECENT
2693 * OK [UIDNEXT 9] Predicted next uid
2694 * OK [UNSEEN 4] first unseen message
2695 * FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)
2696 * OK [PERMANENTFLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)] Permanent flags
2697 1 OK [READ-WRITE] SELECT Completed
2698 * 1 EXPUNGED
2699 * 1 EXPUNGED
2700 * 1 EXPUNGED
2701 * 5 EXISTS
2702 * 5 RECENT
2703 2 OK EXPUNGE Completed
2704 * BYE Session terminating.
2705 X OK LOGOUT Completed
2706 " | \
2707 $at_diff - "$at_stdout" || at_failed=:
2708 at_fn_check_status 0 $at_status "$at_srcdir/expunge.at:19"
2709 $at_failed && at_fn_log_failure
2710 $at_traceon; }
2711
2712
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_7
2719 #AT_START_8
2720 at_fn_group_banner 8 'close-expunge.at:17' \
2721 "Close with expunge" " "
2722 at_xfail=no
2723 (
2724 printf "%s\n" "8. $at_setup_line: testing $at_desc ..."
2725 $at_traceon
2726
2727
2728
2729 # According to RFC3501, CLOSE command should not send untagged EXPUNGE
2730 # responses even if expunge actually took place.
2731
2732
2733 cwd=`pwd`
2734
2735
2736
2737
2738
2739 cp -r $abs_top_srcdir/testsuite/spool/search.mbox temp
2740 if test -e temp/search.mbox; then
2741
2742 # First, set all modes to +w
2743 find temp/search.mbox | xargs chmod +w
2744 # Then, remove executable bit from regular files
2745 find temp/search.mbox -type f | xargs chmod -x
2746
2747 else
2748
2749 # First, set all modes to +w
2750 find temp | xargs chmod +w
2751 # Then, remove executable bit from regular files
2752 find temp -type f | xargs chmod -x
2753
2754 fi
2755
2756
2757
2758 sed 's/^\(Status: .*\)/\1D/' temp > INBOX
2759
2760 { set +x
2761 printf "%s\n" "$at_srcdir/close-expunge.at:23:
2762
2763 test -d \$HOME || exit 77
2764 make_config
2765 cat >input <<'_ATEOF'
2766 1 SELECT INBOX
2767 2 CLOSE
2768 3 EXAMINE INBOX
2769 X LOGOUT
2770 _ATEOF
2771
2772 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_uidvalidity
2773 "
2774 at_fn_check_prepare_notrace 'an embedded newline' "close-expunge.at:23"
2775 ( $at_check_trace;
2776
2777 test -d $HOME || exit 77
2778 make_config
2779 cat >input <<'_ATEOF'
2780 1 SELECT INBOX
2781 2 CLOSE
2782 3 EXAMINE INBOX
2783 X LOGOUT
2784 _ATEOF
2785
2786 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_uidvalidity
2787
2788 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2789 at_status=$? at_failed=false
2790 $at_check_filter
2791 at_fn_diff_devnull "$at_stderr" || at_failed=:
2792 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
2793 * 8 EXISTS
2794 * 5 RECENT
2795 * OK [UIDNEXT 9] Predicted next uid
2796 * OK [UNSEEN 4] first unseen message
2797 * FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)
2798 * OK [PERMANENTFLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)] Permanent flags
2799 1 OK [READ-WRITE] SELECT Completed
2800 2 OK CLOSE Completed
2801 * 5 EXISTS
2802 * 0 RECENT
2803 * OK [UIDNEXT 9] Predicted next uid
2804 * OK [UNSEEN 1] first unseen message
2805 * FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)
2806 * OK [PERMANENTFLAGS ()] No permanent flags
2807 3 OK [READ-ONLY] EXAMINE Completed
2808 * BYE Session terminating.
2809 X OK LOGOUT Completed
2810 " | \
2811 $at_diff - "$at_stdout" || at_failed=:
2812 at_fn_check_status 0 $at_status "$at_srcdir/close-expunge.at:23"
2813 $at_failed && at_fn_log_failure
2814 $at_traceon; }
2815
2816
2817
2818 set +x
2819 $at_times_p && times >"$at_times_file"
2820 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2821 read at_status <"$at_status_file"
2822 #AT_STOP_8
2823 #AT_START_9
2824 at_fn_group_banner 9 'create01.at:17' \
2825 "create" " "
2826 at_xfail=no
2827 (
2828 printf "%s\n" "9. $at_setup_line: testing $at_desc ..."
2829 $at_traceon
2830
2831
2832
2833 { set +x
2834 printf "%s\n" "$at_srcdir/create01.at:20:
2835 test -d \$HOME || exit 77
2836 make_config
2837 cat >input <<'_ATEOF'
2838 1 create flat
2839 X LOGOUT
2840 _ATEOF
2841
2842 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r'
2843 find . -name flat
2844 "
2845 at_fn_check_prepare_notrace 'an embedded newline' "create01.at:20"
2846 ( $at_check_trace;
2847 test -d $HOME || exit 77
2848 make_config
2849 cat >input <<'_ATEOF'
2850 1 create flat
2851 X LOGOUT
2852 _ATEOF
2853
2854 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r'
2855 find . -name flat
2856
2857 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2858 at_status=$? at_failed=false
2859 $at_check_filter
2860 at_fn_diff_devnull "$at_stderr" || at_failed=:
2861 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
2862 1 OK CREATE Completed
2863 * BYE Session terminating.
2864 X OK LOGOUT Completed
2865 ./flat
2866 " | \
2867 $at_diff - "$at_stdout" || at_failed=:
2868 at_fn_check_status 0 $at_status "$at_srcdir/create01.at:20"
2869 $at_failed && at_fn_log_failure
2870 $at_traceon; }
2871
2872
2873 set +x
2874 $at_times_p && times >"$at_times_file"
2875 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2876 read at_status <"$at_status_file"
2877 #AT_STOP_9
2878 #AT_START_10
2879 at_fn_group_banner 10 'create02.at:17' \
2880 "create nested" " "
2881 at_xfail=no
2882 (
2883 printf "%s\n" "10. $at_setup_line: testing $at_desc ..."
2884 $at_traceon
2885
2886
2887
2888 { set +x
2889 printf "%s\n" "$at_srcdir/create02.at:20:
2890 test -d \$HOME || exit 77
2891 make_config
2892 cat >input <<'_ATEOF'
2893 1 create en/to/tre
2894 X LOGOUT
2895 _ATEOF
2896
2897 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r'
2898 find . -name tre
2899 "
2900 at_fn_check_prepare_notrace 'an embedded newline' "create02.at:20"
2901 ( $at_check_trace;
2902 test -d $HOME || exit 77
2903 make_config
2904 cat >input <<'_ATEOF'
2905 1 create en/to/tre
2906 X LOGOUT
2907 _ATEOF
2908
2909 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r'
2910 find . -name tre
2911
2912 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2913 at_status=$? at_failed=false
2914 $at_check_filter
2915 at_fn_diff_devnull "$at_stderr" || at_failed=:
2916 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
2917 1 OK CREATE Completed
2918 * BYE Session terminating.
2919 X OK LOGOUT Completed
2920 ./en/to/tre
2921 " | \
2922 $at_diff - "$at_stdout" || at_failed=:
2923 at_fn_check_status 0 $at_status "$at_srcdir/create02.at:20"
2924 $at_failed && at_fn_log_failure
2925 $at_traceon; }
2926
2927
2928 set +x
2929 $at_times_p && times >"$at_times_file"
2930 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2931 read at_status <"$at_status_file"
2932 #AT_STOP_10
2933 #AT_START_11
2934 at_fn_group_banner 11 'append00.at:17' \
2935 "append with flags" " " 1
2936 at_xfail=no
2937 (
2938 printf "%s\n" "11. $at_setup_line: testing $at_desc ..."
2939 $at_traceon
2940
2941
2942
2943 { set +x
2944 printf "%s\n" "$at_srcdir/append00.at:20:
2945 > mbox
2946 test -d \$HOME || exit 77
2947 make_config
2948 cat >input <<'_ATEOF'
2949 1 APPEND mbox (\\Seen) {300+}
2950 Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
2951 From: Fred Foobar <[email protected]>
2952 Subject: afternoon meeting
2953 To: [email protected]
2954 Message-Id: <[email protected]>
2955 MIME-Version: 1.0
2956 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
2957
2958 Hello Joe, do you think we can meet at 3:30 tomorrow
2959
2960 X LOGOUT
2961 _ATEOF
2962
2963 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r'
2964 echo \"==\"
2965 sed -e '/^X-/d' -e /^Status:/d mbox | awk 'NR==1 {print \"1:\",\$1,\$2; next} NF==0 {print NR\":\"; next} {print NR\":\",\$0}'
2966 "
2967 at_fn_check_prepare_notrace 'an embedded newline' "append00.at:20"
2968 ( $at_check_trace;
2969 > mbox
2970 test -d $HOME || exit 77
2971 make_config
2972 cat >input <<'_ATEOF'
2973 1 APPEND mbox (\Seen) {300+}
2974 Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
2975 From: Fred Foobar <[email protected]>
2976 Subject: afternoon meeting
2977 To: [email protected]
2978 Message-Id: <[email protected]>
2979 MIME-Version: 1.0
2980 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
2981
2982 Hello Joe, do you think we can meet at 3:30 tomorrow
2983
2984 X LOGOUT
2985 _ATEOF
2986
2987 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r'
2988 echo "=="
2989 sed -e '/^X-/d' -e /^Status:/d mbox | awk 'NR==1 {print "1:",$1,$2; next} NF==0 {print NR":"; next} {print NR":",$0}'
2990
2991 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2992 at_status=$? at_failed=false
2993 $at_check_filter
2994 at_fn_diff_devnull "$at_stderr" || at_failed=:
2995 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
2996 1 OK APPEND Completed
2997 * BYE Session terminating.
2998 X OK LOGOUT Completed
2999 ==
3000 1: From [email protected]
3001 2: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
3002 3: From: Fred Foobar <[email protected]>
3003 4: Subject: afternoon meeting
3004 5: To: [email protected]
3005 6: Message-Id: <[email protected]>
3006 7: MIME-Version: 1.0
3007 8: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
3008 9:
3009 10: Hello Joe, do you think we can meet at 3:30 tomorrow
3010 11:
3011 " | \
3012 $at_diff - "$at_stdout" || at_failed=:
3013 at_fn_check_status 0 $at_status "$at_srcdir/append00.at:20"
3014 $at_failed && at_fn_log_failure
3015 $at_traceon; }
3016
3017
3018 set +x
3019 $at_times_p && times >"$at_times_file"
3020 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3021 read at_status <"$at_status_file"
3022 #AT_STOP_11
3023 #AT_START_12
3024 at_fn_group_banner 12 'append01.at:17' \
3025 "append with envelope date" " " 1
3026 at_xfail=no
3027 (
3028 printf "%s\n" "12. $at_setup_line: testing $at_desc ..."
3029 $at_traceon
3030
3031
3032
3033 { set +x
3034 printf "%s\n" "$at_srcdir/append01.at:20:
3035 > mbox
3036 test -d \$HOME || exit 77
3037 make_config
3038 cat >input <<'_ATEOF'
3039 1 APPEND mbox \"25-Aug-2002 18:00:00 +0200\" {274+}
3040 Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
3041 From: Fred Foobar <[email protected]>
3042 Subject: afternoon meeting again
3043 To: [email protected]
3044 Message-Id: <[email protected]>
3045 MIME-Version: 1.0
3046 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
3047
3048 Better yet at 04:00?
3049
3050 X LOGOUT
3051 _ATEOF
3052
3053 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r'
3054 echo \"==\"
3055 sed -e '/^X-/d' -e /^Status:/d mbox | awk 'NF==0 {print NR\":\"; next} {print NR\":\",\$0}'
3056 "
3057 at_fn_check_prepare_notrace 'an embedded newline' "append01.at:20"
3058 ( $at_check_trace;
3059 > mbox
3060 test -d $HOME || exit 77
3061 make_config
3062 cat >input <<'_ATEOF'
3063 1 APPEND mbox "25-Aug-2002 18:00:00 +0200" {274+}
3064 Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
3065 From: Fred Foobar <[email protected]>
3066 Subject: afternoon meeting again
3067 To: [email protected]
3068 Message-Id: <[email protected]>
3069 MIME-Version: 1.0
3070 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
3071
3072 Better yet at 04:00?
3073
3074 X LOGOUT
3075 _ATEOF
3076
3077 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r'
3078 echo "=="
3079 sed -e '/^X-/d' -e /^Status:/d mbox | awk 'NF==0 {print NR":"; next} {print NR":",$0}'
3080
3081 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3082 at_status=$? at_failed=false
3083 $at_check_filter
3084 at_fn_diff_devnull "$at_stderr" || at_failed=:
3085 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
3086 1 OK APPEND Completed
3087 * BYE Session terminating.
3088 X OK LOGOUT Completed
3089 ==
3090 1: From [email protected] Sun Aug 25 18:00:00 2002
3091 2: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
3092 3: From: Fred Foobar <[email protected]>
3093 4: Subject: afternoon meeting again
3094 5: To: [email protected]
3095 6: Message-Id: <[email protected]>
3096 7: MIME-Version: 1.0
3097 8: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
3098 9:
3099 10: Better yet at 04:00?
3100 11:
3101 " | \
3102 $at_diff - "$at_stdout" || at_failed=:
3103 at_fn_check_status 0 $at_status "$at_srcdir/append01.at:20"
3104 $at_failed && at_fn_log_failure
3105 $at_traceon; }
3106
3107
3108 set +x
3109 $at_times_p && times >"$at_times_file"
3110 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3111 read at_status <"$at_status_file"
3112 #AT_STOP_12
3113 #AT_START_13
3114 at_fn_group_banner 13 'list.at:42' \
3115 "list \"\" \"\"" " " 2
3116 at_xfail=no
3117 (
3118 printf "%s\n" "13. $at_setup_line: testing $at_desc ..."
3119 $at_traceon
3120
3121
3122
3123
3124 cwd=`pwd`
3125
3126 mkdir spool
3127 for name in bigto relational search sieve teaparty
3128 do
3129 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3130 done
3131
3132
3133 { set +x
3134 printf "%s\n" "$at_srcdir/list.at:42:
3135
3136 test -d \$HOME || exit 77
3137 make_config spool
3138 cat >input <<'_ATEOF'
3139 1 LIST \"\" \"\"
3140 X LOGOUT
3141 _ATEOF
3142
3143 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3144 "
3145 at_fn_check_prepare_notrace 'an embedded newline' "list.at:42"
3146 ( $at_check_trace;
3147
3148 test -d $HOME || exit 77
3149 make_config spool
3150 cat >input <<'_ATEOF'
3151 1 LIST "" ""
3152 X LOGOUT
3153 _ATEOF
3154
3155 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3156
3157 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3158 at_status=$? at_failed=false
3159 $at_check_filter
3160 at_fn_diff_devnull "$at_stderr" || at_failed=:
3161 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoSelect) \"/\" \"\"
3162 " | \
3163 $at_diff - "$at_stdout" || at_failed=:
3164 at_fn_check_status 0 $at_status "$at_srcdir/list.at:42"
3165 $at_failed && at_fn_log_failure
3166 $at_traceon; }
3167
3168
3169 set +x
3170 $at_times_p && times >"$at_times_file"
3171 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3172 read at_status <"$at_status_file"
3173 #AT_STOP_13
3174 #AT_START_14
3175 at_fn_group_banner 14 'list.at:47' \
3176 "list \"\" \"*\"" " " 2
3177 at_xfail=no
3178 (
3179 printf "%s\n" "14. $at_setup_line: testing $at_desc ..."
3180 $at_traceon
3181
3182
3183
3184
3185 cwd=`pwd`
3186
3187 mkdir spool
3188 for name in bigto relational search sieve teaparty
3189 do
3190 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3191 done
3192
3193
3194 { set +x
3195 printf "%s\n" "$at_srcdir/list.at:47:
3196
3197 test -d \$HOME || exit 77
3198 make_config spool
3199 cat >input <<'_ATEOF'
3200 1 LIST \"\" \"*\"
3201 X LOGOUT
3202 _ATEOF
3203
3204 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3205 "
3206 at_fn_check_prepare_notrace 'an embedded newline' "list.at:47"
3207 ( $at_check_trace;
3208
3209 test -d $HOME || exit 77
3210 make_config spool
3211 cat >input <<'_ATEOF'
3212 1 LIST "" "*"
3213 X LOGOUT
3214 _ATEOF
3215
3216 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3217
3218 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3219 at_status=$? at_failed=false
3220 $at_check_filter
3221 at_fn_diff_devnull "$at_stderr" || at_failed=:
3222 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" bigto
3223 * LIST (\\NoInferiors) \"/\" relational
3224 * LIST (\\NoInferiors) \"/\" search
3225 * LIST (\\NoInferiors) \"/\" sieve
3226 * LIST (\\NoInferiors) \"/\" teaparty
3227 * LIST (\\NoInferiors) NIL INBOX
3228 " | \
3229 $at_diff - "$at_stdout" || at_failed=:
3230 at_fn_check_status 0 $at_status "$at_srcdir/list.at:47"
3231 $at_failed && at_fn_log_failure
3232 $at_traceon; }
3233
3234
3235 set +x
3236 $at_times_p && times >"$at_times_file"
3237 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3238 read at_status <"$at_status_file"
3239 #AT_STOP_14
3240 #AT_START_15
3241 at_fn_group_banner 15 'list.at:58' \
3242 "list \"\" \"%\"" " " 2
3243 at_xfail=no
3244 (
3245 printf "%s\n" "15. $at_setup_line: testing $at_desc ..."
3246 $at_traceon
3247
3248
3249
3250
3251 cwd=`pwd`
3252
3253 mkdir spool
3254 for name in bigto relational search sieve teaparty
3255 do
3256 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3257 done
3258
3259
3260 { set +x
3261 printf "%s\n" "$at_srcdir/list.at:58:
3262
3263 test -d \$HOME || exit 77
3264 make_config spool
3265 cat >input <<'_ATEOF'
3266 1 LIST \"\" \"%\"
3267 X LOGOUT
3268 _ATEOF
3269
3270 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3271 "
3272 at_fn_check_prepare_notrace 'an embedded newline' "list.at:58"
3273 ( $at_check_trace;
3274
3275 test -d $HOME || exit 77
3276 make_config spool
3277 cat >input <<'_ATEOF'
3278 1 LIST "" "%"
3279 X LOGOUT
3280 _ATEOF
3281
3282 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3283
3284 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3285 at_status=$? at_failed=false
3286 $at_check_filter
3287 at_fn_diff_devnull "$at_stderr" || at_failed=:
3288 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" bigto
3289 * LIST (\\NoInferiors) \"/\" relational
3290 * LIST (\\NoInferiors) \"/\" search
3291 * LIST (\\NoInferiors) \"/\" sieve
3292 * LIST (\\NoInferiors) \"/\" teaparty
3293 * LIST (\\NoInferiors) NIL INBOX
3294 " | \
3295 $at_diff - "$at_stdout" || at_failed=:
3296 at_fn_check_status 0 $at_status "$at_srcdir/list.at:58"
3297 $at_failed && at_fn_log_failure
3298 $at_traceon; }
3299
3300
3301 set +x
3302 $at_times_p && times >"$at_times_file"
3303 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3304 read at_status <"$at_status_file"
3305 #AT_STOP_15
3306 #AT_START_16
3307 at_fn_group_banner 16 'list.at:69' \
3308 "duplicate INBOX" " " 2
3309 at_xfail=no
3310 (
3311 printf "%s\n" "16. $at_setup_line: testing $at_desc ..."
3312 $at_traceon
3313
3314
3315
3316
3317 cwd=`pwd`
3318
3319 mkdir spool
3320 for name in bigto relational search sieve teaparty
3321 do
3322 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3323 done
3324 cp $abs_top_srcdir/testsuite/spool/mbox spool/INBOX
3325
3326
3327 { set +x
3328 printf "%s\n" "$at_srcdir/list.at:69:
3329
3330 test -d \$HOME || exit 77
3331 make_config spool
3332 cat >input <<'_ATEOF'
3333 1 LIST \"\" \"%\"
3334 X LOGOUT
3335 _ATEOF
3336
3337 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3338 "
3339 at_fn_check_prepare_notrace 'an embedded newline' "list.at:69"
3340 ( $at_check_trace;
3341
3342 test -d $HOME || exit 77
3343 make_config spool
3344 cat >input <<'_ATEOF'
3345 1 LIST "" "%"
3346 X LOGOUT
3347 _ATEOF
3348
3349 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3350
3351 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3352 at_status=$? at_failed=false
3353 $at_check_filter
3354 at_fn_diff_devnull "$at_stderr" || at_failed=:
3355 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" bigto
3356 * LIST (\\NoInferiors) \"/\" relational
3357 * LIST (\\NoInferiors) \"/\" search
3358 * LIST (\\NoInferiors) \"/\" sieve
3359 * LIST (\\NoInferiors) \"/\" teaparty
3360 * LIST (\\NoInferiors) NIL INBOX
3361 " | \
3362 $at_diff - "$at_stdout" || at_failed=:
3363 at_fn_check_status 0 $at_status "$at_srcdir/list.at:69"
3364 $at_failed && at_fn_log_failure
3365 $at_traceon; }
3366
3367
3368 set +x
3369 $at_times_p && times >"$at_times_file"
3370 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3371 read at_status <"$at_status_file"
3372 #AT_STOP_16
3373 #AT_START_17
3374 at_fn_group_banner 17 'list.at:82' \
3375 "list \"\" INBOX" " " 2
3376 at_xfail=no
3377 (
3378 printf "%s\n" "17. $at_setup_line: testing $at_desc ..."
3379 $at_traceon
3380
3381
3382
3383
3384 cwd=`pwd`
3385
3386 mkdir spool
3387 for name in bigto relational search sieve teaparty
3388 do
3389 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3390 done
3391
3392
3393 { set +x
3394 printf "%s\n" "$at_srcdir/list.at:82:
3395
3396 test -d \$HOME || exit 77
3397 make_config spool
3398 cat >input <<'_ATEOF'
3399 1 LIST \"\" INBOX
3400 X LOGOUT
3401 _ATEOF
3402
3403 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3404 "
3405 at_fn_check_prepare_notrace 'an embedded newline' "list.at:82"
3406 ( $at_check_trace;
3407
3408 test -d $HOME || exit 77
3409 make_config spool
3410 cat >input <<'_ATEOF'
3411 1 LIST "" INBOX
3412 X LOGOUT
3413 _ATEOF
3414
3415 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3416
3417 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3418 at_status=$? at_failed=false
3419 $at_check_filter
3420 at_fn_diff_devnull "$at_stderr" || at_failed=:
3421 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) NIL INBOX
3422 " | \
3423 $at_diff - "$at_stdout" || at_failed=:
3424 at_fn_check_status 0 $at_status "$at_srcdir/list.at:82"
3425 $at_failed && at_fn_log_failure
3426 $at_traceon; }
3427
3428
3429 set +x
3430 $at_times_p && times >"$at_times_file"
3431 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3432 read at_status <"$at_status_file"
3433 #AT_STOP_17
3434 #AT_START_18
3435 at_fn_group_banner 18 'list.at:88' \
3436 "list \"\" \"search\"" " " 2
3437 at_xfail=no
3438 (
3439 printf "%s\n" "18. $at_setup_line: testing $at_desc ..."
3440 $at_traceon
3441
3442
3443
3444
3445 cwd=`pwd`
3446
3447 mkdir spool
3448 for name in bigto relational search sieve teaparty
3449 do
3450 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3451 done
3452
3453
3454 { set +x
3455 printf "%s\n" "$at_srcdir/list.at:88:
3456
3457 test -d \$HOME || exit 77
3458 make_config spool
3459 cat >input <<'_ATEOF'
3460 1 LIST \"\" \"search\"
3461 X LOGOUT
3462 _ATEOF
3463
3464 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3465 "
3466 at_fn_check_prepare_notrace 'an embedded newline' "list.at:88"
3467 ( $at_check_trace;
3468
3469 test -d $HOME || exit 77
3470 make_config spool
3471 cat >input <<'_ATEOF'
3472 1 LIST "" "search"
3473 X LOGOUT
3474 _ATEOF
3475
3476 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3477
3478 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3479 at_status=$? at_failed=false
3480 $at_check_filter
3481 at_fn_diff_devnull "$at_stderr" || at_failed=:
3482 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" search
3483 " | \
3484 $at_diff - "$at_stdout" || at_failed=:
3485 at_fn_check_status 0 $at_status "$at_srcdir/list.at:88"
3486 $at_failed && at_fn_log_failure
3487 $at_traceon; }
3488
3489
3490 set +x
3491 $at_times_p && times >"$at_times_file"
3492 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3493 read at_status <"$at_status_file"
3494 #AT_STOP_18
3495 #AT_START_19
3496 at_fn_group_banner 19 'list.at:94' \
3497 "list \"\" \"#archive:*\"" " " 2
3498 at_xfail=no
3499 (
3500 printf "%s\n" "19. $at_setup_line: testing $at_desc ..."
3501 $at_traceon
3502
3503
3504
3505
3506 cwd=`pwd`
3507
3508 mkdir spool
3509 for name in bigto relational search sieve teaparty
3510 do
3511 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3512 done
3513 mkdir archive archive/old archive/old/very
3514 cp $abs_top_srcdir/testsuite/spool/mbox archive
3515 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old
3516 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old/very/saved
3517
3518
3519 { set +x
3520 printf "%s\n" "$at_srcdir/list.at:94:
3521
3522 test -d \$HOME || exit 77
3523 make_config spool
3524 cat >input <<'_ATEOF'
3525 1 LIST \"\" \"#archive:*\"
3526 X LOGOUT
3527 _ATEOF
3528
3529 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3530 "
3531 at_fn_check_prepare_notrace 'an embedded newline' "list.at:94"
3532 ( $at_check_trace;
3533
3534 test -d $HOME || exit 77
3535 make_config spool
3536 cat >input <<'_ATEOF'
3537 1 LIST "" "#archive:*"
3538 X LOGOUT
3539 _ATEOF
3540
3541 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3542
3543 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3544 at_status=$? at_failed=false
3545 $at_check_filter
3546 at_fn_diff_devnull "$at_stderr" || at_failed=:
3547 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \".\" #archive:mbox
3548 * LIST (\\NoInferiors) \".\" #archive:old.mbox1
3549 * LIST (\\NoInferiors) \".\" #archive:old.very.saved
3550 * LIST (\\NoSelect) \".\" #archive:old
3551 * LIST (\\NoSelect) \".\" #archive:old.very
3552 " | \
3553 $at_diff - "$at_stdout" || at_failed=:
3554 at_fn_check_status 0 $at_status "$at_srcdir/list.at:94"
3555 $at_failed && at_fn_log_failure
3556 $at_traceon; }
3557
3558
3559 set +x
3560 $at_times_p && times >"$at_times_file"
3561 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3562 read at_status <"$at_status_file"
3563 #AT_STOP_19
3564 #AT_START_20
3565 at_fn_group_banner 20 'list.at:108' \
3566 "list \"#archive:\" \"*\"" " " 2
3567 at_xfail=no
3568 (
3569 printf "%s\n" "20. $at_setup_line: testing $at_desc ..."
3570 $at_traceon
3571
3572
3573
3574
3575 cwd=`pwd`
3576
3577 mkdir spool
3578 for name in bigto relational search sieve teaparty
3579 do
3580 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3581 done
3582 mkdir archive archive/old archive/old/very
3583 cp $abs_top_srcdir/testsuite/spool/mbox archive
3584 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old
3585 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old/very/saved
3586
3587
3588 { set +x
3589 printf "%s\n" "$at_srcdir/list.at:108:
3590
3591 test -d \$HOME || exit 77
3592 make_config spool
3593 cat >input <<'_ATEOF'
3594 1 LIST \"#archive:\" \"*\"
3595 X LOGOUT
3596 _ATEOF
3597
3598 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3599 "
3600 at_fn_check_prepare_notrace 'an embedded newline' "list.at:108"
3601 ( $at_check_trace;
3602
3603 test -d $HOME || exit 77
3604 make_config spool
3605 cat >input <<'_ATEOF'
3606 1 LIST "#archive:" "*"
3607 X LOGOUT
3608 _ATEOF
3609
3610 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3611
3612 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3613 at_status=$? at_failed=false
3614 $at_check_filter
3615 at_fn_diff_devnull "$at_stderr" || at_failed=:
3616 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \".\" #archive:mbox
3617 * LIST (\\NoInferiors) \".\" #archive:old.mbox1
3618 * LIST (\\NoInferiors) \".\" #archive:old.very.saved
3619 * LIST (\\NoSelect) \".\" #archive:old
3620 * LIST (\\NoSelect) \".\" #archive:old.very
3621 " | \
3622 $at_diff - "$at_stdout" || at_failed=:
3623 at_fn_check_status 0 $at_status "$at_srcdir/list.at:108"
3624 $at_failed && at_fn_log_failure
3625 $at_traceon; }
3626
3627
3628 set +x
3629 $at_times_p && times >"$at_times_file"
3630 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3631 read at_status <"$at_status_file"
3632 #AT_STOP_20
3633 #AT_START_21
3634 at_fn_group_banner 21 'list.at:122' \
3635 "list \"\" \"#archive:%\"" " " 2
3636 at_xfail=no
3637 (
3638 printf "%s\n" "21. $at_setup_line: testing $at_desc ..."
3639 $at_traceon
3640
3641
3642
3643
3644 cwd=`pwd`
3645
3646 mkdir spool
3647 for name in bigto relational search sieve teaparty
3648 do
3649 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3650 done
3651 mkdir archive archive/old archive/old/very
3652 cp $abs_top_srcdir/testsuite/spool/mbox archive
3653 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old
3654 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old/very/saved
3655
3656
3657 { set +x
3658 printf "%s\n" "$at_srcdir/list.at:122:
3659
3660 test -d \$HOME || exit 77
3661 make_config spool
3662 cat >input <<'_ATEOF'
3663 1 LIST \"\" \"#archive:%\"
3664 X LOGOUT
3665 _ATEOF
3666
3667 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3668 "
3669 at_fn_check_prepare_notrace 'an embedded newline' "list.at:122"
3670 ( $at_check_trace;
3671
3672 test -d $HOME || exit 77
3673 make_config spool
3674 cat >input <<'_ATEOF'
3675 1 LIST "" "#archive:%"
3676 X LOGOUT
3677 _ATEOF
3678
3679 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3680
3681 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3682 at_status=$? at_failed=false
3683 $at_check_filter
3684 at_fn_diff_devnull "$at_stderr" || at_failed=:
3685 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \".\" #archive:mbox
3686 * LIST (\\NoSelect) \".\" #archive:old
3687 " | \
3688 $at_diff - "$at_stdout" || at_failed=:
3689 at_fn_check_status 0 $at_status "$at_srcdir/list.at:122"
3690 $at_failed && at_fn_log_failure
3691 $at_traceon; }
3692
3693
3694 set +x
3695 $at_times_p && times >"$at_times_file"
3696 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3697 read at_status <"$at_status_file"
3698 #AT_STOP_21
3699 #AT_START_22
3700 at_fn_group_banner 22 'list.at:133' \
3701 "list \"#archive:\" \"%\"" " " 2
3702 at_xfail=no
3703 (
3704 printf "%s\n" "22. $at_setup_line: testing $at_desc ..."
3705 $at_traceon
3706
3707
3708
3709
3710 cwd=`pwd`
3711
3712 mkdir spool
3713 for name in bigto relational search sieve teaparty
3714 do
3715 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3716 done
3717 mkdir archive archive/old archive/old/very
3718 cp $abs_top_srcdir/testsuite/spool/mbox archive
3719 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old
3720 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old/very/saved
3721
3722
3723 { set +x
3724 printf "%s\n" "$at_srcdir/list.at:133:
3725
3726 test -d \$HOME || exit 77
3727 make_config spool
3728 cat >input <<'_ATEOF'
3729 1 LIST \"#archive:\" \"%\"
3730 X LOGOUT
3731 _ATEOF
3732
3733 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3734 "
3735 at_fn_check_prepare_notrace 'an embedded newline' "list.at:133"
3736 ( $at_check_trace;
3737
3738 test -d $HOME || exit 77
3739 make_config spool
3740 cat >input <<'_ATEOF'
3741 1 LIST "#archive:" "%"
3742 X LOGOUT
3743 _ATEOF
3744
3745 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3746
3747 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3748 at_status=$? at_failed=false
3749 $at_check_filter
3750 at_fn_diff_devnull "$at_stderr" || at_failed=:
3751 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \".\" #archive:mbox
3752 * LIST (\\NoSelect) \".\" #archive:old
3753 " | \
3754 $at_diff - "$at_stdout" || at_failed=:
3755 at_fn_check_status 0 $at_status "$at_srcdir/list.at:133"
3756 $at_failed && at_fn_log_failure
3757 $at_traceon; }
3758
3759
3760 set +x
3761 $at_times_p && times >"$at_times_file"
3762 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3763 read at_status <"$at_status_file"
3764 #AT_STOP_22
3765 #AT_START_23
3766 at_fn_group_banner 23 'list.at:144' \
3767 "list \"#archive:\" \"a.b\"" " " 2
3768 at_xfail=no
3769 (
3770 printf "%s\n" "23. $at_setup_line: testing $at_desc ..."
3771 $at_traceon
3772
3773
3774
3775
3776 cwd=`pwd`
3777
3778 mkdir spool
3779 for name in bigto relational search sieve teaparty
3780 do
3781 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3782 done
3783 mkdir archive archive/a archive/a/b
3784
3785
3786 { set +x
3787 printf "%s\n" "$at_srcdir/list.at:144:
3788
3789 test -d \$HOME || exit 77
3790 make_config spool
3791 cat >input <<'_ATEOF'
3792 1 LIST \"#archive:\" \"a.b\"
3793 X LOGOUT
3794 _ATEOF
3795
3796 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3797 "
3798 at_fn_check_prepare_notrace 'an embedded newline' "list.at:144"
3799 ( $at_check_trace;
3800
3801 test -d $HOME || exit 77
3802 make_config spool
3803 cat >input <<'_ATEOF'
3804 1 LIST "#archive:" "a.b"
3805 X LOGOUT
3806 _ATEOF
3807
3808 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3809
3810 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3811 at_status=$? at_failed=false
3812 $at_check_filter
3813 at_fn_diff_devnull "$at_stderr" || at_failed=:
3814 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoSelect) \".\" #archive:a.b
3815 " | \
3816 $at_diff - "$at_stdout" || at_failed=:
3817 at_fn_check_status 0 $at_status "$at_srcdir/list.at:144"
3818 $at_failed && at_fn_log_failure
3819 $at_traceon; }
3820
3821
3822 set +x
3823 $at_times_p && times >"$at_times_file"
3824 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3825 read at_status <"$at_status_file"
3826 #AT_STOP_23
3827 #AT_START_24
3828 at_fn_group_banner 24 'list.at:151' \
3829 "list \"#archive:\" \"a.b.c\"" " " 2
3830 at_xfail=no
3831 (
3832 printf "%s\n" "24. $at_setup_line: testing $at_desc ..."
3833 $at_traceon
3834
3835
3836
3837
3838 cwd=`pwd`
3839
3840 mkdir spool
3841 for name in bigto relational search sieve teaparty
3842 do
3843 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3844 done
3845 mkdir archive archive/a archive/a/b
3846 cp $abs_top_srcdir/testsuite/spool/mbox archive/a/b/c
3847
3848
3849 { set +x
3850 printf "%s\n" "$at_srcdir/list.at:151:
3851
3852 test -d \$HOME || exit 77
3853 make_config spool
3854 cat >input <<'_ATEOF'
3855 1 LIST \"#archive:\" \"a.b.c\"
3856 X LOGOUT
3857 _ATEOF
3858
3859 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3860 "
3861 at_fn_check_prepare_notrace 'an embedded newline' "list.at:151"
3862 ( $at_check_trace;
3863
3864 test -d $HOME || exit 77
3865 make_config spool
3866 cat >input <<'_ATEOF'
3867 1 LIST "#archive:" "a.b.c"
3868 X LOGOUT
3869 _ATEOF
3870
3871 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3872
3873 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3874 at_status=$? at_failed=false
3875 $at_check_filter
3876 at_fn_diff_devnull "$at_stderr" || at_failed=:
3877 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \".\" #archive:a.b.c
3878 " | \
3879 $at_diff - "$at_stdout" || at_failed=:
3880 at_fn_check_status 0 $at_status "$at_srcdir/list.at:151"
3881 $at_failed && at_fn_log_failure
3882 $at_traceon; }
3883
3884
3885 set +x
3886 $at_times_p && times >"$at_times_file"
3887 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3888 read at_status <"$at_status_file"
3889 #AT_STOP_24
3890 #AT_START_25
3891 at_fn_group_banner 25 'list.at:159' \
3892 "list \"\" \"archive.*\"" " " 2
3893 at_xfail=no
3894 (
3895 printf "%s\n" "25. $at_setup_line: testing $at_desc ..."
3896 $at_traceon
3897
3898
3899
3900
3901 cwd=`pwd`
3902
3903 mkdir spool
3904 for name in bigto relational search sieve teaparty
3905 do
3906 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3907 done
3908 mkdir archive archive/old archive/old/very
3909 cp $abs_top_srcdir/testsuite/spool/mbox archive
3910 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old
3911 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old/very/saved
3912
3913
3914 { set +x
3915 printf "%s\n" "$at_srcdir/list.at:159:
3916
3917 test -d \$HOME || exit 77
3918 make_config spool
3919 cat >input <<'_ATEOF'
3920 1 LIST \"\" \"archive.*\"
3921 X LOGOUT
3922 _ATEOF
3923
3924 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3925 "
3926 at_fn_check_prepare_notrace 'an embedded newline' "list.at:159"
3927 ( $at_check_trace;
3928
3929 test -d $HOME || exit 77
3930 make_config spool
3931 cat >input <<'_ATEOF'
3932 1 LIST "" "archive.*"
3933 X LOGOUT
3934 _ATEOF
3935
3936 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
3937
3938 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3939 at_status=$? at_failed=false
3940 $at_check_filter
3941 at_fn_diff_devnull "$at_stderr" || at_failed=:
3942 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \".\" archive.mbox
3943 * LIST (\\NoInferiors) \".\" archive.old.mbox1
3944 * LIST (\\NoInferiors) \".\" archive.old.very.saved
3945 * LIST (\\NoSelect) \".\" archive.old
3946 * LIST (\\NoSelect) \".\" archive.old.very
3947 " | \
3948 $at_diff - "$at_stdout" || at_failed=:
3949 at_fn_check_status 0 $at_status "$at_srcdir/list.at:159"
3950 $at_failed && at_fn_log_failure
3951 $at_traceon; }
3952
3953
3954 set +x
3955 $at_times_p && times >"$at_times_file"
3956 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3957 read at_status <"$at_status_file"
3958 #AT_STOP_25
3959 #AT_START_26
3960 at_fn_group_banner 26 'list.at:173' \
3961 "list \"archive.\" \"*\"" " " 2
3962 at_xfail=no
3963 (
3964 printf "%s\n" "26. $at_setup_line: testing $at_desc ..."
3965 $at_traceon
3966
3967
3968
3969
3970 cwd=`pwd`
3971
3972 mkdir spool
3973 for name in bigto relational search sieve teaparty
3974 do
3975 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
3976 done
3977 mkdir archive archive/old archive/old/very
3978 cp $abs_top_srcdir/testsuite/spool/mbox archive
3979 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old
3980 # NOTE: Mailbox name with a directory delimiter will be ignored
3981 cp $abs_top_srcdir/testsuite/spool/mbox archive/mbox.1
3982 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old/very/saved
3983
3984
3985 { set +x
3986 printf "%s\n" "$at_srcdir/list.at:173:
3987
3988 test -d \$HOME || exit 77
3989 make_config spool
3990 cat >input <<'_ATEOF'
3991 1 LIST \"archive.\" \"*\"
3992 X LOGOUT
3993 _ATEOF
3994
3995 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
3996 "
3997 at_fn_check_prepare_notrace 'an embedded newline' "list.at:173"
3998 ( $at_check_trace;
3999
4000 test -d $HOME || exit 77
4001 make_config spool
4002 cat >input <<'_ATEOF'
4003 1 LIST "archive." "*"
4004 X LOGOUT
4005 _ATEOF
4006
4007 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4008
4009 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4010 at_status=$? at_failed=false
4011 $at_check_filter
4012 at_fn_diff_devnull "$at_stderr" || at_failed=:
4013 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \".\" archive.mbox
4014 * LIST (\\NoInferiors) \".\" archive.old.mbox1
4015 * LIST (\\NoInferiors) \".\" archive.old.very.saved
4016 * LIST (\\NoSelect) \".\" archive.old
4017 * LIST (\\NoSelect) \".\" archive.old.very
4018 " | \
4019 $at_diff - "$at_stdout" || at_failed=:
4020 at_fn_check_status 0 $at_status "$at_srcdir/list.at:173"
4021 $at_failed && at_fn_log_failure
4022 $at_traceon; }
4023
4024
4025 set +x
4026 $at_times_p && times >"$at_times_file"
4027 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4028 read at_status <"$at_status_file"
4029 #AT_STOP_26
4030 #AT_START_27
4031 at_fn_group_banner 27 'list.at:189' \
4032 "list \"archive\" \"*\"" " " 2
4033 at_xfail=no
4034 (
4035 printf "%s\n" "27. $at_setup_line: testing $at_desc ..."
4036 $at_traceon
4037
4038
4039
4040
4041 cwd=`pwd`
4042
4043 mkdir spool
4044 for name in bigto relational search sieve teaparty
4045 do
4046 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4047 done
4048 mkdir archive archive/old archive/old/very
4049 cp $abs_top_srcdir/testsuite/spool/mbox archive
4050 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old
4051 cp $abs_top_srcdir/testsuite/spool/mbox1 archive/old/very/saved
4052
4053
4054 { set +x
4055 printf "%s\n" "$at_srcdir/list.at:189:
4056
4057 test -d \$HOME || exit 77
4058 make_config spool
4059 cat >input <<'_ATEOF'
4060 1 LIST \"archive\" \"*\"
4061 X LOGOUT
4062 _ATEOF
4063
4064 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4065 "
4066 at_fn_check_prepare_notrace 'an embedded newline' "list.at:189"
4067 ( $at_check_trace;
4068
4069 test -d $HOME || exit 77
4070 make_config spool
4071 cat >input <<'_ATEOF'
4072 1 LIST "archive" "*"
4073 X LOGOUT
4074 _ATEOF
4075
4076 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4077
4078 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4079 at_status=$? at_failed=false
4080 $at_check_filter
4081 at_fn_diff_devnull "$at_stderr" || at_failed=:
4082 at_fn_diff_devnull "$at_stdout" || at_failed=:
4083 at_fn_check_status 0 $at_status "$at_srcdir/list.at:189"
4084 $at_failed && at_fn_log_failure
4085 $at_traceon; }
4086
4087
4088 set +x
4089 $at_times_p && times >"$at_times_file"
4090 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4091 read at_status <"$at_status_file"
4092 #AT_STOP_27
4093 #AT_START_28
4094 at_fn_group_banner 28 'list.at:198' \
4095 "list \"~/\" \"*\"" " " 2
4096 at_xfail=no
4097 (
4098 printf "%s\n" "28. $at_setup_line: testing $at_desc ..."
4099 $at_traceon
4100
4101
4102
4103
4104 cwd=`pwd`
4105
4106 mkdir spool
4107 for name in bigto relational search sieve teaparty
4108 do
4109 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4110 done
4111
4112
4113 { set +x
4114 printf "%s\n" "$at_srcdir/list.at:198:
4115
4116 test -d \$HOME || exit 77
4117 make_config spool
4118 cat >input <<'_ATEOF'
4119 1 LIST \"~/\" \"*\"
4120 X LOGOUT
4121 _ATEOF
4122
4123 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4124 "
4125 at_fn_check_prepare_notrace 'an embedded newline' "list.at:198"
4126 ( $at_check_trace;
4127
4128 test -d $HOME || exit 77
4129 make_config spool
4130 cat >input <<'_ATEOF'
4131 1 LIST "~/" "*"
4132 X LOGOUT
4133 _ATEOF
4134
4135 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4136
4137 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4138 at_status=$? at_failed=false
4139 $at_check_filter
4140 at_fn_diff_devnull "$at_stderr" || at_failed=:
4141 echo >>"$at_stdout"; printf "%s\n" "1 NO LIST The requested item could not be found
4142 " | \
4143 $at_diff - "$at_stdout" || at_failed=:
4144 at_fn_check_status 0 $at_status "$at_srcdir/list.at:198"
4145 $at_failed && at_fn_log_failure
4146 $at_traceon; }
4147
4148
4149 set +x
4150 $at_times_p && times >"$at_times_file"
4151 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4152 read at_status <"$at_status_file"
4153 #AT_STOP_28
4154 #AT_START_29
4155 at_fn_group_banner 29 'list.at:203' \
4156 "list \"~foo/\" \"%\"" " " 2
4157 at_xfail=no
4158 (
4159 printf "%s\n" "29. $at_setup_line: testing $at_desc ..."
4160 $at_traceon
4161
4162
4163
4164
4165 cwd=`pwd`
4166
4167 mkdir spool
4168 for name in bigto relational search sieve teaparty
4169 do
4170 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4171 done
4172 mkdir home home/foo home/foo/dir home/bar
4173 cp $abs_top_srcdir/testsuite/spool/mbox home/foo
4174 cp $abs_top_srcdir/testsuite/spool/mbox1 home/foo/dir/saved
4175 cp $abs_top_srcdir/testsuite/spool/mbox1 home/bar
4176
4177
4178 { set +x
4179 printf "%s\n" "$at_srcdir/list.at:203:
4180
4181 test -d \$HOME || exit 77
4182 make_config spool
4183 cat >input <<'_ATEOF'
4184 1 LIST \"~foo/\" \"%\"
4185 X LOGOUT
4186 _ATEOF
4187
4188 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4189 "
4190 at_fn_check_prepare_notrace 'an embedded newline' "list.at:203"
4191 ( $at_check_trace;
4192
4193 test -d $HOME || exit 77
4194 make_config spool
4195 cat >input <<'_ATEOF'
4196 1 LIST "~foo/" "%"
4197 X LOGOUT
4198 _ATEOF
4199
4200 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4201
4202 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4203 at_status=$? at_failed=false
4204 $at_check_filter
4205 at_fn_diff_devnull "$at_stderr" || at_failed=:
4206 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" ~foo/mbox
4207 * LIST (\\NoSelect) \"/\" ~foo/dir
4208 " | \
4209 $at_diff - "$at_stdout" || at_failed=:
4210 at_fn_check_status 0 $at_status "$at_srcdir/list.at:203"
4211 $at_failed && at_fn_log_failure
4212 $at_traceon; }
4213
4214
4215 set +x
4216 $at_times_p && times >"$at_times_file"
4217 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4218 read at_status <"$at_status_file"
4219 #AT_STOP_29
4220 #AT_START_30
4221 at_fn_group_banner 30 'list.at:214' \
4222 "list \"~foo/\" \"*\"" " " 2
4223 at_xfail=no
4224 (
4225 printf "%s\n" "30. $at_setup_line: testing $at_desc ..."
4226 $at_traceon
4227
4228
4229
4230
4231 cwd=`pwd`
4232
4233 mkdir spool
4234 for name in bigto relational search sieve teaparty
4235 do
4236 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4237 done
4238 mkdir home home/foo home/foo/dir home/bar
4239 cp $abs_top_srcdir/testsuite/spool/mbox home/foo
4240 cp $abs_top_srcdir/testsuite/spool/mbox1 home/foo/dir/saved
4241 cp $abs_top_srcdir/testsuite/spool/mbox1 home/bar
4242
4243
4244 { set +x
4245 printf "%s\n" "$at_srcdir/list.at:214:
4246
4247 test -d \$HOME || exit 77
4248 make_config spool
4249 cat >input <<'_ATEOF'
4250 1 LIST \"~foo/\" \"*\"
4251 X LOGOUT
4252 _ATEOF
4253
4254 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4255 "
4256 at_fn_check_prepare_notrace 'an embedded newline' "list.at:214"
4257 ( $at_check_trace;
4258
4259 test -d $HOME || exit 77
4260 make_config spool
4261 cat >input <<'_ATEOF'
4262 1 LIST "~foo/" "*"
4263 X LOGOUT
4264 _ATEOF
4265
4266 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4267
4268 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4269 at_status=$? at_failed=false
4270 $at_check_filter
4271 at_fn_diff_devnull "$at_stderr" || at_failed=:
4272 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" ~foo/dir/saved
4273 * LIST (\\NoInferiors) \"/\" ~foo/mbox
4274 * LIST (\\NoSelect) \"/\" ~foo/dir
4275 " | \
4276 $at_diff - "$at_stdout" || at_failed=:
4277 at_fn_check_status 0 $at_status "$at_srcdir/list.at:214"
4278 $at_failed && at_fn_log_failure
4279 $at_traceon; }
4280
4281
4282 set +x
4283 $at_times_p && times >"$at_times_file"
4284 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4285 read at_status <"$at_status_file"
4286 #AT_STOP_30
4287 #AT_START_31
4288 at_fn_group_banner 31 'list.at:226' \
4289 "list \"\" \"~foo/*\"" " " 2
4290 at_xfail=no
4291 (
4292 printf "%s\n" "31. $at_setup_line: testing $at_desc ..."
4293 $at_traceon
4294
4295
4296
4297
4298 cwd=`pwd`
4299
4300 mkdir spool
4301 for name in bigto relational search sieve teaparty
4302 do
4303 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4304 done
4305 mkdir home home/foo home/foo/dir home/bar
4306 cp $abs_top_srcdir/testsuite/spool/mbox home/foo
4307 cp $abs_top_srcdir/testsuite/spool/mbox1 home/foo/dir/saved
4308 cp $abs_top_srcdir/testsuite/spool/mbox1 home/bar
4309
4310
4311 { set +x
4312 printf "%s\n" "$at_srcdir/list.at:226:
4313
4314 test -d \$HOME || exit 77
4315 make_config spool
4316 cat >input <<'_ATEOF'
4317 1 LIST \"\" \"~foo/*\"
4318 X LOGOUT
4319 _ATEOF
4320
4321 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4322 "
4323 at_fn_check_prepare_notrace 'an embedded newline' "list.at:226"
4324 ( $at_check_trace;
4325
4326 test -d $HOME || exit 77
4327 make_config spool
4328 cat >input <<'_ATEOF'
4329 1 LIST "" "~foo/*"
4330 X LOGOUT
4331 _ATEOF
4332
4333 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4334
4335 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4336 at_status=$? at_failed=false
4337 $at_check_filter
4338 at_fn_diff_devnull "$at_stderr" || at_failed=:
4339 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" ~foo/dir/saved
4340 * LIST (\\NoInferiors) \"/\" ~foo/mbox
4341 * LIST (\\NoSelect) \"/\" ~foo/dir
4342 " | \
4343 $at_diff - "$at_stdout" || at_failed=:
4344 at_fn_check_status 0 $at_status "$at_srcdir/list.at:226"
4345 $at_failed && at_fn_log_failure
4346 $at_traceon; }
4347
4348
4349 set +x
4350 $at_times_p && times >"$at_times_file"
4351 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4352 read at_status <"$at_status_file"
4353 #AT_STOP_31
4354 #AT_START_32
4355 at_fn_group_banner 32 'list.at:238' \
4356 "list \"~foo/\" \"%/*\"" " " 2
4357 at_xfail=no
4358 (
4359 printf "%s\n" "32. $at_setup_line: testing $at_desc ..."
4360 $at_traceon
4361
4362
4363
4364
4365 cwd=`pwd`
4366
4367 mkdir spool
4368 for name in bigto relational search sieve teaparty
4369 do
4370 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4371 done
4372 mkdir home home/foo home/foo/dir home/bar
4373 cp $abs_top_srcdir/testsuite/spool/mbox home/foo
4374 cp $abs_top_srcdir/testsuite/spool/mbox1 home/foo/dir/saved
4375 cp $abs_top_srcdir/testsuite/spool/mbox1 home/bar
4376
4377
4378 { set +x
4379 printf "%s\n" "$at_srcdir/list.at:238:
4380
4381 test -d \$HOME || exit 77
4382 make_config spool
4383 cat >input <<'_ATEOF'
4384 1 LIST \"~foo/\" \"%/*\"
4385 X LOGOUT
4386 _ATEOF
4387
4388 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4389 "
4390 at_fn_check_prepare_notrace 'an embedded newline' "list.at:238"
4391 ( $at_check_trace;
4392
4393 test -d $HOME || exit 77
4394 make_config spool
4395 cat >input <<'_ATEOF'
4396 1 LIST "~foo/" "%/*"
4397 X LOGOUT
4398 _ATEOF
4399
4400 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4401
4402 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4403 at_status=$? at_failed=false
4404 $at_check_filter
4405 at_fn_diff_devnull "$at_stderr" || at_failed=:
4406 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" ~foo/dir/saved
4407 " | \
4408 $at_diff - "$at_stdout" || at_failed=:
4409 at_fn_check_status 0 $at_status "$at_srcdir/list.at:238"
4410 $at_failed && at_fn_log_failure
4411 $at_traceon; }
4412
4413
4414 set +x
4415 $at_times_p && times >"$at_times_file"
4416 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4417 read at_status <"$at_status_file"
4418 #AT_STOP_32
4419 #AT_START_33
4420 at_fn_group_banner 33 'list.at:250' \
4421 "list \"other/\" \"*\"" " " 2
4422 at_xfail=no
4423 (
4424 printf "%s\n" "33. $at_setup_line: testing $at_desc ..."
4425 $at_traceon
4426
4427
4428
4429
4430 cwd=`pwd`
4431
4432 mkdir spool
4433 for name in bigto relational search sieve teaparty
4434 do
4435 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4436 done
4437
4438
4439 { set +x
4440 printf "%s\n" "$at_srcdir/list.at:250:
4441
4442 test -d \$HOME || exit 77
4443 make_config spool
4444 cat >input <<'_ATEOF'
4445 1 LIST \"other/\" \"*\"
4446 X LOGOUT
4447 _ATEOF
4448
4449 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4450 "
4451 at_fn_check_prepare_notrace 'an embedded newline' "list.at:250"
4452 ( $at_check_trace;
4453
4454 test -d $HOME || exit 77
4455 make_config spool
4456 cat >input <<'_ATEOF'
4457 1 LIST "other/" "*"
4458 X LOGOUT
4459 _ATEOF
4460
4461 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4462
4463 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4464 at_status=$? at_failed=false
4465 $at_check_filter
4466 at_fn_diff_devnull "$at_stderr" || at_failed=:
4467 echo >>"$at_stdout"; printf "%s\n" "1 NO LIST The requested item could not be found
4468 " | \
4469 $at_diff - "$at_stdout" || at_failed=:
4470 at_fn_check_status 0 $at_status "$at_srcdir/list.at:250"
4471 $at_failed && at_fn_log_failure
4472 $at_traceon; }
4473
4474
4475 set +x
4476 $at_times_p && times >"$at_times_file"
4477 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4478 read at_status <"$at_status_file"
4479 #AT_STOP_33
4480 #AT_START_34
4481 at_fn_group_banner 34 'list.at:255' \
4482 "list \"other/foo\" \"%\"" " " 2
4483 at_xfail=no
4484 (
4485 printf "%s\n" "34. $at_setup_line: testing $at_desc ..."
4486 $at_traceon
4487
4488
4489
4490
4491 cwd=`pwd`
4492
4493 mkdir spool
4494 for name in bigto relational search sieve teaparty
4495 do
4496 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4497 done
4498 mkdir home home/foo home/foo/dir home/bar
4499 cp $abs_top_srcdir/testsuite/spool/mbox home/foo
4500 cp $abs_top_srcdir/testsuite/spool/mbox1 home/foo/dir/saved
4501 cp $abs_top_srcdir/testsuite/spool/mbox1 home/bar
4502
4503
4504 { set +x
4505 printf "%s\n" "$at_srcdir/list.at:255:
4506
4507 test -d \$HOME || exit 77
4508 make_config spool
4509 cat >input <<'_ATEOF'
4510 1 LIST \"other/foo\" \"%\"
4511 X LOGOUT
4512 _ATEOF
4513
4514 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4515 "
4516 at_fn_check_prepare_notrace 'an embedded newline' "list.at:255"
4517 ( $at_check_trace;
4518
4519 test -d $HOME || exit 77
4520 make_config spool
4521 cat >input <<'_ATEOF'
4522 1 LIST "other/foo" "%"
4523 X LOGOUT
4524 _ATEOF
4525
4526 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4527
4528 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4529 at_status=$? at_failed=false
4530 $at_check_filter
4531 at_fn_diff_devnull "$at_stderr" || at_failed=:
4532 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" other/foo/mbox
4533 * LIST (\\NoSelect) \"/\" other/foo/dir
4534 " | \
4535 $at_diff - "$at_stdout" || at_failed=:
4536 at_fn_check_status 0 $at_status "$at_srcdir/list.at:255"
4537 $at_failed && at_fn_log_failure
4538 $at_traceon; }
4539
4540
4541 set +x
4542 $at_times_p && times >"$at_times_file"
4543 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4544 read at_status <"$at_status_file"
4545 #AT_STOP_34
4546 #AT_START_35
4547 at_fn_group_banner 35 'list.at:266' \
4548 "list \"other/foo\" \"*\"" " " 2
4549 at_xfail=no
4550 (
4551 printf "%s\n" "35. $at_setup_line: testing $at_desc ..."
4552 $at_traceon
4553
4554
4555
4556
4557 cwd=`pwd`
4558
4559 mkdir spool
4560 for name in bigto relational search sieve teaparty
4561 do
4562 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4563 done
4564 mkdir home home/foo home/foo/dir home/bar
4565 cp $abs_top_srcdir/testsuite/spool/mbox home/foo
4566 cp $abs_top_srcdir/testsuite/spool/mbox1 home/foo/dir/saved
4567 cp $abs_top_srcdir/testsuite/spool/mbox1 home/bar
4568
4569
4570 { set +x
4571 printf "%s\n" "$at_srcdir/list.at:266:
4572
4573 test -d \$HOME || exit 77
4574 make_config spool
4575 cat >input <<'_ATEOF'
4576 1 LIST \"other/foo\" \"*\"
4577 X LOGOUT
4578 _ATEOF
4579
4580 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4581 "
4582 at_fn_check_prepare_notrace 'an embedded newline' "list.at:266"
4583 ( $at_check_trace;
4584
4585 test -d $HOME || exit 77
4586 make_config spool
4587 cat >input <<'_ATEOF'
4588 1 LIST "other/foo" "*"
4589 X LOGOUT
4590 _ATEOF
4591
4592 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4593
4594 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4595 at_status=$? at_failed=false
4596 $at_check_filter
4597 at_fn_diff_devnull "$at_stderr" || at_failed=:
4598 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" other/foo/dir/saved
4599 * LIST (\\NoInferiors) \"/\" other/foo/mbox
4600 * LIST (\\NoSelect) \"/\" other/foo/dir
4601 " | \
4602 $at_diff - "$at_stdout" || at_failed=:
4603 at_fn_check_status 0 $at_status "$at_srcdir/list.at:266"
4604 $at_failed && at_fn_log_failure
4605 $at_traceon; }
4606
4607
4608 set +x
4609 $at_times_p && times >"$at_times_file"
4610 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4611 read at_status <"$at_status_file"
4612 #AT_STOP_35
4613 #AT_START_36
4614 at_fn_group_banner 36 'list.at:278' \
4615 "list \"\" \"other/foo/*\"" " " 2
4616 at_xfail=no
4617 (
4618 printf "%s\n" "36. $at_setup_line: testing $at_desc ..."
4619 $at_traceon
4620
4621
4622
4623
4624 cwd=`pwd`
4625
4626 mkdir spool
4627 for name in bigto relational search sieve teaparty
4628 do
4629 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4630 done
4631 mkdir home home/foo home/foo/dir home/bar
4632 cp $abs_top_srcdir/testsuite/spool/mbox home/foo
4633 cp $abs_top_srcdir/testsuite/spool/mbox1 home/foo/dir/saved
4634 cp $abs_top_srcdir/testsuite/spool/mbox1 home/bar
4635
4636
4637 { set +x
4638 printf "%s\n" "$at_srcdir/list.at:278:
4639
4640 test -d \$HOME || exit 77
4641 make_config spool
4642 cat >input <<'_ATEOF'
4643 1 LIST \"\" \"other/foo/*\"
4644 X LOGOUT
4645 _ATEOF
4646
4647 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4648 "
4649 at_fn_check_prepare_notrace 'an embedded newline' "list.at:278"
4650 ( $at_check_trace;
4651
4652 test -d $HOME || exit 77
4653 make_config spool
4654 cat >input <<'_ATEOF'
4655 1 LIST "" "other/foo/*"
4656 X LOGOUT
4657 _ATEOF
4658
4659 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4660
4661 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4662 at_status=$? at_failed=false
4663 $at_check_filter
4664 at_fn_diff_devnull "$at_stderr" || at_failed=:
4665 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" other/foo/dir/saved
4666 * LIST (\\NoInferiors) \"/\" other/foo/mbox
4667 * LIST (\\NoSelect) \"/\" other/foo/dir
4668 " | \
4669 $at_diff - "$at_stdout" || at_failed=:
4670 at_fn_check_status 0 $at_status "$at_srcdir/list.at:278"
4671 $at_failed && at_fn_log_failure
4672 $at_traceon; }
4673
4674
4675 set +x
4676 $at_times_p && times >"$at_times_file"
4677 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4678 read at_status <"$at_status_file"
4679 #AT_STOP_36
4680 #AT_START_37
4681 at_fn_group_banner 37 'list.at:290' \
4682 "list \"other/foo/\" \"%/*\"" " " 2
4683 at_xfail=no
4684 (
4685 printf "%s\n" "37. $at_setup_line: testing $at_desc ..."
4686 $at_traceon
4687
4688
4689
4690
4691 cwd=`pwd`
4692
4693 mkdir spool
4694 for name in bigto relational search sieve teaparty
4695 do
4696 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4697 done
4698 mkdir home home/foo home/foo/dir home/bar
4699 cp $abs_top_srcdir/testsuite/spool/mbox home/foo
4700 cp $abs_top_srcdir/testsuite/spool/mbox1 home/foo/dir/saved
4701 cp $abs_top_srcdir/testsuite/spool/mbox1 home/bar
4702
4703
4704 { set +x
4705 printf "%s\n" "$at_srcdir/list.at:290:
4706
4707 test -d \$HOME || exit 77
4708 make_config spool
4709 cat >input <<'_ATEOF'
4710 1 LIST \"other/foo/\" \"%/*\"
4711 X LOGOUT
4712 _ATEOF
4713
4714 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4715 "
4716 at_fn_check_prepare_notrace 'an embedded newline' "list.at:290"
4717 ( $at_check_trace;
4718
4719 test -d $HOME || exit 77
4720 make_config spool
4721 cat >input <<'_ATEOF'
4722 1 LIST "other/foo/" "%/*"
4723 X LOGOUT
4724 _ATEOF
4725
4726 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4727
4728 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4729 at_status=$? at_failed=false
4730 $at_check_filter
4731 at_fn_diff_devnull "$at_stderr" || at_failed=:
4732 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" other/foo/dir/saved
4733 " | \
4734 $at_diff - "$at_stdout" || at_failed=:
4735 at_fn_check_status 0 $at_status "$at_srcdir/list.at:290"
4736 $at_failed && at_fn_log_failure
4737 $at_traceon; }
4738
4739
4740 set +x
4741 $at_times_p && times >"$at_times_file"
4742 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4743 read at_status <"$at_status_file"
4744 #AT_STOP_37
4745 #AT_START_38
4746 at_fn_group_banner 38 'list.at:301' \
4747 "root ref + asterisk" " " 2
4748 at_xfail=no
4749 (
4750 printf "%s\n" "38. $at_setup_line: testing $at_desc ..."
4751 $at_traceon
4752
4753
4754
4755
4756 cwd=`pwd`
4757
4758 mkdir spool
4759 for name in bigto relational search sieve teaparty
4760 do
4761 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4762 done
4763
4764
4765 { set +x
4766 printf "%s\n" "$at_srcdir/list.at:301:
4767
4768 test -d \$HOME || exit 77
4769 make_config spool
4770 cat >input <<'_ATEOF'
4771 1 LIST \"/\" \"*\"
4772 X LOGOUT
4773 _ATEOF
4774
4775 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4776 "
4777 at_fn_check_prepare_notrace 'an embedded newline' "list.at:301"
4778 ( $at_check_trace;
4779
4780 test -d $HOME || exit 77
4781 make_config spool
4782 cat >input <<'_ATEOF'
4783 1 LIST "/" "*"
4784 X LOGOUT
4785 _ATEOF
4786
4787 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4788
4789 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4790 at_status=$? at_failed=false
4791 $at_check_filter
4792 at_fn_diff_devnull "$at_stderr" || at_failed=:
4793 echo >>"$at_stdout"; printf "%s\n" "* LIST (\\NoInferiors) \"/\" /bigto
4794 * LIST (\\NoInferiors) \"/\" /relational
4795 * LIST (\\NoInferiors) \"/\" /search
4796 * LIST (\\NoInferiors) \"/\" /sieve
4797 * LIST (\\NoInferiors) \"/\" /teaparty
4798 " | \
4799 $at_diff - "$at_stdout" || at_failed=:
4800 at_fn_check_status 0 $at_status "$at_srcdir/list.at:301"
4801 $at_failed && at_fn_log_failure
4802 $at_traceon; }
4803
4804
4805 set +x
4806 $at_times_p && times >"$at_times_file"
4807 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4808 read at_status <"$at_status_file"
4809 #AT_STOP_38
4810 #AT_START_39
4811 at_fn_group_banner 39 'list.at:311' \
4812 "absolute reference + asterisk" " " 2
4813 at_xfail=no
4814 (
4815 printf "%s\n" "39. $at_setup_line: testing $at_desc ..."
4816 $at_traceon
4817
4818
4819
4820
4821 cwd=`pwd`
4822
4823 mkdir spool
4824 for name in bigto relational search sieve teaparty
4825 do
4826 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4827 done
4828 mkdir spool/folder
4829
4830
4831
4832
4833 cp -r $abs_top_srcdir/testsuite/folder/one spool/folder
4834 if test -e spool/folder/one; then
4835
4836 # First, set all modes to +w
4837 find spool/folder/one | xargs chmod +w
4838 # Then, remove executable bit from regular files
4839 find spool/folder/one -type f | xargs chmod -x
4840
4841 else
4842
4843 # First, set all modes to +w
4844 find spool/folder | xargs chmod +w
4845 # Then, remove executable bit from regular files
4846 find spool/folder -type f | xargs chmod -x
4847
4848 fi
4849
4850
4851
4852
4853
4854
4855
4856 cp -r $abs_top_srcdir/testsuite/folder/two spool/folder
4857 if test -e spool/folder/two; then
4858
4859 # First, set all modes to +w
4860 find spool/folder/two | xargs chmod +w
4861 # Then, remove executable bit from regular files
4862 find spool/folder/two -type f | xargs chmod -x
4863
4864 else
4865
4866 # First, set all modes to +w
4867 find spool/folder | xargs chmod +w
4868 # Then, remove executable bit from regular files
4869 find spool/folder -type f | xargs chmod -x
4870
4871 fi
4872
4873
4874
4875
4876 { set +x
4877 printf "%s\n" "$at_srcdir/list.at:311:
4878
4879 test -d \$HOME || exit 77
4880 make_config spool
4881 cat >input <<'_ATEOF'
4882 1 LIST \"/foo/bar/baz/\" \"*\"
4883 X LOGOUT
4884 _ATEOF
4885
4886 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4887 "
4888 at_fn_check_prepare_notrace 'an embedded newline' "list.at:311"
4889 ( $at_check_trace;
4890
4891 test -d $HOME || exit 77
4892 make_config spool
4893 cat >input <<'_ATEOF'
4894 1 LIST "/foo/bar/baz/" "*"
4895 X LOGOUT
4896 _ATEOF
4897
4898 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
4899
4900 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4901 at_status=$? at_failed=false
4902 $at_check_filter
4903 at_fn_diff_devnull "$at_stderr" || at_failed=:
4904 at_fn_diff_devnull "$at_stdout" || at_failed=:
4905 at_fn_check_status 0 $at_status "$at_srcdir/list.at:311"
4906 $at_failed && at_fn_log_failure
4907 $at_traceon; }
4908
4909
4910 set +x
4911 $at_times_p && times >"$at_times_file"
4912 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4913 read at_status <"$at_status_file"
4914 #AT_STOP_39
4915 #AT_START_40
4916 at_fn_group_banner 40 'list.at:318' \
4917 "absolute reference + percent" " " 2
4918 at_xfail=no
4919 (
4920 printf "%s\n" "40. $at_setup_line: testing $at_desc ..."
4921 $at_traceon
4922
4923
4924
4925
4926 cwd=`pwd`
4927
4928 mkdir spool
4929 for name in bigto relational search sieve teaparty
4930 do
4931 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
4932 done
4933 mkdir spool/folder
4934
4935
4936
4937
4938 cp -r $abs_top_srcdir/testsuite/folder/one spool/folder
4939 if test -e spool/folder/one; then
4940
4941 # First, set all modes to +w
4942 find spool/folder/one | xargs chmod +w
4943 # Then, remove executable bit from regular files
4944 find spool/folder/one -type f | xargs chmod -x
4945
4946 else
4947
4948 # First, set all modes to +w
4949 find spool/folder | xargs chmod +w
4950 # Then, remove executable bit from regular files
4951 find spool/folder -type f | xargs chmod -x
4952
4953 fi
4954
4955
4956
4957
4958
4959
4960
4961 cp -r $abs_top_srcdir/testsuite/folder/two spool/folder
4962 if test -e spool/folder/two; then
4963
4964 # First, set all modes to +w
4965 find spool/folder/two | xargs chmod +w
4966 # Then, remove executable bit from regular files
4967 find spool/folder/two -type f | xargs chmod -x
4968
4969 else
4970
4971 # First, set all modes to +w
4972 find spool/folder | xargs chmod +w
4973 # Then, remove executable bit from regular files
4974 find spool/folder -type f | xargs chmod -x
4975
4976 fi
4977
4978
4979
4980
4981 { set +x
4982 printf "%s\n" "$at_srcdir/list.at:318:
4983
4984 test -d \$HOME || exit 77
4985 make_config spool
4986 cat >input <<'_ATEOF'
4987 1 LIST \"/foo/bar/baz/\" \"%\"
4988 X LOGOUT
4989 _ATEOF
4990
4991 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
4992 "
4993 at_fn_check_prepare_notrace 'an embedded newline' "list.at:318"
4994 ( $at_check_trace;
4995
4996 test -d $HOME || exit 77
4997 make_config spool
4998 cat >input <<'_ATEOF'
4999 1 LIST "/foo/bar/baz/" "%"
5000 X LOGOUT
5001 _ATEOF
5002
5003 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
5004
5005 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5006 at_status=$? at_failed=false
5007 $at_check_filter
5008 at_fn_diff_devnull "$at_stderr" || at_failed=:
5009 at_fn_diff_devnull "$at_stdout" || at_failed=:
5010 at_fn_check_status 0 $at_status "$at_srcdir/list.at:318"
5011 $at_failed && at_fn_log_failure
5012 $at_traceon; }
5013
5014
5015 set +x
5016 $at_times_p && times >"$at_times_file"
5017 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5018 read at_status <"$at_status_file"
5019 #AT_STOP_40
5020 #AT_START_41
5021 at_fn_group_banner 41 'list.at:325' \
5022 "absolute reference + mailbox" " " 2
5023 at_xfail=no
5024 (
5025 printf "%s\n" "41. $at_setup_line: testing $at_desc ..."
5026 $at_traceon
5027
5028
5029
5030
5031 cwd=`pwd`
5032
5033 mkdir spool
5034 for name in bigto relational search sieve teaparty
5035 do
5036 cp $abs_top_srcdir/testsuite/spool/$name.mbox spool/$name
5037 done
5038 mkdir spool/folder
5039
5040
5041
5042
5043 cp -r $abs_top_srcdir/testsuite/folder/one spool/folder
5044 if test -e spool/folder/one; then
5045
5046 # First, set all modes to +w
5047 find spool/folder/one | xargs chmod +w
5048 # Then, remove executable bit from regular files
5049 find spool/folder/one -type f | xargs chmod -x
5050
5051 else
5052
5053 # First, set all modes to +w
5054 find spool/folder | xargs chmod +w
5055 # Then, remove executable bit from regular files
5056 find spool/folder -type f | xargs chmod -x
5057
5058 fi
5059
5060
5061
5062
5063
5064
5065
5066 cp -r $abs_top_srcdir/testsuite/folder/two spool/folder
5067 if test -e spool/folder/two; then
5068
5069 # First, set all modes to +w
5070 find spool/folder/two | xargs chmod +w
5071 # Then, remove executable bit from regular files
5072 find spool/folder/two -type f | xargs chmod -x
5073
5074 else
5075
5076 # First, set all modes to +w
5077 find spool/folder | xargs chmod +w
5078 # Then, remove executable bit from regular files
5079 find spool/folder -type f | xargs chmod -x
5080
5081 fi
5082
5083
5084
5085
5086 { set +x
5087 printf "%s\n" "$at_srcdir/list.at:325:
5088
5089 test -d \$HOME || exit 77
5090 make_config spool
5091 cat >input <<'_ATEOF'
5092 1 LIST \"/foo/bar/baz/\" \"mbox\"
5093 X LOGOUT
5094 _ATEOF
5095
5096 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | sorted_list_output
5097 "
5098 at_fn_check_prepare_notrace 'an embedded newline' "list.at:325"
5099 ( $at_check_trace;
5100
5101 test -d $HOME || exit 77
5102 make_config spool
5103 cat >input <<'_ATEOF'
5104 1 LIST "/foo/bar/baz/" "mbox"
5105 X LOGOUT
5106 _ATEOF
5107
5108 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | sorted_list_output
5109
5110 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5111 at_status=$? at_failed=false
5112 $at_check_filter
5113 at_fn_diff_devnull "$at_stderr" || at_failed=:
5114 at_fn_diff_devnull "$at_stdout" || at_failed=:
5115 at_fn_check_status 0 $at_status "$at_srcdir/list.at:325"
5116 $at_failed && at_fn_log_failure
5117 $at_traceon; }
5118
5119
5120 set +x
5121 $at_times_p && times >"$at_times_file"
5122 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5123 read at_status <"$at_status_file"
5124 #AT_STOP_41
5125 #AT_START_42
5126 at_fn_group_banner 42 'search.at:49' \
5127 "search sequence number" " " 3
5128 at_xfail=no
5129 (
5130 printf "%s\n" "42. $at_setup_line: testing $at_desc ..."
5131 $at_traceon
5132
5133
5134
5135 cwd=`pwd`
5136
5137
5138
5139
5140
5141 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5142 if test -e INBOX/search.mbox; then
5143
5144 # First, set all modes to +w
5145 find INBOX/search.mbox | xargs chmod +w
5146 # Then, remove executable bit from regular files
5147 find INBOX/search.mbox -type f | xargs chmod -x
5148
5149 else
5150
5151 # First, set all modes to +w
5152 find INBOX | xargs chmod +w
5153 # Then, remove executable bit from regular files
5154 find INBOX -type f | xargs chmod -x
5155
5156 fi
5157
5158
5159
5160
5161 { set +x
5162 printf "%s\n" "$at_srcdir/search.at:49:
5163
5164 test -d \$HOME || exit 77
5165 make_config
5166 cat >input <<'_ATEOF'
5167 1 SELECT INBOX
5168 2 SEARCH 1:*
5169 X LOGOUT
5170 _ATEOF
5171
5172 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
5173 "
5174 at_fn_check_prepare_notrace 'an embedded newline' "search.at:49"
5175 ( $at_check_trace;
5176
5177 test -d $HOME || exit 77
5178 make_config
5179 cat >input <<'_ATEOF'
5180 1 SELECT INBOX
5181 2 SEARCH 1:*
5182 X LOGOUT
5183 _ATEOF
5184
5185 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
5186
5187 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5188 at_status=$? at_failed=false
5189 $at_check_filter
5190 at_fn_diff_devnull "$at_stderr" || at_failed=:
5191 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
5192 * SEARCH 1 2 3 4 5 6 7 8
5193 2 OK SEARCH Completed
5194 * BYE Session terminating.
5195 X OK LOGOUT Completed
5196 " | \
5197 $at_diff - "$at_stdout" || at_failed=:
5198 at_fn_check_status 0 $at_status "$at_srcdir/search.at:49"
5199 $at_failed && at_fn_log_failure
5200 $at_traceon; }
5201
5202
5203
5204 set +x
5205 $at_times_p && times >"$at_times_file"
5206 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5207 read at_status <"$at_status_file"
5208 #AT_STOP_42
5209 #AT_START_43
5210 at_fn_group_banner 43 'search.at:54' \
5211 "search all" " " 3
5212 at_xfail=no
5213 (
5214 printf "%s\n" "43. $at_setup_line: testing $at_desc ..."
5215 $at_traceon
5216
5217
5218
5219 cwd=`pwd`
5220
5221
5222
5223
5224
5225 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5226 if test -e INBOX/search.mbox; then
5227
5228 # First, set all modes to +w
5229 find INBOX/search.mbox | xargs chmod +w
5230 # Then, remove executable bit from regular files
5231 find INBOX/search.mbox -type f | xargs chmod -x
5232
5233 else
5234
5235 # First, set all modes to +w
5236 find INBOX | xargs chmod +w
5237 # Then, remove executable bit from regular files
5238 find INBOX -type f | xargs chmod -x
5239
5240 fi
5241
5242
5243
5244
5245 { set +x
5246 printf "%s\n" "$at_srcdir/search.at:54:
5247
5248 test -d \$HOME || exit 77
5249 make_config
5250 cat >input <<'_ATEOF'
5251 1 SELECT INBOX
5252 2 SEARCH ALL
5253 X LOGOUT
5254 _ATEOF
5255
5256 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
5257 "
5258 at_fn_check_prepare_notrace 'an embedded newline' "search.at:54"
5259 ( $at_check_trace;
5260
5261 test -d $HOME || exit 77
5262 make_config
5263 cat >input <<'_ATEOF'
5264 1 SELECT INBOX
5265 2 SEARCH ALL
5266 X LOGOUT
5267 _ATEOF
5268
5269 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
5270
5271 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5272 at_status=$? at_failed=false
5273 $at_check_filter
5274 at_fn_diff_devnull "$at_stderr" || at_failed=:
5275 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
5276 * SEARCH 1 2 3 4 5 6 7 8
5277 2 OK SEARCH Completed
5278 * BYE Session terminating.
5279 X OK LOGOUT Completed
5280 " | \
5281 $at_diff - "$at_stdout" || at_failed=:
5282 at_fn_check_status 0 $at_status "$at_srcdir/search.at:54"
5283 $at_failed && at_fn_log_failure
5284 $at_traceon; }
5285
5286
5287
5288 set +x
5289 $at_times_p && times >"$at_times_file"
5290 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5291 read at_status <"$at_status_file"
5292 #AT_STOP_43
5293 #AT_START_44
5294 at_fn_group_banner 44 'search.at:60' \
5295 "search new" " " 3
5296 at_xfail=no
5297 (
5298 printf "%s\n" "44. $at_setup_line: testing $at_desc ..."
5299 $at_traceon
5300
5301
5302
5303 cwd=`pwd`
5304
5305
5306
5307
5308
5309 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5310 if test -e INBOX/search.mbox; then
5311
5312 # First, set all modes to +w
5313 find INBOX/search.mbox | xargs chmod +w
5314 # Then, remove executable bit from regular files
5315 find INBOX/search.mbox -type f | xargs chmod -x
5316
5317 else
5318
5319 # First, set all modes to +w
5320 find INBOX | xargs chmod +w
5321 # Then, remove executable bit from regular files
5322 find INBOX -type f | xargs chmod -x
5323
5324 fi
5325
5326
5327
5328
5329 { set +x
5330 printf "%s\n" "$at_srcdir/search.at:60:
5331
5332 test -d \$HOME || exit 77
5333 make_config
5334 cat >input <<'_ATEOF'
5335 1 SELECT INBOX
5336 2 SEARCH NEW
5337 X LOGOUT
5338 _ATEOF
5339
5340 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
5341 "
5342 at_fn_check_prepare_notrace 'an embedded newline' "search.at:60"
5343 ( $at_check_trace;
5344
5345 test -d $HOME || exit 77
5346 make_config
5347 cat >input <<'_ATEOF'
5348 1 SELECT INBOX
5349 2 SEARCH NEW
5350 X LOGOUT
5351 _ATEOF
5352
5353 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
5354
5355 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5356 at_status=$? at_failed=false
5357 $at_check_filter
5358 at_fn_diff_devnull "$at_stderr" || at_failed=:
5359 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
5360 * SEARCH 4 5 6 7 8
5361 2 OK SEARCH Completed
5362 * BYE Session terminating.
5363 X OK LOGOUT Completed
5364 " | \
5365 $at_diff - "$at_stdout" || at_failed=:
5366 at_fn_check_status 0 $at_status "$at_srcdir/search.at:60"
5367 $at_failed && at_fn_log_failure
5368 $at_traceon; }
5369
5370
5371
5372 set +x
5373 $at_times_p && times >"$at_times_file"
5374 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5375 read at_status <"$at_status_file"
5376 #AT_STOP_44
5377 #AT_START_45
5378 at_fn_group_banner 45 'search.at:65' \
5379 "search from personal" " " 3
5380 at_xfail=no
5381 (
5382 printf "%s\n" "45. $at_setup_line: testing $at_desc ..."
5383 $at_traceon
5384
5385
5386
5387 cwd=`pwd`
5388
5389
5390
5391
5392
5393 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5394 if test -e INBOX/search.mbox; then
5395
5396 # First, set all modes to +w
5397 find INBOX/search.mbox | xargs chmod +w
5398 # Then, remove executable bit from regular files
5399 find INBOX/search.mbox -type f | xargs chmod -x
5400
5401 else
5402
5403 # First, set all modes to +w
5404 find INBOX | xargs chmod +w
5405 # Then, remove executable bit from regular files
5406 find INBOX -type f | xargs chmod -x
5407
5408 fi
5409
5410
5411
5412
5413 { set +x
5414 printf "%s\n" "$at_srcdir/search.at:65:
5415
5416 test -d \$HOME || exit 77
5417 make_config
5418 cat >input <<'_ATEOF'
5419 1 SELECT INBOX
5420 2 SEARCH FROM corrector
5421 X LOGOUT
5422 _ATEOF
5423
5424 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
5425 "
5426 at_fn_check_prepare_notrace 'an embedded newline' "search.at:65"
5427 ( $at_check_trace;
5428
5429 test -d $HOME || exit 77
5430 make_config
5431 cat >input <<'_ATEOF'
5432 1 SELECT INBOX
5433 2 SEARCH FROM corrector
5434 X LOGOUT
5435 _ATEOF
5436
5437 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
5438
5439 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5440 at_status=$? at_failed=false
5441 $at_check_filter
5442 at_fn_diff_devnull "$at_stderr" || at_failed=:
5443 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
5444 * SEARCH 2 4 8
5445 2 OK SEARCH Completed
5446 * BYE Session terminating.
5447 X OK LOGOUT Completed
5448 " | \
5449 $at_diff - "$at_stdout" || at_failed=:
5450 at_fn_check_status 0 $at_status "$at_srcdir/search.at:65"
5451 $at_failed && at_fn_log_failure
5452 $at_traceon; }
5453
5454
5455
5456 set +x
5457 $at_times_p && times >"$at_times_file"
5458 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5459 read at_status <"$at_status_file"
5460 #AT_STOP_45
5461 #AT_START_46
5462 at_fn_group_banner 46 'search.at:68' \
5463 "search from email" " " 3
5464 at_xfail=no
5465 (
5466 printf "%s\n" "46. $at_setup_line: testing $at_desc ..."
5467 $at_traceon
5468
5469
5470
5471 cwd=`pwd`
5472
5473
5474
5475
5476
5477 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5478 if test -e INBOX/search.mbox; then
5479
5480 # First, set all modes to +w
5481 find INBOX/search.mbox | xargs chmod +w
5482 # Then, remove executable bit from regular files
5483 find INBOX/search.mbox -type f | xargs chmod -x
5484
5485 else
5486
5487 # First, set all modes to +w
5488 find INBOX | xargs chmod +w
5489 # Then, remove executable bit from regular files
5490 find INBOX -type f | xargs chmod -x
5491
5492 fi
5493
5494
5495
5496
5497 { set +x
5498 printf "%s\n" "$at_srcdir/search.at:68:
5499
5500 test -d \$HOME || exit 77
5501 make_config
5502 cat >input <<'_ATEOF'
5503 1 SELECT INBOX
5504 2 SEARCH FROM [email protected]
5505 X LOGOUT
5506 _ATEOF
5507
5508 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
5509 "
5510 at_fn_check_prepare_notrace 'an embedded newline' "search.at:68"
5511 ( $at_check_trace;
5512
5513 test -d $HOME || exit 77
5514 make_config
5515 cat >input <<'_ATEOF'
5516 1 SELECT INBOX
5517 2 SEARCH FROM [email protected]
5518 X LOGOUT
5519 _ATEOF
5520
5521 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
5522
5523 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5524 at_status=$? at_failed=false
5525 $at_check_filter
5526 at_fn_diff_devnull "$at_stderr" || at_failed=:
5527 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
5528 * SEARCH 1 3 5 6 7
5529 2 OK SEARCH Completed
5530 * BYE Session terminating.
5531 X OK LOGOUT Completed
5532 " | \
5533 $at_diff - "$at_stdout" || at_failed=:
5534 at_fn_check_status 0 $at_status "$at_srcdir/search.at:68"
5535 $at_failed && at_fn_log_failure
5536 $at_traceon; }
5537
5538
5539
5540 set +x
5541 $at_times_p && times >"$at_times_file"
5542 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5543 read at_status <"$at_status_file"
5544 #AT_STOP_46
5545 #AT_START_47
5546 at_fn_group_banner 47 'search.at:73' \
5547 "search larger" " " 3
5548 at_xfail=no
5549 (
5550 printf "%s\n" "47. $at_setup_line: testing $at_desc ..."
5551 $at_traceon
5552
5553
5554
5555 cwd=`pwd`
5556
5557
5558
5559
5560
5561 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5562 if test -e INBOX/search.mbox; then
5563
5564 # First, set all modes to +w
5565 find INBOX/search.mbox | xargs chmod +w
5566 # Then, remove executable bit from regular files
5567 find INBOX/search.mbox -type f | xargs chmod -x
5568
5569 else
5570
5571 # First, set all modes to +w
5572 find INBOX | xargs chmod +w
5573 # Then, remove executable bit from regular files
5574 find INBOX -type f | xargs chmod -x
5575
5576 fi
5577
5578
5579
5580
5581 { set +x
5582 printf "%s\n" "$at_srcdir/search.at:73:
5583
5584 test -d \$HOME || exit 77
5585 make_config
5586 cat >input <<'_ATEOF'
5587 1 SELECT INBOX
5588 2 SEARCH LARGER 512
5589 X LOGOUT
5590 _ATEOF
5591
5592 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
5593 "
5594 at_fn_check_prepare_notrace 'an embedded newline' "search.at:73"
5595 ( $at_check_trace;
5596
5597 test -d $HOME || exit 77
5598 make_config
5599 cat >input <<'_ATEOF'
5600 1 SELECT INBOX
5601 2 SEARCH LARGER 512
5602 X LOGOUT
5603 _ATEOF
5604
5605 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
5606
5607 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5608 at_status=$? at_failed=false
5609 $at_check_filter
5610 at_fn_diff_devnull "$at_stderr" || at_failed=:
5611 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
5612 * SEARCH 3 4
5613 2 OK SEARCH Completed
5614 * BYE Session terminating.
5615 X OK LOGOUT Completed
5616 " | \
5617 $at_diff - "$at_stdout" || at_failed=:
5618 at_fn_check_status 0 $at_status "$at_srcdir/search.at:73"
5619 $at_failed && at_fn_log_failure
5620 $at_traceon; }
5621
5622
5623
5624 set +x
5625 $at_times_p && times >"$at_times_file"
5626 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5627 read at_status <"$at_status_file"
5628 #AT_STOP_47
5629 #AT_START_48
5630 at_fn_group_banner 48 'search.at:78' \
5631 "search smaller" " " 3
5632 at_xfail=no
5633 (
5634 printf "%s\n" "48. $at_setup_line: testing $at_desc ..."
5635 $at_traceon
5636
5637
5638
5639 cwd=`pwd`
5640
5641
5642
5643
5644
5645 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5646 if test -e INBOX/search.mbox; then
5647
5648 # First, set all modes to +w
5649 find INBOX/search.mbox | xargs chmod +w
5650 # Then, remove executable bit from regular files
5651 find INBOX/search.mbox -type f | xargs chmod -x
5652
5653 else
5654
5655 # First, set all modes to +w
5656 find INBOX | xargs chmod +w
5657 # Then, remove executable bit from regular files
5658 find INBOX -type f | xargs chmod -x
5659
5660 fi
5661
5662
5663
5664
5665 { set +x
5666 printf "%s\n" "$at_srcdir/search.at:78:
5667
5668 test -d \$HOME || exit 77
5669 make_config
5670 cat >input <<'_ATEOF'
5671 1 SELECT INBOX
5672 2 SEARCH SMALLER 400
5673 X LOGOUT
5674 _ATEOF
5675
5676 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
5677 "
5678 at_fn_check_prepare_notrace 'an embedded newline' "search.at:78"
5679 ( $at_check_trace;
5680
5681 test -d $HOME || exit 77
5682 make_config
5683 cat >input <<'_ATEOF'
5684 1 SELECT INBOX
5685 2 SEARCH SMALLER 400
5686 X LOGOUT
5687 _ATEOF
5688
5689 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
5690
5691 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5692 at_status=$? at_failed=false
5693 $at_check_filter
5694 at_fn_diff_devnull "$at_stderr" || at_failed=:
5695 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
5696 * SEARCH 7 8
5697 2 OK SEARCH Completed
5698 * BYE Session terminating.
5699 X OK LOGOUT Completed
5700 " | \
5701 $at_diff - "$at_stdout" || at_failed=:
5702 at_fn_check_status 0 $at_status "$at_srcdir/search.at:78"
5703 $at_failed && at_fn_log_failure
5704 $at_traceon; }
5705
5706
5707
5708 set +x
5709 $at_times_p && times >"$at_times_file"
5710 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5711 read at_status <"$at_status_file"
5712 #AT_STOP_48
5713 #AT_START_49
5714 at_fn_group_banner 49 'search.at:83' \
5715 "search subject" " " 3
5716 at_xfail=no
5717 (
5718 printf "%s\n" "49. $at_setup_line: testing $at_desc ..."
5719 $at_traceon
5720
5721
5722
5723 cwd=`pwd`
5724
5725
5726
5727
5728
5729 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5730 if test -e INBOX/search.mbox; then
5731
5732 # First, set all modes to +w
5733 find INBOX/search.mbox | xargs chmod +w
5734 # Then, remove executable bit from regular files
5735 find INBOX/search.mbox -type f | xargs chmod -x
5736
5737 else
5738
5739 # First, set all modes to +w
5740 find INBOX | xargs chmod +w
5741 # Then, remove executable bit from regular files
5742 find INBOX -type f | xargs chmod -x
5743
5744 fi
5745
5746
5747
5748
5749 { set +x
5750 printf "%s\n" "$at_srcdir/search.at:83:
5751
5752 test -d \$HOME || exit 77
5753 make_config
5754 cat >input <<'_ATEOF'
5755 1 SELECT INBOX
5756 2 SEARCH SUBJECT \"Alliance\"
5757 X LOGOUT
5758 _ATEOF
5759
5760 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
5761 "
5762 at_fn_check_prepare_notrace 'an embedded newline' "search.at:83"
5763 ( $at_check_trace;
5764
5765 test -d $HOME || exit 77
5766 make_config
5767 cat >input <<'_ATEOF'
5768 1 SELECT INBOX
5769 2 SEARCH SUBJECT "Alliance"
5770 X LOGOUT
5771 _ATEOF
5772
5773 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
5774
5775 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5776 at_status=$? at_failed=false
5777 $at_check_filter
5778 at_fn_diff_devnull "$at_stderr" || at_failed=:
5779 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
5780 * SEARCH 6
5781 2 OK SEARCH Completed
5782 * BYE Session terminating.
5783 X OK LOGOUT Completed
5784 " | \
5785 $at_diff - "$at_stdout" || at_failed=:
5786 at_fn_check_status 0 $at_status "$at_srcdir/search.at:83"
5787 $at_failed && at_fn_log_failure
5788 $at_traceon; }
5789
5790
5791
5792 set +x
5793 $at_times_p && times >"$at_times_file"
5794 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5795 read at_status <"$at_status_file"
5796 #AT_STOP_49
5797 #AT_START_50
5798 at_fn_group_banner 50 'search.at:91' \
5799 "search header" " " 3
5800 at_xfail=no
5801 (
5802 printf "%s\n" "50. $at_setup_line: testing $at_desc ..."
5803 $at_traceon
5804
5805
5806
5807 cwd=`pwd`
5808
5809
5810
5811
5812
5813 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5814 if test -e INBOX/search.mbox; then
5815
5816 # First, set all modes to +w
5817 find INBOX/search.mbox | xargs chmod +w
5818 # Then, remove executable bit from regular files
5819 find INBOX/search.mbox -type f | xargs chmod -x
5820
5821 else
5822
5823 # First, set all modes to +w
5824 find INBOX | xargs chmod +w
5825 # Then, remove executable bit from regular files
5826 find INBOX -type f | xargs chmod -x
5827
5828 fi
5829
5830
5831
5832
5833 { set +x
5834 printf "%s\n" "$at_srcdir/search.at:91:
5835
5836 test -d \$HOME || exit 77
5837 make_config
5838 cat >input <<'_ATEOF'
5839 1 SELECT INBOX
5840 2 SEARCH HEADER Message-Id \"<[email protected]>\"
5841 X LOGOUT
5842 _ATEOF
5843
5844 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
5845 "
5846 at_fn_check_prepare_notrace 'an embedded newline' "search.at:91"
5847 ( $at_check_trace;
5848
5849 test -d $HOME || exit 77
5850 make_config
5851 cat >input <<'_ATEOF'
5852 1 SELECT INBOX
5853 2 SEARCH HEADER Message-Id "<[email protected]>"
5854 X LOGOUT
5855 _ATEOF
5856
5857 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
5858
5859 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5860 at_status=$? at_failed=false
5861 $at_check_filter
5862 at_fn_diff_devnull "$at_stderr" || at_failed=:
5863 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
5864 * SEARCH 3
5865 2 OK SEARCH Completed
5866 * BYE Session terminating.
5867 X OK LOGOUT Completed
5868 " | \
5869 $at_diff - "$at_stdout" || at_failed=:
5870 at_fn_check_status 0 $at_status "$at_srcdir/search.at:91"
5871 $at_failed && at_fn_log_failure
5872 $at_traceon; }
5873
5874
5875
5876 set +x
5877 $at_times_p && times >"$at_times_file"
5878 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5879 read at_status <"$at_status_file"
5880 #AT_STOP_50
5881 #AT_START_51
5882 at_fn_group_banner 51 'search.at:96' \
5883 "search cc" " " 3
5884 at_xfail=no
5885 (
5886 printf "%s\n" "51. $at_setup_line: testing $at_desc ..."
5887 $at_traceon
5888
5889
5890
5891 cwd=`pwd`
5892
5893
5894
5895
5896
5897 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5898 if test -e INBOX/search.mbox; then
5899
5900 # First, set all modes to +w
5901 find INBOX/search.mbox | xargs chmod +w
5902 # Then, remove executable bit from regular files
5903 find INBOX/search.mbox -type f | xargs chmod -x
5904
5905 else
5906
5907 # First, set all modes to +w
5908 find INBOX | xargs chmod +w
5909 # Then, remove executable bit from regular files
5910 find INBOX -type f | xargs chmod -x
5911
5912 fi
5913
5914
5915
5916
5917 { set +x
5918 printf "%s\n" "$at_srcdir/search.at:96:
5919
5920 test -d \$HOME || exit 77
5921 make_config
5922 cat >input <<'_ATEOF'
5923 1 SELECT INBOX
5924 2 SEARCH CC Corrector
5925 X LOGOUT
5926 _ATEOF
5927
5928 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
5929 "
5930 at_fn_check_prepare_notrace 'an embedded newline' "search.at:96"
5931 ( $at_check_trace;
5932
5933 test -d $HOME || exit 77
5934 make_config
5935 cat >input <<'_ATEOF'
5936 1 SELECT INBOX
5937 2 SEARCH CC Corrector
5938 X LOGOUT
5939 _ATEOF
5940
5941 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
5942
5943 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5944 at_status=$? at_failed=false
5945 $at_check_filter
5946 at_fn_diff_devnull "$at_stderr" || at_failed=:
5947 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
5948 * SEARCH 6
5949 2 OK SEARCH Completed
5950 * BYE Session terminating.
5951 X OK LOGOUT Completed
5952 " | \
5953 $at_diff - "$at_stdout" || at_failed=:
5954 at_fn_check_status 0 $at_status "$at_srcdir/search.at:96"
5955 $at_failed && at_fn_log_failure
5956 $at_traceon; }
5957
5958
5959
5960 set +x
5961 $at_times_p && times >"$at_times_file"
5962 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5963 read at_status <"$at_status_file"
5964 #AT_STOP_51
5965 #AT_START_52
5966 at_fn_group_banner 52 'search.at:101' \
5967 "search to" " " 3
5968 at_xfail=no
5969 (
5970 printf "%s\n" "52. $at_setup_line: testing $at_desc ..."
5971 $at_traceon
5972
5973
5974
5975 cwd=`pwd`
5976
5977
5978
5979
5980
5981 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
5982 if test -e INBOX/search.mbox; then
5983
5984 # First, set all modes to +w
5985 find INBOX/search.mbox | xargs chmod +w
5986 # Then, remove executable bit from regular files
5987 find INBOX/search.mbox -type f | xargs chmod -x
5988
5989 else
5990
5991 # First, set all modes to +w
5992 find INBOX | xargs chmod +w
5993 # Then, remove executable bit from regular files
5994 find INBOX -type f | xargs chmod -x
5995
5996 fi
5997
5998
5999
6000
6001 { set +x
6002 printf "%s\n" "$at_srcdir/search.at:101:
6003
6004 test -d \$HOME || exit 77
6005 make_config
6006 cat >input <<'_ATEOF'
6007 1 SELECT INBOX
6008 2 SEARCH TO editor+recheck
6009 X LOGOUT
6010 _ATEOF
6011
6012 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6013 "
6014 at_fn_check_prepare_notrace 'an embedded newline' "search.at:101"
6015 ( $at_check_trace;
6016
6017 test -d $HOME || exit 77
6018 make_config
6019 cat >input <<'_ATEOF'
6020 1 SELECT INBOX
6021 2 SEARCH TO editor+recheck
6022 X LOGOUT
6023 _ATEOF
6024
6025 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6026
6027 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6028 at_status=$? at_failed=false
6029 $at_check_filter
6030 at_fn_diff_devnull "$at_stderr" || at_failed=:
6031 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6032 * SEARCH 7
6033 2 OK SEARCH Completed
6034 * BYE Session terminating.
6035 X OK LOGOUT Completed
6036 " | \
6037 $at_diff - "$at_stdout" || at_failed=:
6038 at_fn_check_status 0 $at_status "$at_srcdir/search.at:101"
6039 $at_failed && at_fn_log_failure
6040 $at_traceon; }
6041
6042
6043
6044 set +x
6045 $at_times_p && times >"$at_times_file"
6046 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6047 read at_status <"$at_status_file"
6048 #AT_STOP_52
6049 #AT_START_53
6050 at_fn_group_banner 53 'search.at:107' \
6051 "search sentbefore" " " 3
6052 at_xfail=no
6053 (
6054 printf "%s\n" "53. $at_setup_line: testing $at_desc ..."
6055 $at_traceon
6056
6057
6058
6059 cwd=`pwd`
6060
6061
6062
6063
6064
6065 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6066 if test -e INBOX/search.mbox; then
6067
6068 # First, set all modes to +w
6069 find INBOX/search.mbox | xargs chmod +w
6070 # Then, remove executable bit from regular files
6071 find INBOX/search.mbox -type f | xargs chmod -x
6072
6073 else
6074
6075 # First, set all modes to +w
6076 find INBOX | xargs chmod +w
6077 # Then, remove executable bit from regular files
6078 find INBOX -type f | xargs chmod -x
6079
6080 fi
6081
6082
6083
6084
6085 { set +x
6086 printf "%s\n" "$at_srcdir/search.at:107:
6087
6088 test -d \$HOME || exit 77
6089 make_config
6090 cat >input <<'_ATEOF'
6091 1 SELECT INBOX
6092 2 SEARCH SENTBEFORE \"30-Jul-2002\"
6093 X LOGOUT
6094 _ATEOF
6095
6096 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6097 "
6098 at_fn_check_prepare_notrace 'an embedded newline' "search.at:107"
6099 ( $at_check_trace;
6100
6101 test -d $HOME || exit 77
6102 make_config
6103 cat >input <<'_ATEOF'
6104 1 SELECT INBOX
6105 2 SEARCH SENTBEFORE "30-Jul-2002"
6106 X LOGOUT
6107 _ATEOF
6108
6109 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6110
6111 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6112 at_status=$? at_failed=false
6113 $at_check_filter
6114 at_fn_diff_devnull "$at_stderr" || at_failed=:
6115 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6116 * SEARCH 1 2
6117 2 OK SEARCH Completed
6118 * BYE Session terminating.
6119 X OK LOGOUT Completed
6120 " | \
6121 $at_diff - "$at_stdout" || at_failed=:
6122 at_fn_check_status 0 $at_status "$at_srcdir/search.at:107"
6123 $at_failed && at_fn_log_failure
6124 $at_traceon; }
6125
6126
6127
6128 set +x
6129 $at_times_p && times >"$at_times_file"
6130 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6131 read at_status <"$at_status_file"
6132 #AT_STOP_53
6133 #AT_START_54
6134 at_fn_group_banner 54 'search.at:113' \
6135 "search sentsince" " " 3
6136 at_xfail=no
6137 (
6138 printf "%s\n" "54. $at_setup_line: testing $at_desc ..."
6139 $at_traceon
6140
6141
6142
6143 cwd=`pwd`
6144
6145
6146
6147
6148
6149 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6150 if test -e INBOX/search.mbox; then
6151
6152 # First, set all modes to +w
6153 find INBOX/search.mbox | xargs chmod +w
6154 # Then, remove executable bit from regular files
6155 find INBOX/search.mbox -type f | xargs chmod -x
6156
6157 else
6158
6159 # First, set all modes to +w
6160 find INBOX | xargs chmod +w
6161 # Then, remove executable bit from regular files
6162 find INBOX -type f | xargs chmod -x
6163
6164 fi
6165
6166
6167
6168
6169 { set +x
6170 printf "%s\n" "$at_srcdir/search.at:113:
6171
6172 test -d \$HOME || exit 77
6173 make_config
6174 cat >input <<'_ATEOF'
6175 1 SELECT INBOX
6176 2 SEARCH SENTSINCE \"31-Jul-2002\"
6177 X LOGOUT
6178 _ATEOF
6179
6180 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6181 "
6182 at_fn_check_prepare_notrace 'an embedded newline' "search.at:113"
6183 ( $at_check_trace;
6184
6185 test -d $HOME || exit 77
6186 make_config
6187 cat >input <<'_ATEOF'
6188 1 SELECT INBOX
6189 2 SEARCH SENTSINCE "31-Jul-2002"
6190 X LOGOUT
6191 _ATEOF
6192
6193 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6194
6195 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6196 at_status=$? at_failed=false
6197 $at_check_filter
6198 at_fn_diff_devnull "$at_stderr" || at_failed=:
6199 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6200 * SEARCH 5 6 7 8
6201 2 OK SEARCH Completed
6202 * BYE Session terminating.
6203 X OK LOGOUT Completed
6204 " | \
6205 $at_diff - "$at_stdout" || at_failed=:
6206 at_fn_check_status 0 $at_status "$at_srcdir/search.at:113"
6207 $at_failed && at_fn_log_failure
6208 $at_traceon; }
6209
6210
6211
6212 set +x
6213 $at_times_p && times >"$at_times_file"
6214 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6215 read at_status <"$at_status_file"
6216 #AT_STOP_54
6217 #AT_START_55
6218 at_fn_group_banner 55 'search.at:118' \
6219 "search beforedate" " " 3
6220 at_xfail=no
6221 (
6222 printf "%s\n" "55. $at_setup_line: testing $at_desc ..."
6223 $at_traceon
6224
6225
6226
6227 cwd=`pwd`
6228
6229
6230
6231
6232
6233 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6234 if test -e INBOX/search.mbox; then
6235
6236 # First, set all modes to +w
6237 find INBOX/search.mbox | xargs chmod +w
6238 # Then, remove executable bit from regular files
6239 find INBOX/search.mbox -type f | xargs chmod -x
6240
6241 else
6242
6243 # First, set all modes to +w
6244 find INBOX | xargs chmod +w
6245 # Then, remove executable bit from regular files
6246 find INBOX -type f | xargs chmod -x
6247
6248 fi
6249
6250
6251
6252
6253 { set +x
6254 printf "%s\n" "$at_srcdir/search.at:118:
6255
6256 test -d \$HOME || exit 77
6257 make_config
6258 cat >input <<'_ATEOF'
6259 1 SELECT INBOX
6260 2 SEARCH BEFORE \"30-Jul-2002\"
6261 X LOGOUT
6262 _ATEOF
6263
6264 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6265 "
6266 at_fn_check_prepare_notrace 'an embedded newline' "search.at:118"
6267 ( $at_check_trace;
6268
6269 test -d $HOME || exit 77
6270 make_config
6271 cat >input <<'_ATEOF'
6272 1 SELECT INBOX
6273 2 SEARCH BEFORE "30-Jul-2002"
6274 X LOGOUT
6275 _ATEOF
6276
6277 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6278
6279 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6280 at_status=$? at_failed=false
6281 $at_check_filter
6282 at_fn_diff_devnull "$at_stderr" || at_failed=:
6283 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6284 * SEARCH 1
6285 2 OK SEARCH Completed
6286 * BYE Session terminating.
6287 X OK LOGOUT Completed
6288 " | \
6289 $at_diff - "$at_stdout" || at_failed=:
6290 at_fn_check_status 0 $at_status "$at_srcdir/search.at:118"
6291 $at_failed && at_fn_log_failure
6292 $at_traceon; }
6293
6294
6295
6296 set +x
6297 $at_times_p && times >"$at_times_file"
6298 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6299 read at_status <"$at_status_file"
6300 #AT_STOP_55
6301 #AT_START_56
6302 at_fn_group_banner 56 'search.at:123' \
6303 "search since" " " 3
6304 at_xfail=no
6305 (
6306 printf "%s\n" "56. $at_setup_line: testing $at_desc ..."
6307 $at_traceon
6308
6309
6310
6311 cwd=`pwd`
6312
6313
6314
6315
6316
6317 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6318 if test -e INBOX/search.mbox; then
6319
6320 # First, set all modes to +w
6321 find INBOX/search.mbox | xargs chmod +w
6322 # Then, remove executable bit from regular files
6323 find INBOX/search.mbox -type f | xargs chmod -x
6324
6325 else
6326
6327 # First, set all modes to +w
6328 find INBOX | xargs chmod +w
6329 # Then, remove executable bit from regular files
6330 find INBOX -type f | xargs chmod -x
6331
6332 fi
6333
6334
6335
6336
6337 { set +x
6338 printf "%s\n" "$at_srcdir/search.at:123:
6339
6340 test -d \$HOME || exit 77
6341 make_config
6342 cat >input <<'_ATEOF'
6343 1 SELECT INBOX
6344 2 SEARCH SINCE \"30-Jul-2002\"
6345 X LOGOUT
6346 _ATEOF
6347
6348 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6349 "
6350 at_fn_check_prepare_notrace 'an embedded newline' "search.at:123"
6351 ( $at_check_trace;
6352
6353 test -d $HOME || exit 77
6354 make_config
6355 cat >input <<'_ATEOF'
6356 1 SELECT INBOX
6357 2 SEARCH SINCE "30-Jul-2002"
6358 X LOGOUT
6359 _ATEOF
6360
6361 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6362
6363 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6364 at_status=$? at_failed=false
6365 $at_check_filter
6366 at_fn_diff_devnull "$at_stderr" || at_failed=:
6367 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6368 * SEARCH 2 3 4 5 6 7 8
6369 2 OK SEARCH Completed
6370 * BYE Session terminating.
6371 X OK LOGOUT Completed
6372 " | \
6373 $at_diff - "$at_stdout" || at_failed=:
6374 at_fn_check_status 0 $at_status "$at_srcdir/search.at:123"
6375 $at_failed && at_fn_log_failure
6376 $at_traceon; }
6377
6378
6379
6380 set +x
6381 $at_times_p && times >"$at_times_file"
6382 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6383 read at_status <"$at_status_file"
6384 #AT_STOP_56
6385 #AT_START_57
6386 at_fn_group_banner 57 'search.at:127' \
6387 "search answered" " " 3
6388 at_xfail=no
6389 (
6390 printf "%s\n" "57. $at_setup_line: testing $at_desc ..."
6391 $at_traceon
6392
6393
6394
6395 cwd=`pwd`
6396
6397
6398
6399
6400
6401 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6402 if test -e INBOX/search.mbox; then
6403
6404 # First, set all modes to +w
6405 find INBOX/search.mbox | xargs chmod +w
6406 # Then, remove executable bit from regular files
6407 find INBOX/search.mbox -type f | xargs chmod -x
6408
6409 else
6410
6411 # First, set all modes to +w
6412 find INBOX | xargs chmod +w
6413 # Then, remove executable bit from regular files
6414 find INBOX -type f | xargs chmod -x
6415
6416 fi
6417
6418
6419
6420
6421 { set +x
6422 printf "%s\n" "$at_srcdir/search.at:127:
6423
6424 test -d \$HOME || exit 77
6425 make_config
6426 cat >input <<'_ATEOF'
6427 1 SELECT INBOX
6428 2 SEARCH ANSWERED
6429 X LOGOUT
6430 _ATEOF
6431
6432 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6433 "
6434 at_fn_check_prepare_notrace 'an embedded newline' "search.at:127"
6435 ( $at_check_trace;
6436
6437 test -d $HOME || exit 77
6438 make_config
6439 cat >input <<'_ATEOF'
6440 1 SELECT INBOX
6441 2 SEARCH ANSWERED
6442 X LOGOUT
6443 _ATEOF
6444
6445 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6446
6447 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6448 at_status=$? at_failed=false
6449 $at_check_filter
6450 at_fn_diff_devnull "$at_stderr" || at_failed=:
6451 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6452 * SEARCH 2 3
6453 2 OK SEARCH Completed
6454 * BYE Session terminating.
6455 X OK LOGOUT Completed
6456 " | \
6457 $at_diff - "$at_stdout" || at_failed=:
6458 at_fn_check_status 0 $at_status "$at_srcdir/search.at:127"
6459 $at_failed && at_fn_log_failure
6460 $at_traceon; }
6461
6462
6463
6464 set +x
6465 $at_times_p && times >"$at_times_file"
6466 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6467 read at_status <"$at_status_file"
6468 #AT_STOP_57
6469 #AT_START_58
6470 at_fn_group_banner 58 'search.at:132' \
6471 "search text" " " 3
6472 at_xfail=no
6473 (
6474 printf "%s\n" "58. $at_setup_line: testing $at_desc ..."
6475 $at_traceon
6476
6477
6478
6479 cwd=`pwd`
6480
6481
6482
6483
6484
6485 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6486 if test -e INBOX/search.mbox; then
6487
6488 # First, set all modes to +w
6489 find INBOX/search.mbox | xargs chmod +w
6490 # Then, remove executable bit from regular files
6491 find INBOX/search.mbox -type f | xargs chmod -x
6492
6493 else
6494
6495 # First, set all modes to +w
6496 find INBOX | xargs chmod +w
6497 # Then, remove executable bit from regular files
6498 find INBOX -type f | xargs chmod -x
6499
6500 fi
6501
6502
6503
6504
6505 { set +x
6506 printf "%s\n" "$at_srcdir/search.at:132:
6507
6508 test -d \$HOME || exit 77
6509 make_config
6510 cat >input <<'_ATEOF'
6511 1 SELECT INBOX
6512 2 SEARCH TEXT person
6513 X LOGOUT
6514 _ATEOF
6515
6516 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6517 "
6518 at_fn_check_prepare_notrace 'an embedded newline' "search.at:132"
6519 ( $at_check_trace;
6520
6521 test -d $HOME || exit 77
6522 make_config
6523 cat >input <<'_ATEOF'
6524 1 SELECT INBOX
6525 2 SEARCH TEXT person
6526 X LOGOUT
6527 _ATEOF
6528
6529 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6530
6531 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6532 at_status=$? at_failed=false
6533 $at_check_filter
6534 at_fn_diff_devnull "$at_stderr" || at_failed=:
6535 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6536 * SEARCH 2 5 8
6537 2 OK SEARCH Completed
6538 * BYE Session terminating.
6539 X OK LOGOUT Completed
6540 " | \
6541 $at_diff - "$at_stdout" || at_failed=:
6542 at_fn_check_status 0 $at_status "$at_srcdir/search.at:132"
6543 $at_failed && at_fn_log_failure
6544 $at_traceon; }
6545
6546
6547
6548 set +x
6549 $at_times_p && times >"$at_times_file"
6550 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6551 read at_status <"$at_status_file"
6552 #AT_STOP_58
6553 #AT_START_59
6554 at_fn_group_banner 59 'search.at:137' \
6555 "search multiple keys (implicit AND) 1" " " 3
6556 at_xfail=no
6557 (
6558 printf "%s\n" "59. $at_setup_line: testing $at_desc ..."
6559 $at_traceon
6560
6561
6562
6563 cwd=`pwd`
6564
6565
6566
6567
6568
6569 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6570 if test -e INBOX/search.mbox; then
6571
6572 # First, set all modes to +w
6573 find INBOX/search.mbox | xargs chmod +w
6574 # Then, remove executable bit from regular files
6575 find INBOX/search.mbox -type f | xargs chmod -x
6576
6577 else
6578
6579 # First, set all modes to +w
6580 find INBOX | xargs chmod +w
6581 # Then, remove executable bit from regular files
6582 find INBOX -type f | xargs chmod -x
6583
6584 fi
6585
6586
6587
6588
6589 { set +x
6590 printf "%s\n" "$at_srcdir/search.at:137:
6591
6592 test -d \$HOME || exit 77
6593 make_config
6594 cat >input <<'_ATEOF'
6595 1 SELECT INBOX
6596 2 SEARCH TEXT person FROM corrector
6597 X LOGOUT
6598 _ATEOF
6599
6600 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6601 "
6602 at_fn_check_prepare_notrace 'an embedded newline' "search.at:137"
6603 ( $at_check_trace;
6604
6605 test -d $HOME || exit 77
6606 make_config
6607 cat >input <<'_ATEOF'
6608 1 SELECT INBOX
6609 2 SEARCH TEXT person FROM corrector
6610 X LOGOUT
6611 _ATEOF
6612
6613 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6614
6615 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6616 at_status=$? at_failed=false
6617 $at_check_filter
6618 at_fn_diff_devnull "$at_stderr" || at_failed=:
6619 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6620 * SEARCH 2 8
6621 2 OK SEARCH Completed
6622 * BYE Session terminating.
6623 X OK LOGOUT Completed
6624 " | \
6625 $at_diff - "$at_stdout" || at_failed=:
6626 at_fn_check_status 0 $at_status "$at_srcdir/search.at:137"
6627 $at_failed && at_fn_log_failure
6628 $at_traceon; }
6629
6630
6631
6632 set +x
6633 $at_times_p && times >"$at_times_file"
6634 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6635 read at_status <"$at_status_file"
6636 #AT_STOP_59
6637 #AT_START_60
6638 at_fn_group_banner 60 'search.at:140' \
6639 "search multiple keys (implicit AND) 2" " " 3
6640 at_xfail=no
6641 (
6642 printf "%s\n" "60. $at_setup_line: testing $at_desc ..."
6643 $at_traceon
6644
6645
6646
6647 cwd=`pwd`
6648
6649
6650
6651
6652
6653 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6654 if test -e INBOX/search.mbox; then
6655
6656 # First, set all modes to +w
6657 find INBOX/search.mbox | xargs chmod +w
6658 # Then, remove executable bit from regular files
6659 find INBOX/search.mbox -type f | xargs chmod -x
6660
6661 else
6662
6663 # First, set all modes to +w
6664 find INBOX | xargs chmod +w
6665 # Then, remove executable bit from regular files
6666 find INBOX -type f | xargs chmod -x
6667
6668 fi
6669
6670
6671
6672
6673 { set +x
6674 printf "%s\n" "$at_srcdir/search.at:140:
6675
6676 test -d \$HOME || exit 77
6677 make_config
6678 cat >input <<'_ATEOF'
6679 1 SELECT INBOX
6680 2 SEARCH SENTSINCE \"30-Jul-2002\" SENTBEFORE \"31-Jul-2002\"
6681 X LOGOUT
6682 _ATEOF
6683
6684 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6685 "
6686 at_fn_check_prepare_notrace 'an embedded newline' "search.at:140"
6687 ( $at_check_trace;
6688
6689 test -d $HOME || exit 77
6690 make_config
6691 cat >input <<'_ATEOF'
6692 1 SELECT INBOX
6693 2 SEARCH SENTSINCE "30-Jul-2002" SENTBEFORE "31-Jul-2002"
6694 X LOGOUT
6695 _ATEOF
6696
6697 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6698
6699 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6700 at_status=$? at_failed=false
6701 $at_check_filter
6702 at_fn_diff_devnull "$at_stderr" || at_failed=:
6703 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6704 * SEARCH 3 4
6705 2 OK SEARCH Completed
6706 * BYE Session terminating.
6707 X OK LOGOUT Completed
6708 " | \
6709 $at_diff - "$at_stdout" || at_failed=:
6710 at_fn_check_status 0 $at_status "$at_srcdir/search.at:140"
6711 $at_failed && at_fn_log_failure
6712 $at_traceon; }
6713
6714
6715
6716 set +x
6717 $at_times_p && times >"$at_times_file"
6718 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6719 read at_status <"$at_status_file"
6720 #AT_STOP_60
6721 #AT_START_61
6722 at_fn_group_banner 61 'search.at:145' \
6723 "search or" " " 3
6724 at_xfail=no
6725 (
6726 printf "%s\n" "61. $at_setup_line: testing $at_desc ..."
6727 $at_traceon
6728
6729
6730
6731 cwd=`pwd`
6732
6733
6734
6735
6736
6737 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6738 if test -e INBOX/search.mbox; then
6739
6740 # First, set all modes to +w
6741 find INBOX/search.mbox | xargs chmod +w
6742 # Then, remove executable bit from regular files
6743 find INBOX/search.mbox -type f | xargs chmod -x
6744
6745 else
6746
6747 # First, set all modes to +w
6748 find INBOX | xargs chmod +w
6749 # Then, remove executable bit from regular files
6750 find INBOX -type f | xargs chmod -x
6751
6752 fi
6753
6754
6755
6756
6757 { set +x
6758 printf "%s\n" "$at_srcdir/search.at:145:
6759
6760 test -d \$HOME || exit 77
6761 make_config
6762 cat >input <<'_ATEOF'
6763 1 SELECT INBOX
6764 2 SEARCH OR FROM corrector ANSWERED
6765 X LOGOUT
6766 _ATEOF
6767
6768 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6769 "
6770 at_fn_check_prepare_notrace 'an embedded newline' "search.at:145"
6771 ( $at_check_trace;
6772
6773 test -d $HOME || exit 77
6774 make_config
6775 cat >input <<'_ATEOF'
6776 1 SELECT INBOX
6777 2 SEARCH OR FROM corrector ANSWERED
6778 X LOGOUT
6779 _ATEOF
6780
6781 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6782
6783 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6784 at_status=$? at_failed=false
6785 $at_check_filter
6786 at_fn_diff_devnull "$at_stderr" || at_failed=:
6787 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6788 * SEARCH 2 3 4 8
6789 2 OK SEARCH Completed
6790 * BYE Session terminating.
6791 X OK LOGOUT Completed
6792 " | \
6793 $at_diff - "$at_stdout" || at_failed=:
6794 at_fn_check_status 0 $at_status "$at_srcdir/search.at:145"
6795 $at_failed && at_fn_log_failure
6796 $at_traceon; }
6797
6798
6799
6800 set +x
6801 $at_times_p && times >"$at_times_file"
6802 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6803 read at_status <"$at_status_file"
6804 #AT_STOP_61
6805 #AT_START_62
6806 at_fn_group_banner 62 'search.at:149' \
6807 "precedence 1" " " 3
6808 at_xfail=no
6809 (
6810 printf "%s\n" "62. $at_setup_line: testing $at_desc ..."
6811 $at_traceon
6812
6813
6814
6815 cwd=`pwd`
6816
6817
6818
6819
6820
6821 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6822 if test -e INBOX/search.mbox; then
6823
6824 # First, set all modes to +w
6825 find INBOX/search.mbox | xargs chmod +w
6826 # Then, remove executable bit from regular files
6827 find INBOX/search.mbox -type f | xargs chmod -x
6828
6829 else
6830
6831 # First, set all modes to +w
6832 find INBOX | xargs chmod +w
6833 # Then, remove executable bit from regular files
6834 find INBOX -type f | xargs chmod -x
6835
6836 fi
6837
6838
6839
6840
6841 { set +x
6842 printf "%s\n" "$at_srcdir/search.at:149:
6843
6844 test -d \$HOME || exit 77
6845 make_config
6846 cat >input <<'_ATEOF'
6847 1 SELECT INBOX
6848 2 SEARCH (OR FROM corrector ANSWERED) SENTSINCE \"30-Jul-2002\"
6849 X LOGOUT
6850 _ATEOF
6851
6852 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6853 "
6854 at_fn_check_prepare_notrace 'an embedded newline' "search.at:149"
6855 ( $at_check_trace;
6856
6857 test -d $HOME || exit 77
6858 make_config
6859 cat >input <<'_ATEOF'
6860 1 SELECT INBOX
6861 2 SEARCH (OR FROM corrector ANSWERED) SENTSINCE "30-Jul-2002"
6862 X LOGOUT
6863 _ATEOF
6864
6865 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6866
6867 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6868 at_status=$? at_failed=false
6869 $at_check_filter
6870 at_fn_diff_devnull "$at_stderr" || at_failed=:
6871 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6872 * SEARCH 3 4 8
6873 2 OK SEARCH Completed
6874 * BYE Session terminating.
6875 X OK LOGOUT Completed
6876 " | \
6877 $at_diff - "$at_stdout" || at_failed=:
6878 at_fn_check_status 0 $at_status "$at_srcdir/search.at:149"
6879 $at_failed && at_fn_log_failure
6880 $at_traceon; }
6881
6882
6883
6884 set +x
6885 $at_times_p && times >"$at_times_file"
6886 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6887 read at_status <"$at_status_file"
6888 #AT_STOP_62
6889 #AT_START_63
6890 at_fn_group_banner 63 'search.at:152' \
6891 "precedence 2" " " 3
6892 at_xfail=no
6893 (
6894 printf "%s\n" "63. $at_setup_line: testing $at_desc ..."
6895 $at_traceon
6896
6897
6898
6899 cwd=`pwd`
6900
6901
6902
6903
6904
6905 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6906 if test -e INBOX/search.mbox; then
6907
6908 # First, set all modes to +w
6909 find INBOX/search.mbox | xargs chmod +w
6910 # Then, remove executable bit from regular files
6911 find INBOX/search.mbox -type f | xargs chmod -x
6912
6913 else
6914
6915 # First, set all modes to +w
6916 find INBOX | xargs chmod +w
6917 # Then, remove executable bit from regular files
6918 find INBOX -type f | xargs chmod -x
6919
6920 fi
6921
6922
6923
6924
6925 { set +x
6926 printf "%s\n" "$at_srcdir/search.at:152:
6927
6928 test -d \$HOME || exit 77
6929 make_config
6930 cat >input <<'_ATEOF'
6931 1 SELECT INBOX
6932 2 SEARCH OR FROM corrector ANSWERED SENTSINCE \"30-Jul-2002\"
6933 X LOGOUT
6934 _ATEOF
6935
6936 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
6937 "
6938 at_fn_check_prepare_notrace 'an embedded newline' "search.at:152"
6939 ( $at_check_trace;
6940
6941 test -d $HOME || exit 77
6942 make_config
6943 cat >input <<'_ATEOF'
6944 1 SELECT INBOX
6945 2 SEARCH OR FROM corrector ANSWERED SENTSINCE "30-Jul-2002"
6946 X LOGOUT
6947 _ATEOF
6948
6949 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
6950
6951 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6952 at_status=$? at_failed=false
6953 $at_check_filter
6954 at_fn_diff_devnull "$at_stderr" || at_failed=:
6955 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
6956 * SEARCH 3 4 8
6957 2 OK SEARCH Completed
6958 * BYE Session terminating.
6959 X OK LOGOUT Completed
6960 " | \
6961 $at_diff - "$at_stdout" || at_failed=:
6962 at_fn_check_status 0 $at_status "$at_srcdir/search.at:152"
6963 $at_failed && at_fn_log_failure
6964 $at_traceon; }
6965
6966
6967
6968 set +x
6969 $at_times_p && times >"$at_times_file"
6970 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6971 read at_status <"$at_status_file"
6972 #AT_STOP_63
6973 #AT_START_64
6974 at_fn_group_banner 64 'search.at:155' \
6975 "precedence 3" " " 3
6976 at_xfail=no
6977 (
6978 printf "%s\n" "64. $at_setup_line: testing $at_desc ..."
6979 $at_traceon
6980
6981
6982
6983 cwd=`pwd`
6984
6985
6986
6987
6988
6989 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
6990 if test -e INBOX/search.mbox; then
6991
6992 # First, set all modes to +w
6993 find INBOX/search.mbox | xargs chmod +w
6994 # Then, remove executable bit from regular files
6995 find INBOX/search.mbox -type f | xargs chmod -x
6996
6997 else
6998
6999 # First, set all modes to +w
7000 find INBOX | xargs chmod +w
7001 # Then, remove executable bit from regular files
7002 find INBOX -type f | xargs chmod -x
7003
7004 fi
7005
7006
7007
7008
7009 { set +x
7010 printf "%s\n" "$at_srcdir/search.at:155:
7011
7012 test -d \$HOME || exit 77
7013 make_config
7014 cat >input <<'_ATEOF'
7015 1 SELECT INBOX
7016 2 SEARCH OR FROM corrector (ANSWERED SENTSINCE \"30-Jul-2002\")
7017 X LOGOUT
7018 _ATEOF
7019
7020 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7021 "
7022 at_fn_check_prepare_notrace 'an embedded newline' "search.at:155"
7023 ( $at_check_trace;
7024
7025 test -d $HOME || exit 77
7026 make_config
7027 cat >input <<'_ATEOF'
7028 1 SELECT INBOX
7029 2 SEARCH OR FROM corrector (ANSWERED SENTSINCE "30-Jul-2002")
7030 X LOGOUT
7031 _ATEOF
7032
7033 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
7034
7035 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7036 at_status=$? at_failed=false
7037 $at_check_filter
7038 at_fn_diff_devnull "$at_stderr" || at_failed=:
7039 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
7040 * SEARCH 2 3 4 8
7041 2 OK SEARCH Completed
7042 * BYE Session terminating.
7043 X OK LOGOUT Completed
7044 " | \
7045 $at_diff - "$at_stdout" || at_failed=:
7046 at_fn_check_status 0 $at_status "$at_srcdir/search.at:155"
7047 $at_failed && at_fn_log_failure
7048 $at_traceon; }
7049
7050
7051
7052 set +x
7053 $at_times_p && times >"$at_times_file"
7054 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7055 read at_status <"$at_status_file"
7056 #AT_STOP_64
7057 #AT_START_65
7058 at_fn_group_banner 65 'search.at:162' \
7059 "BODY - plain message" " " 3
7060 at_xfail=no
7061 (
7062 printf "%s\n" "65. $at_setup_line: testing $at_desc ..."
7063 $at_traceon
7064
7065
7066
7067 cwd=`pwd`
7068
7069
7070
7071
7072
7073 cp -r $abs_top_srcdir/testsuite/spool/search2.mbox INBOX
7074 if test -e INBOX/search2.mbox; then
7075
7076 # First, set all modes to +w
7077 find INBOX/search2.mbox | xargs chmod +w
7078 # Then, remove executable bit from regular files
7079 find INBOX/search2.mbox -type f | xargs chmod -x
7080
7081 else
7082
7083 # First, set all modes to +w
7084 find INBOX | xargs chmod +w
7085 # Then, remove executable bit from regular files
7086 find INBOX -type f | xargs chmod -x
7087
7088 fi
7089
7090
7091
7092
7093 { set +x
7094 printf "%s\n" "$at_srcdir/search.at:162:
7095
7096 test -d \$HOME || exit 77
7097 make_config
7098 cat >input <<'_ATEOF'
7099 1 SELECT INBOX
7100 2 SEARCH BODY Jujub
7101 X LOGOUT
7102 _ATEOF
7103
7104 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7105 "
7106 at_fn_check_prepare_notrace 'an embedded newline' "search.at:162"
7107 ( $at_check_trace;
7108
7109 test -d $HOME || exit 77
7110 make_config
7111 cat >input <<'_ATEOF'
7112 1 SELECT INBOX
7113 2 SEARCH BODY Jujub
7114 X LOGOUT
7115 _ATEOF
7116
7117 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
7118
7119 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7120 at_status=$? at_failed=false
7121 $at_check_filter
7122 at_fn_diff_devnull "$at_stderr" || at_failed=:
7123 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
7124 * SEARCH 1
7125 2 OK SEARCH Completed
7126 * BYE Session terminating.
7127 X OK LOGOUT Completed
7128 " | \
7129 $at_diff - "$at_stdout" || at_failed=:
7130 at_fn_check_status 0 $at_status "$at_srcdir/search.at:162"
7131 $at_failed && at_fn_log_failure
7132 $at_traceon; }
7133
7134
7135
7136 set +x
7137 $at_times_p && times >"$at_times_file"
7138 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7139 read at_status <"$at_status_file"
7140 #AT_STOP_65
7141 #AT_START_66
7142 at_fn_group_banner 66 'search.at:166' \
7143 "BODY - MIME level 1" " " 3
7144 at_xfail=no
7145 (
7146 printf "%s\n" "66. $at_setup_line: testing $at_desc ..."
7147 $at_traceon
7148
7149
7150
7151 cwd=`pwd`
7152
7153
7154
7155
7156
7157 cp -r $abs_top_srcdir/testsuite/spool/search2.mbox INBOX
7158 if test -e INBOX/search2.mbox; then
7159
7160 # First, set all modes to +w
7161 find INBOX/search2.mbox | xargs chmod +w
7162 # Then, remove executable bit from regular files
7163 find INBOX/search2.mbox -type f | xargs chmod -x
7164
7165 else
7166
7167 # First, set all modes to +w
7168 find INBOX | xargs chmod +w
7169 # Then, remove executable bit from regular files
7170 find INBOX -type f | xargs chmod -x
7171
7172 fi
7173
7174
7175
7176
7177 { set +x
7178 printf "%s\n" "$at_srcdir/search.at:166:
7179
7180 test -d \$HOME || exit 77
7181 make_config
7182 cat >input <<'_ATEOF'
7183 1 SELECT INBOX
7184 2 SEARCH BODY crocodile
7185 X LOGOUT
7186 _ATEOF
7187
7188 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7189 "
7190 at_fn_check_prepare_notrace 'an embedded newline' "search.at:166"
7191 ( $at_check_trace;
7192
7193 test -d $HOME || exit 77
7194 make_config
7195 cat >input <<'_ATEOF'
7196 1 SELECT INBOX
7197 2 SEARCH BODY crocodile
7198 X LOGOUT
7199 _ATEOF
7200
7201 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
7202
7203 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7204 at_status=$? at_failed=false
7205 $at_check_filter
7206 at_fn_diff_devnull "$at_stderr" || at_failed=:
7207 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
7208 * SEARCH 2
7209 2 OK SEARCH Completed
7210 * BYE Session terminating.
7211 X OK LOGOUT Completed
7212 " | \
7213 $at_diff - "$at_stdout" || at_failed=:
7214 at_fn_check_status 0 $at_status "$at_srcdir/search.at:166"
7215 $at_failed && at_fn_log_failure
7216 $at_traceon; }
7217
7218
7219
7220 set +x
7221 $at_times_p && times >"$at_times_file"
7222 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7223 read at_status <"$at_status_file"
7224 #AT_STOP_66
7225 #AT_START_67
7226 at_fn_group_banner 67 'search.at:170' \
7227 "BODY - MIME level 1, base64" " " 3
7228 at_xfail=no
7229 (
7230 printf "%s\n" "67. $at_setup_line: testing $at_desc ..."
7231 $at_traceon
7232
7233
7234
7235 cwd=`pwd`
7236
7237
7238
7239
7240
7241 cp -r $abs_top_srcdir/testsuite/spool/search2.mbox INBOX
7242 if test -e INBOX/search2.mbox; then
7243
7244 # First, set all modes to +w
7245 find INBOX/search2.mbox | xargs chmod +w
7246 # Then, remove executable bit from regular files
7247 find INBOX/search2.mbox -type f | xargs chmod -x
7248
7249 else
7250
7251 # First, set all modes to +w
7252 find INBOX | xargs chmod +w
7253 # Then, remove executable bit from regular files
7254 find INBOX -type f | xargs chmod -x
7255
7256 fi
7257
7258
7259
7260
7261 { set +x
7262 printf "%s\n" "$at_srcdir/search.at:170:
7263
7264 test -d \$HOME || exit 77
7265 make_config
7266 cat >input <<'_ATEOF'
7267 1 SELECT INBOX
7268 2 SEARCH BODY incessantly
7269 X LOGOUT
7270 _ATEOF
7271
7272 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7273 "
7274 at_fn_check_prepare_notrace 'an embedded newline' "search.at:170"
7275 ( $at_check_trace;
7276
7277 test -d $HOME || exit 77
7278 make_config
7279 cat >input <<'_ATEOF'
7280 1 SELECT INBOX
7281 2 SEARCH BODY incessantly
7282 X LOGOUT
7283 _ATEOF
7284
7285 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
7286
7287 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7288 at_status=$? at_failed=false
7289 $at_check_filter
7290 at_fn_diff_devnull "$at_stderr" || at_failed=:
7291 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
7292 * SEARCH 3
7293 2 OK SEARCH Completed
7294 * BYE Session terminating.
7295 X OK LOGOUT Completed
7296 " | \
7297 $at_diff - "$at_stdout" || at_failed=:
7298 at_fn_check_status 0 $at_status "$at_srcdir/search.at:170"
7299 $at_failed && at_fn_log_failure
7300 $at_traceon; }
7301
7302
7303
7304 set +x
7305 $at_times_p && times >"$at_times_file"
7306 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7307 read at_status <"$at_status_file"
7308 #AT_STOP_67
7309 #AT_START_68
7310 at_fn_group_banner 68 'search.at:174' \
7311 "BODY - MIME level 2, base64" " " 3
7312 at_xfail=no
7313 (
7314 printf "%s\n" "68. $at_setup_line: testing $at_desc ..."
7315 $at_traceon
7316
7317
7318
7319 cwd=`pwd`
7320
7321
7322
7323
7324
7325 cp -r $abs_top_srcdir/testsuite/spool/search2.mbox INBOX
7326 if test -e INBOX/search2.mbox; then
7327
7328 # First, set all modes to +w
7329 find INBOX/search2.mbox | xargs chmod +w
7330 # Then, remove executable bit from regular files
7331 find INBOX/search2.mbox -type f | xargs chmod -x
7332
7333 else
7334
7335 # First, set all modes to +w
7336 find INBOX | xargs chmod +w
7337 # Then, remove executable bit from regular files
7338 find INBOX -type f | xargs chmod -x
7339
7340 fi
7341
7342
7343
7344
7345 { set +x
7346 printf "%s\n" "$at_srcdir/search.at:174:
7347
7348 test -d \$HOME || exit 77
7349 make_config
7350 cat >input <<'_ATEOF'
7351 1 SELECT INBOX
7352 2 SEARCH BODY \"I have answered three questions\"
7353 X LOGOUT
7354 _ATEOF
7355
7356 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7357 "
7358 at_fn_check_prepare_notrace 'an embedded newline' "search.at:174"
7359 ( $at_check_trace;
7360
7361 test -d $HOME || exit 77
7362 make_config
7363 cat >input <<'_ATEOF'
7364 1 SELECT INBOX
7365 2 SEARCH BODY "I have answered three questions"
7366 X LOGOUT
7367 _ATEOF
7368
7369 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
7370
7371 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7372 at_status=$? at_failed=false
7373 $at_check_filter
7374 at_fn_diff_devnull "$at_stderr" || at_failed=:
7375 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
7376 * SEARCH 3
7377 2 OK SEARCH Completed
7378 * BYE Session terminating.
7379 X OK LOGOUT Completed
7380 " | \
7381 $at_diff - "$at_stdout" || at_failed=:
7382 at_fn_check_status 0 $at_status "$at_srcdir/search.at:174"
7383 $at_failed && at_fn_log_failure
7384 $at_traceon; }
7385
7386
7387
7388 set +x
7389 $at_times_p && times >"$at_times_file"
7390 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7391 read at_status <"$at_status_file"
7392 #AT_STOP_68
7393 #AT_START_69
7394 at_fn_group_banner 69 'search.at:178' \
7395 "BODY CHARSET" " " 3
7396 at_xfail=no
7397 (
7398 printf "%s\n" "69. $at_setup_line: testing $at_desc ..."
7399 $at_traceon
7400
7401
7402
7403 cwd=`pwd`
7404
7405
7406
7407
7408
7409 cp -r $abs_top_srcdir/testsuite/spool/search2.mbox INBOX
7410 if test -e INBOX/search2.mbox; then
7411
7412 # First, set all modes to +w
7413 find INBOX/search2.mbox | xargs chmod +w
7414 # Then, remove executable bit from regular files
7415 find INBOX/search2.mbox -type f | xargs chmod -x
7416
7417 else
7418
7419 # First, set all modes to +w
7420 find INBOX | xargs chmod +w
7421 # Then, remove executable bit from regular files
7422 find INBOX -type f | xargs chmod -x
7423
7424 fi
7425
7426
7427
7428
7429 { set +x
7430 printf "%s\n" "$at_srcdir/search.at:178:
7431 test \`echo \"seo=\" | ckiconv iso-8859-2 utf-8\` = \"xIXEmQ==\" || exit 77
7432 test -d \$HOME || exit 77
7433 make_config
7434 cat >input <<'_ATEOF'
7435 1 SELECT INBOX
7436 2 SEARCH CHARSET utf-8 BODY \"Ćwicząc, najwyżej słyszę\"
7437 X LOGOUT
7438 _ATEOF
7439
7440 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7441 "
7442 at_fn_check_prepare_notrace 'a `...` command substitution' "search.at:178"
7443 ( $at_check_trace;
7444 test `echo "seo=" | ckiconv iso-8859-2 utf-8` = "xIXEmQ==" || exit 77
7445 test -d $HOME || exit 77
7446 make_config
7447 cat >input <<'_ATEOF'
7448 1 SELECT INBOX
7449 2 SEARCH CHARSET utf-8 BODY "Ćwicząc, najwyżej słyszę"
7450 X LOGOUT
7451 _ATEOF
7452
7453 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
7454
7455 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7456 at_status=$? at_failed=false
7457 $at_check_filter
7458 at_fn_diff_devnull "$at_stderr" || at_failed=:
7459 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
7460 * SEARCH 4
7461 2 OK SEARCH Completed
7462 * BYE Session terminating.
7463 X OK LOGOUT Completed
7464 " | \
7465 $at_diff - "$at_stdout" || at_failed=:
7466 at_fn_check_status 0 $at_status "$at_srcdir/search.at:178"
7467 $at_failed && at_fn_log_failure
7468 $at_traceon; }
7469
7470
7471
7472 set +x
7473 $at_times_p && times >"$at_times_file"
7474 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7475 read at_status <"$at_status_file"
7476 #AT_STOP_69
7477 #AT_START_70
7478 at_fn_group_banner 70 'search.at:178' \
7479 "SUBJECT CHARSET" " " 3
7480 at_xfail=no
7481 (
7482 printf "%s\n" "70. $at_setup_line: testing $at_desc ..."
7483 $at_traceon
7484
7485
7486
7487 cwd=`pwd`
7488
7489
7490
7491
7492
7493 cp -r $abs_top_srcdir/testsuite/spool/search2.mbox INBOX
7494 if test -e INBOX/search2.mbox; then
7495
7496 # First, set all modes to +w
7497 find INBOX/search2.mbox | xargs chmod +w
7498 # Then, remove executable bit from regular files
7499 find INBOX/search2.mbox -type f | xargs chmod -x
7500
7501 else
7502
7503 # First, set all modes to +w
7504 find INBOX | xargs chmod +w
7505 # Then, remove executable bit from regular files
7506 find INBOX -type f | xargs chmod -x
7507
7508 fi
7509
7510
7511
7512
7513 { set +x
7514 printf "%s\n" "$at_srcdir/search.at:178:
7515 test \`echo \"seo=\" | ckiconv iso-8859-2 utf-8\` = \"xIXEmQ==\" || exit 77
7516 test -d \$HOME || exit 77
7517 make_config
7518 cat >input <<'_ATEOF'
7519 1 SELECT INBOX
7520 2 SEARCH CHARSET utf-8 SUBJECT \"Tłumaczenie\"
7521 X LOGOUT
7522 _ATEOF
7523
7524 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7525 "
7526 at_fn_check_prepare_notrace 'a `...` command substitution' "search.at:178"
7527 ( $at_check_trace;
7528 test `echo "seo=" | ckiconv iso-8859-2 utf-8` = "xIXEmQ==" || exit 77
7529 test -d $HOME || exit 77
7530 make_config
7531 cat >input <<'_ATEOF'
7532 1 SELECT INBOX
7533 2 SEARCH CHARSET utf-8 SUBJECT "Tłumaczenie"
7534 X LOGOUT
7535 _ATEOF
7536
7537 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
7538
7539 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7540 at_status=$? at_failed=false
7541 $at_check_filter
7542 at_fn_diff_devnull "$at_stderr" || at_failed=:
7543 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
7544 * SEARCH 4 5
7545 2 OK SEARCH Completed
7546 * BYE Session terminating.
7547 X OK LOGOUT Completed
7548 " | \
7549 $at_diff - "$at_stdout" || at_failed=:
7550 at_fn_check_status 0 $at_status "$at_srcdir/search.at:178"
7551 $at_failed && at_fn_log_failure
7552 $at_traceon; }
7553
7554
7555
7556 set +x
7557 $at_times_p && times >"$at_times_file"
7558 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7559 read at_status <"$at_status_file"
7560 #AT_STOP_70
7561 #AT_START_71
7562 at_fn_group_banner 71 'search.at:178' \
7563 "BODY CHARSET - MIME message/rfc822" " " 3
7564 at_xfail=no
7565 (
7566 printf "%s\n" "71. $at_setup_line: testing $at_desc ..."
7567 $at_traceon
7568
7569
7570
7571 cwd=`pwd`
7572
7573
7574
7575
7576
7577 cp -r $abs_top_srcdir/testsuite/spool/search2.mbox INBOX
7578 if test -e INBOX/search2.mbox; then
7579
7580 # First, set all modes to +w
7581 find INBOX/search2.mbox | xargs chmod +w
7582 # Then, remove executable bit from regular files
7583 find INBOX/search2.mbox -type f | xargs chmod -x
7584
7585 else
7586
7587 # First, set all modes to +w
7588 find INBOX | xargs chmod +w
7589 # Then, remove executable bit from regular files
7590 find INBOX -type f | xargs chmod -x
7591
7592 fi
7593
7594
7595
7596
7597 { set +x
7598 printf "%s\n" "$at_srcdir/search.at:178:
7599 test \`echo \"seo=\" | ckiconv iso-8859-2 utf-8\` = \"xIXEmQ==\" || exit 77
7600 test -d \$HOME || exit 77
7601 make_config
7602 cat >input <<'_ATEOF'
7603 1 SELECT INBOX
7604 2 SEARCH CHARSET utf-8 BODY \"uważasz za słuszne\"
7605 X LOGOUT
7606 _ATEOF
7607
7608 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7609 "
7610 at_fn_check_prepare_notrace 'a `...` command substitution' "search.at:178"
7611 ( $at_check_trace;
7612 test `echo "seo=" | ckiconv iso-8859-2 utf-8` = "xIXEmQ==" || exit 77
7613 test -d $HOME || exit 77
7614 make_config
7615 cat >input <<'_ATEOF'
7616 1 SELECT INBOX
7617 2 SEARCH CHARSET utf-8 BODY "uważasz za słuszne"
7618 X LOGOUT
7619 _ATEOF
7620
7621 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
7622
7623 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7624 at_status=$? at_failed=false
7625 $at_check_filter
7626 at_fn_diff_devnull "$at_stderr" || at_failed=:
7627 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
7628 * SEARCH 5
7629 2 OK SEARCH Completed
7630 * BYE Session terminating.
7631 X OK LOGOUT Completed
7632 " | \
7633 $at_diff - "$at_stdout" || at_failed=:
7634 at_fn_check_status 0 $at_status "$at_srcdir/search.at:178"
7635 $at_failed && at_fn_log_failure
7636 $at_traceon; }
7637
7638
7639
7640 set +x
7641 $at_times_p && times >"$at_times_file"
7642 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7643 read at_status <"$at_status_file"
7644 #AT_STOP_71
7645 #AT_START_72
7646 at_fn_group_banner 72 'search.at:197' \
7647 "TEXT" " " 3
7648 at_xfail=no
7649 (
7650 printf "%s\n" "72. $at_setup_line: testing $at_desc ..."
7651 $at_traceon
7652
7653
7654
7655 cwd=`pwd`
7656
7657
7658
7659
7660
7661 cp -r $abs_top_srcdir/testsuite/spool/search2.mbox INBOX
7662 if test -e INBOX/search2.mbox; then
7663
7664 # First, set all modes to +w
7665 find INBOX/search2.mbox | xargs chmod +w
7666 # Then, remove executable bit from regular files
7667 find INBOX/search2.mbox -type f | xargs chmod -x
7668
7669 else
7670
7671 # First, set all modes to +w
7672 find INBOX | xargs chmod +w
7673 # Then, remove executable bit from regular files
7674 find INBOX -type f | xargs chmod -x
7675
7676 fi
7677
7678
7679
7680
7681 { set +x
7682 printf "%s\n" "$at_srcdir/search.at:197:
7683
7684 test -d \$HOME || exit 77
7685 make_config
7686 cat >input <<'_ATEOF'
7687 1 SELECT INBOX
7688 2 SEARCH TEXT how
7689 X LOGOUT
7690 _ATEOF
7691
7692 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7693 "
7694 at_fn_check_prepare_notrace 'an embedded newline' "search.at:197"
7695 ( $at_check_trace;
7696
7697 test -d $HOME || exit 77
7698 make_config
7699 cat >input <<'_ATEOF'
7700 1 SELECT INBOX
7701 2 SEARCH TEXT how
7702 X LOGOUT
7703 _ATEOF
7704
7705 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
7706
7707 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7708 at_status=$? at_failed=false
7709 $at_check_filter
7710 at_fn_diff_devnull "$at_stderr" || at_failed=:
7711 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
7712 * SEARCH 2 3
7713 2 OK SEARCH Completed
7714 * BYE Session terminating.
7715 X OK LOGOUT Completed
7716 " | \
7717 $at_diff - "$at_stdout" || at_failed=:
7718 at_fn_check_status 0 $at_status "$at_srcdir/search.at:197"
7719 $at_failed && at_fn_log_failure
7720 $at_traceon; }
7721
7722
7723
7724 set +x
7725 $at_times_p && times >"$at_times_file"
7726 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7727 read at_status <"$at_status_file"
7728 #AT_STOP_72
7729 #AT_START_73
7730 at_fn_group_banner 73 'search.at:201' \
7731 "BODY CHARSET (case-insensitive UTF)" " " 3
7732 at_xfail=no
7733 (
7734 printf "%s\n" "73. $at_setup_line: testing $at_desc ..."
7735 $at_traceon
7736
7737
7738
7739 cwd=`pwd`
7740
7741
7742
7743
7744
7745 cp -r $abs_top_srcdir/testsuite/spool/search2.mbox INBOX
7746 if test -e INBOX/search2.mbox; then
7747
7748 # First, set all modes to +w
7749 find INBOX/search2.mbox | xargs chmod +w
7750 # Then, remove executable bit from regular files
7751 find INBOX/search2.mbox -type f | xargs chmod -x
7752
7753 else
7754
7755 # First, set all modes to +w
7756 find INBOX | xargs chmod +w
7757 # Then, remove executable bit from regular files
7758 find INBOX -type f | xargs chmod -x
7759
7760 fi
7761
7762
7763
7764
7765 { set +x
7766 printf "%s\n" "$at_srcdir/search.at:201:
7767 test \`echo \"seo=\" | ckiconv iso-8859-2 utf-8\` = \"xIXEmQ==\" \\
7768 && imap4d --show-config-options | grep WITH_UNISTRING >/dev/null || exit 77
7769 test -d \$HOME || exit 77
7770 make_config
7771 cat >input <<'_ATEOF'
7772 1 SELECT INBOX
7773 2 SEARCH CHARSET utf-8 BODY \"ĆWICZĄC, NAJWYŻEJ SŁYSZĘ\"
7774 X LOGOUT
7775 _ATEOF
7776
7777 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7778 "
7779 at_fn_check_prepare_notrace 'a `...` command substitution' "search.at:201"
7780 ( $at_check_trace;
7781 test `echo "seo=" | ckiconv iso-8859-2 utf-8` = "xIXEmQ==" \
7782 && imap4d --show-config-options | grep WITH_UNISTRING >/dev/null || exit 77
7783 test -d $HOME || exit 77
7784 make_config
7785 cat >input <<'_ATEOF'
7786 1 SELECT INBOX
7787 2 SEARCH CHARSET utf-8 BODY "ĆWICZĄC, NAJWYŻEJ SŁYSZĘ"
7788 X LOGOUT
7789 _ATEOF
7790
7791 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
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" "* PREAUTH IMAP4rev1 Test mode
7798 * SEARCH 4
7799 2 OK SEARCH Completed
7800 * BYE Session terminating.
7801 X OK LOGOUT Completed
7802 " | \
7803 $at_diff - "$at_stdout" || at_failed=:
7804 at_fn_check_status 0 $at_status "$at_srcdir/search.at:201"
7805 $at_failed && at_fn_log_failure
7806 $at_traceon; }
7807
7808
7809
7810 set +x
7811 $at_times_p && times >"$at_times_file"
7812 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7813 read at_status <"$at_status_file"
7814 #AT_STOP_73
7815 #AT_START_74
7816 at_fn_group_banner 74 'search.at:224' \
7817 "UID" " " 3
7818 at_xfail=no
7819 (
7820 printf "%s\n" "74. $at_setup_line: testing $at_desc ..."
7821 $at_traceon
7822
7823
7824
7825 cwd=`pwd`
7826
7827 awk '/Subject:/ { if (n++ == 0) print "X-IMAPbase: 1 500"; print "X-UID: " NR } { print }' \
7828 $abs_top_srcdir/testsuite/spool/search.mbox > INBOX
7829
7830
7831 { set +x
7832 printf "%s\n" "$at_srcdir/search.at:224:
7833
7834 test -d \$HOME || exit 77
7835 make_config
7836 cat >input <<'_ATEOF'
7837 1 SELECT INBOX
7838 2 UID SEARCH 1:8
7839 X LOGOUT
7840 _ATEOF
7841
7842 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7843 "
7844 at_fn_check_prepare_notrace 'an embedded newline' "search.at:224"
7845 ( $at_check_trace;
7846
7847 test -d $HOME || exit 77
7848 make_config
7849 cat >input <<'_ATEOF'
7850 1 SELECT INBOX
7851 2 UID SEARCH 1:8
7852 X LOGOUT
7853 _ATEOF
7854
7855 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
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" "* PREAUTH IMAP4rev1 Test mode
7862 * SEARCH 8 22 36 53 68 83 96 107
7863 2 OK UID SEARCH Completed
7864 * BYE Session terminating.
7865 X OK LOGOUT Completed
7866 " | \
7867 $at_diff - "$at_stdout" || at_failed=:
7868 at_fn_check_status 0 $at_status "$at_srcdir/search.at:224"
7869 $at_failed && at_fn_log_failure
7870 $at_traceon; }
7871
7872
7873
7874 set +x
7875 $at_times_p && times >"$at_times_file"
7876 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7877 read at_status <"$at_status_file"
7878 #AT_STOP_74
7879 #AT_START_75
7880 at_fn_group_banner 75 'fetch.at:56' \
7881 "flags" " " 4
7882 at_xfail=no
7883 (
7884 printf "%s\n" "75. $at_setup_line: testing $at_desc ..."
7885 $at_traceon
7886
7887
7888
7889 cwd=`pwd`
7890
7891
7892
7893
7894
7895 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
7896 if test -e INBOX/mbox1; then
7897
7898 # First, set all modes to +w
7899 find INBOX/mbox1 | xargs chmod +w
7900 # Then, remove executable bit from regular files
7901 find INBOX/mbox1 -type f | xargs chmod -x
7902
7903 else
7904
7905 # First, set all modes to +w
7906 find INBOX | xargs chmod +w
7907 # Then, remove executable bit from regular files
7908 find INBOX -type f | xargs chmod -x
7909
7910 fi
7911
7912
7913
7914
7915 { set +x
7916 printf "%s\n" "$at_srcdir/fetch.at:56:
7917
7918 test -d \$HOME || exit 77
7919 make_config
7920 cat >input <<'_ATEOF'
7921 1 SELECT INBOX
7922 2 FETCH 3 (FLAGS)
7923 X LOGOUT
7924 _ATEOF
7925
7926 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
7927 "
7928 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:56"
7929 ( $at_check_trace;
7930
7931 test -d $HOME || exit 77
7932 make_config
7933 cat >input <<'_ATEOF'
7934 1 SELECT INBOX
7935 2 FETCH 3 (FLAGS)
7936 X LOGOUT
7937 _ATEOF
7938
7939 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
7940
7941 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7942 at_status=$? at_failed=false
7943 $at_check_filter
7944 at_fn_diff_devnull "$at_stderr" || at_failed=:
7945 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
7946 * 3 FETCH (FLAGS (\\Recent))
7947 2 OK FETCH Completed
7948 * BYE Session terminating.
7949 X OK LOGOUT Completed
7950 " | \
7951 $at_diff - "$at_stdout" || at_failed=:
7952 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:56"
7953 $at_failed && at_fn_log_failure
7954 $at_traceon; }
7955
7956
7957
7958 set +x
7959 $at_times_p && times >"$at_times_file"
7960 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7961 read at_status <"$at_status_file"
7962 #AT_STOP_75
7963 #AT_START_76
7964 at_fn_group_banner 76 'fetch.at:61' \
7965 "internaldate" " " 4
7966 at_xfail=no
7967 (
7968 printf "%s\n" "76. $at_setup_line: testing $at_desc ..."
7969 $at_traceon
7970
7971
7972
7973 cwd=`pwd`
7974
7975
7976
7977
7978
7979 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
7980 if test -e INBOX/mbox1; then
7981
7982 # First, set all modes to +w
7983 find INBOX/mbox1 | xargs chmod +w
7984 # Then, remove executable bit from regular files
7985 find INBOX/mbox1 -type f | xargs chmod -x
7986
7987 else
7988
7989 # First, set all modes to +w
7990 find INBOX | xargs chmod +w
7991 # Then, remove executable bit from regular files
7992 find INBOX -type f | xargs chmod -x
7993
7994 fi
7995
7996
7997
7998
7999 { set +x
8000 printf "%s\n" "$at_srcdir/fetch.at:61:
8001
8002 test -d \$HOME || exit 77
8003 make_config
8004 cat >input <<'_ATEOF'
8005 1 SELECT INBOX
8006 2 FETCH 3 INTERNALDATE
8007 X LOGOUT
8008 _ATEOF
8009
8010 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged|fixup_tz
8011 "
8012 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:61"
8013 ( $at_check_trace;
8014
8015 test -d $HOME || exit 77
8016 make_config
8017 cat >input <<'_ATEOF'
8018 1 SELECT INBOX
8019 2 FETCH 3 INTERNALDATE
8020 X LOGOUT
8021 _ATEOF
8022
8023 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged|fixup_tz
8024
8025 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8026 at_status=$? at_failed=false
8027 $at_check_filter
8028 at_fn_diff_devnull "$at_stderr" || at_failed=:
8029 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8030 * 3 FETCH (INTERNALDATE \"13-Jul-2002 00:43:18 +0000\")
8031 2 OK FETCH Completed
8032 * BYE Session terminating.
8033 X OK LOGOUT Completed
8034 " | \
8035 $at_diff - "$at_stdout" || at_failed=:
8036 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:61"
8037 $at_failed && at_fn_log_failure
8038 $at_traceon; }
8039
8040
8041
8042 set +x
8043 $at_times_p && times >"$at_times_file"
8044 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8045 read at_status <"$at_status_file"
8046 #AT_STOP_76
8047 #AT_START_77
8048 at_fn_group_banner 77 'fetch.at:68' \
8049 "uid" " " 4
8050 at_xfail=no
8051 (
8052 printf "%s\n" "77. $at_setup_line: testing $at_desc ..."
8053 $at_traceon
8054
8055
8056
8057 cwd=`pwd`
8058
8059
8060
8061
8062
8063 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8064 if test -e INBOX/mbox1; then
8065
8066 # First, set all modes to +w
8067 find INBOX/mbox1 | xargs chmod +w
8068 # Then, remove executable bit from regular files
8069 find INBOX/mbox1 -type f | xargs chmod -x
8070
8071 else
8072
8073 # First, set all modes to +w
8074 find INBOX | xargs chmod +w
8075 # Then, remove executable bit from regular files
8076 find INBOX -type f | xargs chmod -x
8077
8078 fi
8079
8080
8081
8082
8083 { set +x
8084 printf "%s\n" "$at_srcdir/fetch.at:68:
8085
8086 test -d \$HOME || exit 77
8087 make_config
8088 cat >input <<'_ATEOF'
8089 1 SELECT INBOX
8090 2 FETCH 3 UID
8091 X LOGOUT
8092 _ATEOF
8093
8094 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
8095 "
8096 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:68"
8097 ( $at_check_trace;
8098
8099 test -d $HOME || exit 77
8100 make_config
8101 cat >input <<'_ATEOF'
8102 1 SELECT INBOX
8103 2 FETCH 3 UID
8104 X LOGOUT
8105 _ATEOF
8106
8107 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
8108
8109 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8110 at_status=$? at_failed=false
8111 $at_check_filter
8112 at_fn_diff_devnull "$at_stderr" || at_failed=:
8113 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8114 * 3 FETCH (UID 3)
8115 2 OK FETCH Completed
8116 * BYE Session terminating.
8117 X OK LOGOUT Completed
8118 " | \
8119 $at_diff - "$at_stdout" || at_failed=:
8120 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:68"
8121 $at_failed && at_fn_log_failure
8122 $at_traceon; }
8123
8124
8125
8126 set +x
8127 $at_times_p && times >"$at_times_file"
8128 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8129 read at_status <"$at_status_file"
8130 #AT_STOP_77
8131 #AT_START_78
8132 at_fn_group_banner 78 'fetch.at:72' \
8133 "uid + internaldate" " " 4
8134 at_xfail=no
8135 (
8136 printf "%s\n" "78. $at_setup_line: testing $at_desc ..."
8137 $at_traceon
8138
8139
8140
8141 cwd=`pwd`
8142
8143
8144
8145
8146
8147 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8148 if test -e INBOX/mbox1; then
8149
8150 # First, set all modes to +w
8151 find INBOX/mbox1 | xargs chmod +w
8152 # Then, remove executable bit from regular files
8153 find INBOX/mbox1 -type f | xargs chmod -x
8154
8155 else
8156
8157 # First, set all modes to +w
8158 find INBOX | xargs chmod +w
8159 # Then, remove executable bit from regular files
8160 find INBOX -type f | xargs chmod -x
8161
8162 fi
8163
8164
8165
8166
8167 { set +x
8168 printf "%s\n" "$at_srcdir/fetch.at:72:
8169
8170 test -d \$HOME || exit 77
8171 make_config
8172 cat >input <<'_ATEOF'
8173 1 SELECT INBOX
8174 2 FETCH 3 (FLAGS INTERNALDATE UID)
8175 X LOGOUT
8176 _ATEOF
8177
8178 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged|fixup_tz
8179 "
8180 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:72"
8181 ( $at_check_trace;
8182
8183 test -d $HOME || exit 77
8184 make_config
8185 cat >input <<'_ATEOF'
8186 1 SELECT INBOX
8187 2 FETCH 3 (FLAGS INTERNALDATE UID)
8188 X LOGOUT
8189 _ATEOF
8190
8191 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged|fixup_tz
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 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8198 * 3 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:43:18 +0000\" UID 3)
8199 2 OK FETCH Completed
8200 * BYE Session terminating.
8201 X OK LOGOUT Completed
8202 " | \
8203 $at_diff - "$at_stdout" || at_failed=:
8204 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:72"
8205 $at_failed && at_fn_log_failure
8206 $at_traceon; }
8207
8208
8209
8210 set +x
8211 $at_times_p && times >"$at_times_file"
8212 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8213 read at_status <"$at_status_file"
8214 #AT_STOP_78
8215 #AT_START_79
8216 at_fn_group_banner 79 'fetch.at:83' \
8217 "envelope" " " 4
8218 at_xfail=no
8219 (
8220 printf "%s\n" "79. $at_setup_line: testing $at_desc ..."
8221 $at_traceon
8222
8223
8224
8225 cwd=`pwd`
8226
8227
8228
8229
8230
8231 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8232 if test -e INBOX/mbox1; then
8233
8234 # First, set all modes to +w
8235 find INBOX/mbox1 | xargs chmod +w
8236 # Then, remove executable bit from regular files
8237 find INBOX/mbox1 -type f | xargs chmod -x
8238
8239 else
8240
8241 # First, set all modes to +w
8242 find INBOX | xargs chmod +w
8243 # Then, remove executable bit from regular files
8244 find INBOX -type f | xargs chmod -x
8245
8246 fi
8247
8248
8249
8250
8251 { set +x
8252 printf "%s\n" "$at_srcdir/fetch.at:83:
8253
8254 test -d \$HOME || exit 77
8255 make_config
8256 cat >input <<'_ATEOF'
8257 1 SELECT INBOX
8258 2 FETCH 1:* ENVELOPE
8259 X LOGOUT
8260 _ATEOF
8261
8262 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
8263 "
8264 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:83"
8265 ( $at_check_trace;
8266
8267 test -d $HOME || exit 77
8268 make_config
8269 cat >input <<'_ATEOF'
8270 1 SELECT INBOX
8271 2 FETCH 1:* ENVELOPE
8272 X LOGOUT
8273 _ATEOF
8274
8275 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
8276
8277 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8278 at_status=$? at_failed=false
8279 $at_check_filter
8280 at_fn_diff_devnull "$at_stderr" || at_failed=:
8281 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8282 * 1 FETCH (ENVELOPE (\"Fri, 28 Dec 2001 22:18:08 +0200\" \"Jabberwocky\" ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) NIL NIL NIL \"<[email protected]>\"))
8283 * 2 FETCH (ENVELOPE (\"Fri, 28 Dec 2001 23:28:08 +0200\" \"Re: Jabberwocky\" ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<[email protected]>\"))
8284 * 3 FETCH (ENVELOPE (\"Sat, 13 Jul 2002 00:43:18 +0300\" \"Simple MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<[email protected]>\"))
8285 * 4 FETCH (ENVELOPE (\"Sat, 13 Jul 2002 00:50:58 +0300\" \"Nested MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<[email protected]>\"))
8286 * 5 FETCH (ENVELOPE (\"Sat, 13 Jul 2002 00:43:18 +0300\" \"Empty MIME Parts\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<[email protected]>\"))
8287 2 OK FETCH Completed
8288 * BYE Session terminating.
8289 X OK LOGOUT Completed
8290 " | \
8291 $at_diff - "$at_stdout" || at_failed=:
8292 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:83"
8293 $at_failed && at_fn_log_failure
8294 $at_traceon; }
8295
8296
8297
8298 set +x
8299 $at_times_p && times >"$at_times_file"
8300 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8301 read at_status <"$at_status_file"
8302 #AT_STOP_79
8303 #AT_START_80
8304 at_fn_group_banner 80 'fetch.at:94' \
8305 "ALL" " " 4
8306 at_xfail=no
8307 (
8308 printf "%s\n" "80. $at_setup_line: testing $at_desc ..."
8309 $at_traceon
8310
8311
8312
8313 cwd=`pwd`
8314
8315
8316
8317
8318
8319 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8320 if test -e INBOX/mbox1; then
8321
8322 # First, set all modes to +w
8323 find INBOX/mbox1 | xargs chmod +w
8324 # Then, remove executable bit from regular files
8325 find INBOX/mbox1 -type f | xargs chmod -x
8326
8327 else
8328
8329 # First, set all modes to +w
8330 find INBOX | xargs chmod +w
8331 # Then, remove executable bit from regular files
8332 find INBOX -type f | xargs chmod -x
8333
8334 fi
8335
8336
8337
8338
8339 { set +x
8340 printf "%s\n" "$at_srcdir/fetch.at:94:
8341
8342 test -d \$HOME || exit 77
8343 make_config
8344 cat >input <<'_ATEOF'
8345 1 SELECT INBOX
8346 2 FETCH 1:* ALL
8347 X LOGOUT
8348 _ATEOF
8349
8350 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged|fixup_tz
8351 "
8352 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:94"
8353 ( $at_check_trace;
8354
8355 test -d $HOME || exit 77
8356 make_config
8357 cat >input <<'_ATEOF'
8358 1 SELECT INBOX
8359 2 FETCH 1:* ALL
8360 X LOGOUT
8361 _ATEOF
8362
8363 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged|fixup_tz
8364
8365 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8366 at_status=$? at_failed=false
8367 $at_check_filter
8368 at_fn_diff_devnull "$at_stderr" || at_failed=:
8369 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8370 * 1 FETCH (FLAGS (\\Recent) INTERNALDATE \"28-Dec-2001 22:18:09 +0000\" RFC822.SIZE 1298 ENVELOPE (\"Fri, 28 Dec 2001 22:18:08 +0200\" \"Jabberwocky\" ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) NIL NIL NIL \"<[email protected]>\"))
8371 * 2 FETCH (FLAGS (\\Recent) INTERNALDATE \"28-Dec-2001 23:28:09 +0000\" RFC822.SIZE 547 ENVELOPE (\"Fri, 28 Dec 2001 23:28:08 +0200\" \"Re: Jabberwocky\" ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Bar\" NIL \"bar\" \"dontmailme.org\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<[email protected]>\"))
8372 * 3 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:43:18 +0000\" RFC822.SIZE 1611 ENVELOPE (\"Sat, 13 Jul 2002 00:43:18 +0300\" \"Simple MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<[email protected]>\"))
8373 * 4 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:50:58 +0000\" RFC822.SIZE 3483 ENVELOPE (\"Sat, 13 Jul 2002 00:50:58 +0300\" \"Nested MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<[email protected]>\"))
8374 * 5 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:43:18 +0000\" RFC822.SIZE 884 ENVELOPE (\"Sat, 13 Jul 2002 00:43:18 +0300\" \"Empty MIME Parts\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<[email protected]>\"))
8375 2 OK FETCH Completed
8376 * BYE Session terminating.
8377 X OK LOGOUT Completed
8378 " | \
8379 $at_diff - "$at_stdout" || at_failed=:
8380 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:94"
8381 $at_failed && at_fn_log_failure
8382 $at_traceon; }
8383
8384
8385
8386 set +x
8387 $at_times_p && times >"$at_times_file"
8388 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8389 read at_status <"$at_status_file"
8390 #AT_STOP_80
8391 #AT_START_81
8392 at_fn_group_banner 81 'fetch.at:108' \
8393 "BODYSTRUCTURE" " " 4
8394 at_xfail=no
8395 (
8396 printf "%s\n" "81. $at_setup_line: testing $at_desc ..."
8397 $at_traceon
8398
8399
8400
8401 cwd=`pwd`
8402
8403
8404
8405
8406
8407 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8408 if test -e INBOX/mbox1; then
8409
8410 # First, set all modes to +w
8411 find INBOX/mbox1 | xargs chmod +w
8412 # Then, remove executable bit from regular files
8413 find INBOX/mbox1 -type f | xargs chmod -x
8414
8415 else
8416
8417 # First, set all modes to +w
8418 find INBOX | xargs chmod +w
8419 # Then, remove executable bit from regular files
8420 find INBOX -type f | xargs chmod -x
8421
8422 fi
8423
8424
8425
8426
8427 { set +x
8428 printf "%s\n" "$at_srcdir/fetch.at:108:
8429
8430 test -d \$HOME || exit 77
8431 make_config
8432 cat >input <<'_ATEOF'
8433 1 SELECT INBOX
8434 2 FETCH 1:* BODYSTRUCTURE
8435 X LOGOUT
8436 _ATEOF
8437
8438 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
8439 "
8440 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:108"
8441 ( $at_check_trace;
8442
8443 test -d $HOME || exit 77
8444 make_config
8445 cat >input <<'_ATEOF'
8446 1 SELECT INBOX
8447 2 FETCH 1:* BODYSTRUCTURE
8448 X LOGOUT
8449 _ATEOF
8450
8451 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
8452
8453 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8454 at_status=$? at_failed=false
8455 $at_check_filter
8456 at_fn_diff_devnull "$at_stderr" || at_failed=:
8457 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8458 * 1 FETCH (BODYSTRUCTURE (\"TEXT\" \"PLAIN\" (\"CHARSET\" \"US-ASCII\") NIL NIL \"7BIT\" 972 35 NIL NIL NIL))
8459 * 2 FETCH (BODYSTRUCTURE (\"TEXT\" \"PLAIN\" (\"CHARSET\" \"US-ASCII\") NIL NIL \"7BIT\" 219 4 NIL NIL NIL))
8460 * 3 FETCH (BODYSTRUCTURE ((\"text\" \"plain\" (\"name\" \"msg.1\" \"charset\" \"us-ascii\") \"<[email protected]>\" \"How doth\" \"7BIT\" 239 9 NIL NIL NIL)(\"application\" \"octet-stream\" (\"name\" \"msg.21\") \"<[email protected]>\" \"Father William Part I\" \"base64\" 468 NIL NIL NIL) \"mixed\" (\"boundary\" \"----- =_aaaaaaaaaa0\") NIL NIL))
8461 * 4 FETCH (BODYSTRUCTURE ((\"text\" \"plain\" (\"name\" \"msg.21\" \"charset\" \"us-ascii\") \"<[email protected]>\" \"Father William Part I\" \"7BIT\" 351 10 NIL NIL NIL)((\"application\" \"octet-stream\" (\"name\" \"msg.22\") \"<[email protected]>\" \"Father William Part II\" \"base64\" 486 NIL NIL NIL)((\"application\" \"octet-stream\" (\"name\" \"msg.23\") \"<[email protected]>\" \"Father William Part III\" \"base64\" 490 NIL NIL NIL)(\"application\" \"octet-stream\" (\"name\" \"msg.24\") \"<[email protected]>\" \"Father William Part IV\" \"base64\" 502 NIL NIL NIL) \"mixed\" (\"boundary\" \"----- =_aaaaaaaaaa2\") NIL NIL) \"mixed\" (\"boundary\" \"----- =_aaaaaaaaaa1\") NIL NIL) \"mixed\" (\"boundary\" \"----- =_aaaaaaaaaa0\") NIL NIL))
8462 * 5 FETCH (BODYSTRUCTURE ((\"text\" \"plain\" (\"name\" \"empty\" \"charset\" \"us-ascii\") \"<[email protected]>\" \"Empty part\" \"7BIT\" 0 0 NIL NIL NIL)(\"text\" \"plain\" (\"name\" \"single.line\" \"charset\" \"us-ascii\") \"<[email protected]>\" \"Single line part\" \"7BIT\" 2 1 NIL NIL NIL) \"mixed\" (\"boundary\" \"----- =_aaaaaaaaaa0\") NIL NIL))
8463 2 OK FETCH Completed
8464 * BYE Session terminating.
8465 X OK LOGOUT Completed
8466 " | \
8467 $at_diff - "$at_stdout" || at_failed=:
8468 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:108"
8469 $at_failed && at_fn_log_failure
8470 $at_traceon; }
8471
8472
8473
8474 set +x
8475 $at_times_p && times >"$at_times_file"
8476 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8477 read at_status <"$at_status_file"
8478 #AT_STOP_81
8479 #AT_START_82
8480 at_fn_group_banner 82 'fetch.at:118' \
8481 "BODY" " " 4
8482 at_xfail=no
8483 (
8484 printf "%s\n" "82. $at_setup_line: testing $at_desc ..."
8485 $at_traceon
8486
8487
8488
8489 cwd=`pwd`
8490
8491
8492
8493
8494
8495 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8496 if test -e INBOX/mbox1; then
8497
8498 # First, set all modes to +w
8499 find INBOX/mbox1 | xargs chmod +w
8500 # Then, remove executable bit from regular files
8501 find INBOX/mbox1 -type f | xargs chmod -x
8502
8503 else
8504
8505 # First, set all modes to +w
8506 find INBOX | xargs chmod +w
8507 # Then, remove executable bit from regular files
8508 find INBOX -type f | xargs chmod -x
8509
8510 fi
8511
8512
8513
8514
8515 { set +x
8516 printf "%s\n" "$at_srcdir/fetch.at:118:
8517
8518 test -d \$HOME || exit 77
8519 make_config
8520 cat >input <<'_ATEOF'
8521 1 SELECT INBOX
8522 2 FETCH 1:* BODY
8523 X LOGOUT
8524 _ATEOF
8525
8526 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
8527 "
8528 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:118"
8529 ( $at_check_trace;
8530
8531 test -d $HOME || exit 77
8532 make_config
8533 cat >input <<'_ATEOF'
8534 1 SELECT INBOX
8535 2 FETCH 1:* BODY
8536 X LOGOUT
8537 _ATEOF
8538
8539 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
8540
8541 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8542 at_status=$? at_failed=false
8543 $at_check_filter
8544 at_fn_diff_devnull "$at_stderr" || at_failed=:
8545 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8546 * 1 FETCH (BODY (\"TEXT\" \"PLAIN\" (\"CHARSET\" \"US-ASCII\") NIL NIL \"7BIT\" 972 35))
8547 * 2 FETCH (BODY (\"TEXT\" \"PLAIN\" (\"CHARSET\" \"US-ASCII\") NIL NIL \"7BIT\" 219 4))
8548 * 3 FETCH (BODY ((\"text\" \"plain\" (\"name\" \"msg.1\" \"charset\" \"us-ascii\") \"<[email protected]>\" \"How doth\" \"7BIT\" 239 9)(\"application\" \"octet-stream\" (\"name\" \"msg.21\") \"<[email protected]>\" \"Father William Part I\" \"base64\" 468) \"mixed\" NIL NIL NIL))
8549 * 4 FETCH (BODY ((\"text\" \"plain\" (\"name\" \"msg.21\" \"charset\" \"us-ascii\") \"<[email protected]>\" \"Father William Part I\" \"7BIT\" 351 10)((\"application\" \"octet-stream\" (\"name\" \"msg.22\") \"<[email protected]>\" \"Father William Part II\" \"base64\" 486)((\"application\" \"octet-stream\" (\"name\" \"msg.23\") \"<[email protected]>\" \"Father William Part III\" \"base64\" 490)(\"application\" \"octet-stream\" (\"name\" \"msg.24\") \"<[email protected]>\" \"Father William Part IV\" \"base64\" 502) \"mixed\" NIL NIL NIL) \"mixed\" NIL NIL NIL) \"mixed\" NIL NIL NIL))
8550 * 5 FETCH (BODY ((\"text\" \"plain\" (\"name\" \"empty\" \"charset\" \"us-ascii\") \"<[email protected]>\" \"Empty part\" \"7BIT\" 0 0)(\"text\" \"plain\" (\"name\" \"single.line\" \"charset\" \"us-ascii\") \"<[email protected]>\" \"Single line part\" \"7BIT\" 2 1) \"mixed\" NIL NIL NIL))
8551 2 OK FETCH Completed
8552 * BYE Session terminating.
8553 X OK LOGOUT Completed
8554 " | \
8555 $at_diff - "$at_stdout" || at_failed=:
8556 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:118"
8557 $at_failed && at_fn_log_failure
8558 $at_traceon; }
8559
8560
8561
8562 set +x
8563 $at_times_p && times >"$at_times_file"
8564 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8565 read at_status <"$at_status_file"
8566 #AT_STOP_82
8567 #AT_START_83
8568 at_fn_group_banner 83 'fetch.at:140' \
8569 "BODY[HEADER]" " " 4
8570 at_xfail=no
8571 (
8572 printf "%s\n" "83. $at_setup_line: testing $at_desc ..."
8573 $at_traceon
8574
8575
8576
8577 cwd=`pwd`
8578
8579
8580
8581
8582
8583 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8584 if test -e INBOX/mbox1; then
8585
8586 # First, set all modes to +w
8587 find INBOX/mbox1 | xargs chmod +w
8588 # Then, remove executable bit from regular files
8589 find INBOX/mbox1 -type f | xargs chmod -x
8590
8591 else
8592
8593 # First, set all modes to +w
8594 find INBOX | xargs chmod +w
8595 # Then, remove executable bit from regular files
8596 find INBOX -type f | xargs chmod -x
8597
8598 fi
8599
8600
8601
8602
8603 { set +x
8604 printf "%s\n" "$at_srcdir/fetch.at:140:
8605
8606 test -d \$HOME || exit 77
8607 make_config
8608 cat >input <<'_ATEOF'
8609 1 SELECT INBOX
8610 2 FETCH 1 BODY[HEADER]
8611 X LOGOUT
8612 _ATEOF
8613
8614 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
8615 "
8616 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:140"
8617 ( $at_check_trace;
8618
8619 test -d $HOME || exit 77
8620 make_config
8621 cat >input <<'_ATEOF'
8622 1 SELECT INBOX
8623 2 FETCH 1 BODY[HEADER]
8624 X LOGOUT
8625 _ATEOF
8626
8627 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
8628
8629 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8630 at_status=$? at_failed=false
8631 $at_check_filter
8632 at_fn_diff_devnull "$at_stderr" || at_failed=:
8633 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8634 * 1 FETCH (FLAGS (\\Seen) BODY[HEADER] {326}
8635 Received: (from [email protected])
8636 by nonexistent.net id fBSKI8N04906
8637 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
8638 Date: Fri, 28 Dec 2001 22:18:08 +0200
8639 From: Foo Bar <[email protected]>
8640 Message-Id: <[email protected]>
8641 To: Bar <[email protected]>
8642 Subject: Jabberwocky
8643
8644 )
8645 2 OK FETCH Completed
8646 * BYE Session terminating.
8647 X OK LOGOUT Completed
8648 " | \
8649 $at_diff - "$at_stdout" || at_failed=:
8650 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:140"
8651 $at_failed && at_fn_log_failure
8652 $at_traceon; }
8653
8654
8655
8656 set +x
8657 $at_times_p && times >"$at_times_file"
8658 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8659 read at_status <"$at_status_file"
8660 #AT_STOP_83
8661 #AT_START_84
8662 at_fn_group_banner 84 'fetch.at:161' \
8663 "BODY[HEADER.FIELDS]" " " 4
8664 at_xfail=no
8665 (
8666 printf "%s\n" "84. $at_setup_line: testing $at_desc ..."
8667 $at_traceon
8668
8669
8670
8671 cwd=`pwd`
8672
8673
8674
8675
8676
8677 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8678 if test -e INBOX/mbox1; then
8679
8680 # First, set all modes to +w
8681 find INBOX/mbox1 | xargs chmod +w
8682 # Then, remove executable bit from regular files
8683 find INBOX/mbox1 -type f | xargs chmod -x
8684
8685 else
8686
8687 # First, set all modes to +w
8688 find INBOX | xargs chmod +w
8689 # Then, remove executable bit from regular files
8690 find INBOX -type f | xargs chmod -x
8691
8692 fi
8693
8694
8695
8696
8697 { set +x
8698 printf "%s\n" "$at_srcdir/fetch.at:161:
8699
8700 test -d \$HOME || exit 77
8701 make_config
8702 cat >input <<'_ATEOF'
8703 1 SELECT INBOX
8704 2 FETCH 1 BODY[HEADER.FIELDS (FROM TO SUBJECT)]
8705 X LOGOUT
8706 _ATEOF
8707
8708 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
8709 "
8710 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:161"
8711 ( $at_check_trace;
8712
8713 test -d $HOME || exit 77
8714 make_config
8715 cat >input <<'_ATEOF'
8716 1 SELECT INBOX
8717 2 FETCH 1 BODY[HEADER.FIELDS (FROM TO SUBJECT)]
8718 X LOGOUT
8719 _ATEOF
8720
8721 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
8722
8723 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8724 at_status=$? at_failed=false
8725 $at_check_filter
8726 at_fn_diff_devnull "$at_stderr" || at_failed=:
8727 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8728 * 1 FETCH (FLAGS (\\Seen) BODY[HEADER.FIELDS (FROM TO SUBJECT)] {94}
8729 FROM: Foo Bar <[email protected]>
8730 TO: Bar <[email protected]>
8731 SUBJECT: Jabberwocky
8732
8733 )
8734 2 OK FETCH Completed
8735 * BYE Session terminating.
8736 X OK LOGOUT Completed
8737 " | \
8738 $at_diff - "$at_stdout" || at_failed=:
8739 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:161"
8740 $at_failed && at_fn_log_failure
8741 $at_traceon; }
8742
8743
8744
8745 set +x
8746 $at_times_p && times >"$at_times_file"
8747 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8748 read at_status <"$at_status_file"
8749 #AT_STOP_84
8750 #AT_START_85
8751 at_fn_group_banner 85 'fetch.at:173' \
8752 "BODY[HEADER.FIELDS.NOT]" " " 4
8753 at_xfail=no
8754 (
8755 printf "%s\n" "85. $at_setup_line: testing $at_desc ..."
8756 $at_traceon
8757
8758
8759
8760 cwd=`pwd`
8761
8762
8763
8764
8765
8766 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8767 if test -e INBOX/mbox1; then
8768
8769 # First, set all modes to +w
8770 find INBOX/mbox1 | xargs chmod +w
8771 # Then, remove executable bit from regular files
8772 find INBOX/mbox1 -type f | xargs chmod -x
8773
8774 else
8775
8776 # First, set all modes to +w
8777 find INBOX | xargs chmod +w
8778 # Then, remove executable bit from regular files
8779 find INBOX -type f | xargs chmod -x
8780
8781 fi
8782
8783
8784
8785
8786 { set +x
8787 printf "%s\n" "$at_srcdir/fetch.at:173:
8788
8789 test -d \$HOME || exit 77
8790 make_config
8791 cat >input <<'_ATEOF'
8792 1 SELECT INBOX
8793 2 FETCH 1 BODY[HEADER.FIELDS.NOT (FROM TO SUBJECT)]
8794 X LOGOUT
8795 _ATEOF
8796
8797 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
8798 "
8799 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:173"
8800 ( $at_check_trace;
8801
8802 test -d $HOME || exit 77
8803 make_config
8804 cat >input <<'_ATEOF'
8805 1 SELECT INBOX
8806 2 FETCH 1 BODY[HEADER.FIELDS.NOT (FROM TO SUBJECT)]
8807 X LOGOUT
8808 _ATEOF
8809
8810 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
8811
8812 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8813 at_status=$? at_failed=false
8814 $at_check_filter
8815 at_fn_diff_devnull "$at_stderr" || at_failed=:
8816 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8817 * 1 FETCH (FLAGS (\\Seen) BODY[HEADER.FIELDS.NOT (FROM TO SUBJECT)] {234}
8818 Received: (from [email protected])
8819 by nonexistent.net id fBSKI8N04906
8820 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
8821 Date: Fri, 28 Dec 2001 22:18:08 +0200
8822 Message-Id: <[email protected]>
8823
8824 )
8825 2 OK FETCH Completed
8826 * BYE Session terminating.
8827 X OK LOGOUT Completed
8828 " | \
8829 $at_diff - "$at_stdout" || at_failed=:
8830 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:173"
8831 $at_failed && at_fn_log_failure
8832 $at_traceon; }
8833
8834
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_85
8841 #AT_START_86
8842 at_fn_group_banner 86 'fetch.at:186' \
8843 "BODY[TEXT]" " " 4
8844 at_xfail=no
8845 (
8846 printf "%s\n" "86. $at_setup_line: testing $at_desc ..."
8847 $at_traceon
8848
8849
8850
8851 cwd=`pwd`
8852
8853
8854
8855
8856
8857 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8858 if test -e INBOX/mbox1; then
8859
8860 # First, set all modes to +w
8861 find INBOX/mbox1 | xargs chmod +w
8862 # Then, remove executable bit from regular files
8863 find INBOX/mbox1 -type f | xargs chmod -x
8864
8865 else
8866
8867 # First, set all modes to +w
8868 find INBOX | xargs chmod +w
8869 # Then, remove executable bit from regular files
8870 find INBOX -type f | xargs chmod -x
8871
8872 fi
8873
8874
8875
8876
8877 { set +x
8878 printf "%s\n" "$at_srcdir/fetch.at:186:
8879
8880 test -d \$HOME || exit 77
8881 make_config
8882 cat >input <<'_ATEOF'
8883 1 SELECT INBOX
8884 2 FETCH 1 BODY[TEXT]
8885 X LOGOUT
8886 _ATEOF
8887
8888 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
8889 "
8890 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:186"
8891 ( $at_check_trace;
8892
8893 test -d $HOME || exit 77
8894 make_config
8895 cat >input <<'_ATEOF'
8896 1 SELECT INBOX
8897 2 FETCH 1 BODY[TEXT]
8898 X LOGOUT
8899 _ATEOF
8900
8901 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
8902
8903 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8904 at_status=$? at_failed=false
8905 $at_check_filter
8906 at_fn_diff_devnull "$at_stderr" || at_failed=:
8907 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
8908 * 1 FETCH (FLAGS (\\Seen) BODY[TEXT] {972}
8909 \`Twas brillig, and the slithy toves
8910 Did gyre and gimble in the wabe;
8911 All mimsy were the borogoves,
8912 And the mome raths outgrabe.
8913
8914 \`Beware the Jabberwock, my son!
8915 The jaws that bite, the claws that catch!
8916 Beware the Jujub bird, and shun
8917 The frumious Bandersnatch!'
8918
8919 He took his vorpal sword in hand:
8920 Long time the manxome foe he sought --
8921 So rested he by the Tumtum gree,
8922 And stood awhile in thought.
8923
8924 And as in uffish thought he stood,
8925 The Jabberwock, with eyes of flame,
8926 Came whiffling through the tulgey wook,
8927 And burbled as it came!
8928
8929 One, two! One, two! And through and through
8930 The vorpal blade went snicker-snack!
8931 He left it dead, and with its head
8932 He went galumphing back.
8933
8934 \`And has thou slain the Jabberwock?
8935 Come to my arms, my beamish boy!
8936 O frabjous day! Calloh! Callay!
8937 He chortled in his joy.
8938
8939 \`Twas brillig, and the slithy toves
8940 Did gyre and gimble in the wabe;
8941 All mimsy were the borogoves,
8942 And the mome raths outgrabe.
8943
8944 )
8945 2 OK FETCH Completed
8946 * BYE Session terminating.
8947 X OK LOGOUT Completed
8948 " | \
8949 $at_diff - "$at_stdout" || at_failed=:
8950 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:186"
8951 $at_failed && at_fn_log_failure
8952 $at_traceon; }
8953
8954
8955
8956 set +x
8957 $at_times_p && times >"$at_times_file"
8958 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8959 read at_status <"$at_status_file"
8960 #AT_STOP_86
8961 #AT_START_87
8962 at_fn_group_banner 87 'fetch.at:232' \
8963 "BODY[TEXT]<X.Y>" " " 4
8964 at_xfail=no
8965 (
8966 printf "%s\n" "87. $at_setup_line: testing $at_desc ..."
8967 $at_traceon
8968
8969
8970
8971 cwd=`pwd`
8972
8973
8974
8975
8976
8977 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
8978 if test -e INBOX/mbox1; then
8979
8980 # First, set all modes to +w
8981 find INBOX/mbox1 | xargs chmod +w
8982 # Then, remove executable bit from regular files
8983 find INBOX/mbox1 -type f | xargs chmod -x
8984
8985 else
8986
8987 # First, set all modes to +w
8988 find INBOX | xargs chmod +w
8989 # Then, remove executable bit from regular files
8990 find INBOX -type f | xargs chmod -x
8991
8992 fi
8993
8994
8995
8996
8997 { set +x
8998 printf "%s\n" "$at_srcdir/fetch.at:232:
8999
9000 test -d \$HOME || exit 77
9001 make_config
9002 cat >input <<'_ATEOF'
9003 1 SELECT INBOX
9004 2 FETCH 1 BODY[TEXT]<0.20>
9005 X LOGOUT
9006 _ATEOF
9007
9008 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9009 "
9010 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:232"
9011 ( $at_check_trace;
9012
9013 test -d $HOME || exit 77
9014 make_config
9015 cat >input <<'_ATEOF'
9016 1 SELECT INBOX
9017 2 FETCH 1 BODY[TEXT]<0.20>
9018 X LOGOUT
9019 _ATEOF
9020
9021 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9022
9023 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9024 at_status=$? at_failed=false
9025 $at_check_filter
9026 at_fn_diff_devnull "$at_stderr" || at_failed=:
9027 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9028 * 1 FETCH (FLAGS (\\Seen) BODY[TEXT]<0> {20}
9029 \`Twas brillig, and t)
9030 2 OK FETCH Completed
9031 * BYE Session terminating.
9032 X OK LOGOUT Completed
9033 " | \
9034 $at_diff - "$at_stdout" || at_failed=:
9035 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:232"
9036 $at_failed && at_fn_log_failure
9037 $at_traceon; }
9038
9039
9040
9041 set +x
9042 $at_times_p && times >"$at_times_file"
9043 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9044 read at_status <"$at_status_file"
9045 #AT_STOP_87
9046 #AT_START_88
9047 at_fn_group_banner 88 'fetch.at:237' \
9048 "BODY[TEXT]<Y.X>" " " 4
9049 at_xfail=no
9050 (
9051 printf "%s\n" "88. $at_setup_line: testing $at_desc ..."
9052 $at_traceon
9053
9054
9055
9056 cwd=`pwd`
9057
9058
9059
9060
9061
9062 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
9063 if test -e INBOX/mbox1; then
9064
9065 # First, set all modes to +w
9066 find INBOX/mbox1 | xargs chmod +w
9067 # Then, remove executable bit from regular files
9068 find INBOX/mbox1 -type f | xargs chmod -x
9069
9070 else
9071
9072 # First, set all modes to +w
9073 find INBOX | xargs chmod +w
9074 # Then, remove executable bit from regular files
9075 find INBOX -type f | xargs chmod -x
9076
9077 fi
9078
9079
9080
9081
9082 { set +x
9083 printf "%s\n" "$at_srcdir/fetch.at:237:
9084
9085 test -d \$HOME || exit 77
9086 make_config
9087 cat >input <<'_ATEOF'
9088 1 SELECT INBOX
9089 2 FETCH 1 BODY[TEXT]<200.100>
9090 X LOGOUT
9091 _ATEOF
9092
9093 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9094 "
9095 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:237"
9096 ( $at_check_trace;
9097
9098 test -d $HOME || exit 77
9099 make_config
9100 cat >input <<'_ATEOF'
9101 1 SELECT INBOX
9102 2 FETCH 1 BODY[TEXT]<200.100>
9103 X LOGOUT
9104 _ATEOF
9105
9106 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9107
9108 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9109 at_status=$? at_failed=false
9110 $at_check_filter
9111 at_fn_diff_devnull "$at_stderr" || at_failed=:
9112 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9113 * 1 FETCH (FLAGS (\\Seen) BODY[TEXT]<200> {100}
9114 t catch!
9115 Beware the Jujub bird, and shun
9116 The frumious Bandersnatch!'
9117
9118 He took his vorpal sword i)
9119 2 OK FETCH Completed
9120 * BYE Session terminating.
9121 X OK LOGOUT Completed
9122 " | \
9123 $at_diff - "$at_stdout" || at_failed=:
9124 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:237"
9125 $at_failed && at_fn_log_failure
9126 $at_traceon; }
9127
9128
9129
9130 set +x
9131 $at_times_p && times >"$at_times_file"
9132 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9133 read at_status <"$at_status_file"
9134 #AT_STOP_88
9135 #AT_START_89
9136 at_fn_group_banner 89 'fetch.at:248' \
9137 "BODY[TEXT]<X-too-big>" " " 4
9138 at_xfail=no
9139 (
9140 printf "%s\n" "89. $at_setup_line: testing $at_desc ..."
9141 $at_traceon
9142
9143
9144
9145 cwd=`pwd`
9146
9147
9148
9149
9150
9151 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
9152 if test -e INBOX/mbox1; then
9153
9154 # First, set all modes to +w
9155 find INBOX/mbox1 | xargs chmod +w
9156 # Then, remove executable bit from regular files
9157 find INBOX/mbox1 -type f | xargs chmod -x
9158
9159 else
9160
9161 # First, set all modes to +w
9162 find INBOX | xargs chmod +w
9163 # Then, remove executable bit from regular files
9164 find INBOX -type f | xargs chmod -x
9165
9166 fi
9167
9168
9169
9170
9171 { set +x
9172 printf "%s\n" "$at_srcdir/fetch.at:248:
9173
9174 test -d \$HOME || exit 77
9175 make_config
9176 cat >input <<'_ATEOF'
9177 1 SELECT INBOX
9178 2 FETCH 1 BODY[TEXT]<3900.4000>
9179 X LOGOUT
9180 _ATEOF
9181
9182 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9183 "
9184 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:248"
9185 ( $at_check_trace;
9186
9187 test -d $HOME || exit 77
9188 make_config
9189 cat >input <<'_ATEOF'
9190 1 SELECT INBOX
9191 2 FETCH 1 BODY[TEXT]<3900.4000>
9192 X LOGOUT
9193 _ATEOF
9194
9195 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9196
9197 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9198 at_status=$? at_failed=false
9199 $at_check_filter
9200 at_fn_diff_devnull "$at_stderr" || at_failed=:
9201 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9202 * 1 FETCH (FLAGS (\\Seen) BODY[TEXT]<3900> \"\")
9203 2 OK FETCH Completed
9204 * BYE Session terminating.
9205 X OK LOGOUT Completed
9206 " | \
9207 $at_diff - "$at_stdout" || at_failed=:
9208 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:248"
9209 $at_failed && at_fn_log_failure
9210 $at_traceon; }
9211
9212
9213
9214 set +x
9215 $at_times_p && times >"$at_times_file"
9216 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9217 read at_status <"$at_status_file"
9218 #AT_STOP_89
9219 #AT_START_90
9220 at_fn_group_banner 90 'fetch.at:261' \
9221 "BODY[TEXT] (truncated)" " " 4
9222 at_xfail=no
9223 (
9224 printf "%s\n" "90. $at_setup_line: testing $at_desc ..."
9225 $at_traceon
9226
9227
9228
9229 cwd=`pwd`
9230
9231
9232
9233
9234
9235 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
9236 if test -e INBOX/mbox1; then
9237
9238 # First, set all modes to +w
9239 find INBOX/mbox1 | xargs chmod +w
9240 # Then, remove executable bit from regular files
9241 find INBOX/mbox1 -type f | xargs chmod -x
9242
9243 else
9244
9245 # First, set all modes to +w
9246 find INBOX | xargs chmod +w
9247 # Then, remove executable bit from regular files
9248 find INBOX -type f | xargs chmod -x
9249
9250 fi
9251
9252
9253
9254
9255 { set +x
9256 printf "%s\n" "$at_srcdir/fetch.at:261:
9257
9258 test -d \$HOME || exit 77
9259 make_config
9260 cat >input <<'_ATEOF'
9261 1 SELECT INBOX
9262 2 FETCH 1 BODY[TEXT]<0.4000>
9263 X LOGOUT
9264 _ATEOF
9265
9266 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9267 "
9268 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:261"
9269 ( $at_check_trace;
9270
9271 test -d $HOME || exit 77
9272 make_config
9273 cat >input <<'_ATEOF'
9274 1 SELECT INBOX
9275 2 FETCH 1 BODY[TEXT]<0.4000>
9276 X LOGOUT
9277 _ATEOF
9278
9279 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9280
9281 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9282 at_status=$? at_failed=false
9283 $at_check_filter
9284 at_fn_diff_devnull "$at_stderr" || at_failed=:
9285 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9286 * 1 FETCH (FLAGS (\\Seen) BODY[TEXT]<0> {972}
9287 \`Twas brillig, and the slithy toves
9288 Did gyre and gimble in the wabe;
9289 All mimsy were the borogoves,
9290 And the mome raths outgrabe.
9291
9292 \`Beware the Jabberwock, my son!
9293 The jaws that bite, the claws that catch!
9294 Beware the Jujub bird, and shun
9295 The frumious Bandersnatch!'
9296
9297 He took his vorpal sword in hand:
9298 Long time the manxome foe he sought --
9299 So rested he by the Tumtum gree,
9300 And stood awhile in thought.
9301
9302 And as in uffish thought he stood,
9303 The Jabberwock, with eyes of flame,
9304 Came whiffling through the tulgey wook,
9305 And burbled as it came!
9306
9307 One, two! One, two! And through and through
9308 The vorpal blade went snicker-snack!
9309 He left it dead, and with its head
9310 He went galumphing back.
9311
9312 \`And has thou slain the Jabberwock?
9313 Come to my arms, my beamish boy!
9314 O frabjous day! Calloh! Callay!
9315 He chortled in his joy.
9316
9317 \`Twas brillig, and the slithy toves
9318 Did gyre and gimble in the wabe;
9319 All mimsy were the borogoves,
9320 And the mome raths outgrabe.
9321
9322 )
9323 2 OK FETCH Completed
9324 * BYE Session terminating.
9325 X OK LOGOUT Completed
9326 " | \
9327 $at_diff - "$at_stdout" || at_failed=:
9328 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:261"
9329 $at_failed && at_fn_log_failure
9330 $at_traceon; }
9331
9332
9333
9334 set +x
9335 $at_times_p && times >"$at_times_file"
9336 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9337 read at_status <"$at_status_file"
9338 #AT_STOP_90
9339 #AT_START_91
9340 at_fn_group_banner 91 'fetch.at:307' \
9341 "BODY[N.MIME]" " " 4
9342 at_xfail=no
9343 (
9344 printf "%s\n" "91. $at_setup_line: testing $at_desc ..."
9345 $at_traceon
9346
9347
9348
9349 cwd=`pwd`
9350
9351
9352
9353
9354
9355 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
9356 if test -e INBOX/mbox1; then
9357
9358 # First, set all modes to +w
9359 find INBOX/mbox1 | xargs chmod +w
9360 # Then, remove executable bit from regular files
9361 find INBOX/mbox1 -type f | xargs chmod -x
9362
9363 else
9364
9365 # First, set all modes to +w
9366 find INBOX | xargs chmod +w
9367 # Then, remove executable bit from regular files
9368 find INBOX -type f | xargs chmod -x
9369
9370 fi
9371
9372
9373
9374
9375 { set +x
9376 printf "%s\n" "$at_srcdir/fetch.at:307:
9377
9378 test -d \$HOME || exit 77
9379 make_config
9380 cat >input <<'_ATEOF'
9381 1 SELECT INBOX
9382 2 FETCH 3 BODY[1.MIME]
9383 X LOGOUT
9384 _ATEOF
9385
9386 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9387 "
9388 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:307"
9389 ( $at_check_trace;
9390
9391 test -d $HOME || exit 77
9392 make_config
9393 cat >input <<'_ATEOF'
9394 1 SELECT INBOX
9395 2 FETCH 3 BODY[1.MIME]
9396 X LOGOUT
9397 _ATEOF
9398
9399 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9400
9401 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9402 at_status=$? at_failed=false
9403 $at_check_filter
9404 at_fn_diff_devnull "$at_stderr" || at_failed=:
9405 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9406 * 3 FETCH (FLAGS (\\Seen) BODY[1.MIME] {138}
9407 Content-Type: text/plain; name=\"msg.1\"; charset=\"us-ascii\"
9408 Content-ID: <[email protected]>
9409 Content-Description: How doth
9410
9411 )
9412 2 OK FETCH Completed
9413 * BYE Session terminating.
9414 X OK LOGOUT Completed
9415 " | \
9416 $at_diff - "$at_stdout" || at_failed=:
9417 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:307"
9418 $at_failed && at_fn_log_failure
9419 $at_traceon; }
9420
9421
9422
9423 set +x
9424 $at_times_p && times >"$at_times_file"
9425 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9426 read at_status <"$at_status_file"
9427 #AT_STOP_91
9428 #AT_START_92
9429 at_fn_group_banner 92 'fetch.at:316' \
9430 "BODY[<section>]" " " 4
9431 at_xfail=no
9432 (
9433 printf "%s\n" "92. $at_setup_line: testing $at_desc ..."
9434 $at_traceon
9435
9436
9437
9438 cwd=`pwd`
9439
9440
9441
9442
9443
9444 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
9445 if test -e INBOX/mbox1; then
9446
9447 # First, set all modes to +w
9448 find INBOX/mbox1 | xargs chmod +w
9449 # Then, remove executable bit from regular files
9450 find INBOX/mbox1 -type f | xargs chmod -x
9451
9452 else
9453
9454 # First, set all modes to +w
9455 find INBOX | xargs chmod +w
9456 # Then, remove executable bit from regular files
9457 find INBOX -type f | xargs chmod -x
9458
9459 fi
9460
9461
9462
9463
9464 { set +x
9465 printf "%s\n" "$at_srcdir/fetch.at:316:
9466
9467 test -d \$HOME || exit 77
9468 make_config
9469 cat >input <<'_ATEOF'
9470 1 SELECT INBOX
9471 2 FETCH 4 BODY[2.2.1]
9472 X LOGOUT
9473 _ATEOF
9474
9475 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9476 "
9477 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:316"
9478 ( $at_check_trace;
9479
9480 test -d $HOME || exit 77
9481 make_config
9482 cat >input <<'_ATEOF'
9483 1 SELECT INBOX
9484 2 FETCH 4 BODY[2.2.1]
9485 X LOGOUT
9486 _ATEOF
9487
9488 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9489
9490 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9491 at_status=$? at_failed=false
9492 $at_check_filter
9493 at_fn_diff_devnull "$at_stderr" || at_failed=:
9494 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9495 * 4 FETCH (FLAGS (\\Seen) BODY[2.2.1] {490}
9496 YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhbmQgeW91ciBqYXdzIGFyZSB0b28gd2Vh
9497 awpGb3IgYW55dGhpbmcgdG91Z2hlciB0aGFuIHN1ZXQ7CllldCB5b3UgZmluaXNoZWQgdGhlIGdv
9498 b3NlLCB3aXRoIHRoZSBib25lcyBhbmQgdGhlIGJlYWstLQpQcmF5IGhvdyBkaWQgeW91IG1hbmFn
9499 ZSB0byBkbyBpdD8nCgpgSW4gbXkgeW91dGgsJyBzYWlkIGhpcyBmYXRoZXIsIGBJIHRvb2sgdG8g
9500 dGhlIGxhdywKQW5kIGFyZ3VlZCBlYWNoIGNhc2Ugd2l0aCBteSB3aWZlOwpBbmQgdGhlIG11c2N1
9501 bGFyIHN0cmVuZ3RoLCB3aGljaCBpdCBnYXZlIHRvIG15IGphdywKSGFzIGxhc3RlZCB0aGUgcmVz
9502 dCBvZiBteSBsaWZlLicK
9503 )
9504 2 OK FETCH Completed
9505 * BYE Session terminating.
9506 X OK LOGOUT Completed
9507 " | \
9508 $at_diff - "$at_stdout" || at_failed=:
9509 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:316"
9510 $at_failed && at_fn_log_failure
9511 $at_traceon; }
9512
9513
9514
9515 set +x
9516 $at_times_p && times >"$at_times_file"
9517 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9518 read at_status <"$at_status_file"
9519 #AT_STOP_92
9520 #AT_START_93
9521 at_fn_group_banner 93 'fetch.at:335' \
9522 "N.HEADER (text/plain)" " " 4
9523 at_xfail=no
9524 (
9525 printf "%s\n" "93. $at_setup_line: testing $at_desc ..."
9526 $at_traceon
9527
9528
9529
9530 cwd=`pwd`
9531
9532
9533
9534
9535
9536 cp -r $abs_top_srcdir/testsuite/spool/msg.mbox INBOX
9537 if test -e INBOX/msg.mbox; then
9538
9539 # First, set all modes to +w
9540 find INBOX/msg.mbox | xargs chmod +w
9541 # Then, remove executable bit from regular files
9542 find INBOX/msg.mbox -type f | xargs chmod -x
9543
9544 else
9545
9546 # First, set all modes to +w
9547 find INBOX | xargs chmod +w
9548 # Then, remove executable bit from regular files
9549 find INBOX -type f | xargs chmod -x
9550
9551 fi
9552
9553
9554
9555
9556 { set +x
9557 printf "%s\n" "$at_srcdir/fetch.at:335:
9558
9559 test -d \$HOME || exit 77
9560 make_config
9561 cat >input <<'_ATEOF'
9562 1 SELECT INBOX
9563 2 FETCH 1 BODY[1.HEADER]
9564 X LOGOUT
9565 _ATEOF
9566
9567 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9568 "
9569 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:335"
9570 ( $at_check_trace;
9571
9572 test -d $HOME || exit 77
9573 make_config
9574 cat >input <<'_ATEOF'
9575 1 SELECT INBOX
9576 2 FETCH 1 BODY[1.HEADER]
9577 X LOGOUT
9578 _ATEOF
9579
9580 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9581
9582 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9583 at_status=$? at_failed=false
9584 $at_check_filter
9585 at_fn_diff_devnull "$at_stderr" || at_failed=:
9586 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9587 * 1 FETCH (BODY[1.HEADER] NIL)
9588 2 OK FETCH Completed
9589 * BYE Session terminating.
9590 X OK LOGOUT Completed
9591 " | \
9592 $at_diff - "$at_stdout" || at_failed=:
9593 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:335"
9594 $at_failed && at_fn_log_failure
9595 $at_traceon; }
9596
9597
9598
9599 set +x
9600 $at_times_p && times >"$at_times_file"
9601 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9602 read at_status <"$at_status_file"
9603 #AT_STOP_93
9604 #AT_START_94
9605 at_fn_group_banner 94 'fetch.at:340' \
9606 "N.HEADER (message/rfc822)" " " 4
9607 at_xfail=no
9608 (
9609 printf "%s\n" "94. $at_setup_line: testing $at_desc ..."
9610 $at_traceon
9611
9612
9613
9614 cwd=`pwd`
9615
9616
9617
9618
9619
9620 cp -r $abs_top_srcdir/testsuite/spool/msg.mbox INBOX
9621 if test -e INBOX/msg.mbox; then
9622
9623 # First, set all modes to +w
9624 find INBOX/msg.mbox | xargs chmod +w
9625 # Then, remove executable bit from regular files
9626 find INBOX/msg.mbox -type f | xargs chmod -x
9627
9628 else
9629
9630 # First, set all modes to +w
9631 find INBOX | xargs chmod +w
9632 # Then, remove executable bit from regular files
9633 find INBOX -type f | xargs chmod -x
9634
9635 fi
9636
9637
9638
9639
9640 { set +x
9641 printf "%s\n" "$at_srcdir/fetch.at:340:
9642
9643 test -d \$HOME || exit 77
9644 make_config
9645 cat >input <<'_ATEOF'
9646 1 SELECT INBOX
9647 2 FETCH 1 BODY[2.HEADER]
9648 X LOGOUT
9649 _ATEOF
9650
9651 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9652 "
9653 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:340"
9654 ( $at_check_trace;
9655
9656 test -d $HOME || exit 77
9657 make_config
9658 cat >input <<'_ATEOF'
9659 1 SELECT INBOX
9660 2 FETCH 1 BODY[2.HEADER]
9661 X LOGOUT
9662 _ATEOF
9663
9664 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9665
9666 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9667 at_status=$? at_failed=false
9668 $at_check_filter
9669 at_fn_diff_devnull "$at_stderr" || at_failed=:
9670 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9671 * 1 FETCH (BODY[2.HEADER] {406}
9672 Message-ID: <[email protected]>
9673 Date: Wed, 23 Nov 2011 10:33:17 +0200
9674 From: Sergey Poznyakoff <[email protected]>
9675 To: <[email protected]>
9676 Subject: Re: RFC822 Subtype
9677 In-reply-to: Your message of Wed, 23 Nov 2011 08:48:16 +0100
9678 <[email protected]>
9679 References: <[email protected]>
9680 X-Envelope-Date: Wed Nov 23 08:33:17 2011
9681 X-Envelope-Sender: [email protected]
9682
9683 )
9684 2 OK FETCH Completed
9685 * BYE Session terminating.
9686 X OK LOGOUT Completed
9687 " | \
9688 $at_diff - "$at_stdout" || at_failed=:
9689 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:340"
9690 $at_failed && at_fn_log_failure
9691 $at_traceon; }
9692
9693
9694
9695 set +x
9696 $at_times_p && times >"$at_times_file"
9697 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9698 read at_status <"$at_status_file"
9699 #AT_STOP_94
9700 #AT_START_95
9701 at_fn_group_banner 95 'fetch.at:357' \
9702 "N.HEADER.FIELDS" " " 4
9703 at_xfail=no
9704 (
9705 printf "%s\n" "95. $at_setup_line: testing $at_desc ..."
9706 $at_traceon
9707
9708
9709
9710 cwd=`pwd`
9711
9712
9713
9714
9715
9716 cp -r $abs_top_srcdir/testsuite/spool/msg.mbox INBOX
9717 if test -e INBOX/msg.mbox; then
9718
9719 # First, set all modes to +w
9720 find INBOX/msg.mbox | xargs chmod +w
9721 # Then, remove executable bit from regular files
9722 find INBOX/msg.mbox -type f | xargs chmod -x
9723
9724 else
9725
9726 # First, set all modes to +w
9727 find INBOX | xargs chmod +w
9728 # Then, remove executable bit from regular files
9729 find INBOX -type f | xargs chmod -x
9730
9731 fi
9732
9733
9734
9735
9736 { set +x
9737 printf "%s\n" "$at_srcdir/fetch.at:357:
9738
9739 test -d \$HOME || exit 77
9740 make_config
9741 cat >input <<'_ATEOF'
9742 1 SELECT INBOX
9743 2 FETCH 1 BODY[2.HEADER.FIELDS (FROM TO)]
9744 X LOGOUT
9745 _ATEOF
9746
9747 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9748 "
9749 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:357"
9750 ( $at_check_trace;
9751
9752 test -d $HOME || exit 77
9753 make_config
9754 cat >input <<'_ATEOF'
9755 1 SELECT INBOX
9756 2 FETCH 1 BODY[2.HEADER.FIELDS (FROM TO)]
9757 X LOGOUT
9758 _ATEOF
9759
9760 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9761
9762 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9763 at_status=$? at_failed=false
9764 $at_check_filter
9765 at_fn_diff_devnull "$at_stderr" || at_failed=:
9766 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9767 * 1 FETCH (BODY[2.HEADER.FIELDS (FROM TO)] {70}
9768 FROM: Sergey Poznyakoff <[email protected]>
9769 TO: <[email protected]>
9770
9771 )
9772 2 OK FETCH Completed
9773 * BYE Session terminating.
9774 X OK LOGOUT Completed
9775 " | \
9776 $at_diff - "$at_stdout" || at_failed=:
9777 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:357"
9778 $at_failed && at_fn_log_failure
9779 $at_traceon; }
9780
9781
9782
9783 set +x
9784 $at_times_p && times >"$at_times_file"
9785 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9786 read at_status <"$at_status_file"
9787 #AT_STOP_95
9788 #AT_START_96
9789 at_fn_group_banner 96 'fetch.at:366' \
9790 "nested message/rfc822" " " 4
9791 at_xfail=no
9792 (
9793 printf "%s\n" "96. $at_setup_line: testing $at_desc ..."
9794 $at_traceon
9795
9796
9797
9798 cwd=`pwd`
9799
9800
9801
9802
9803
9804 cp -r $abs_top_srcdir/testsuite/spool/msg.mbox INBOX
9805 if test -e INBOX/msg.mbox; then
9806
9807 # First, set all modes to +w
9808 find INBOX/msg.mbox | xargs chmod +w
9809 # Then, remove executable bit from regular files
9810 find INBOX/msg.mbox -type f | xargs chmod -x
9811
9812 else
9813
9814 # First, set all modes to +w
9815 find INBOX | xargs chmod +w
9816 # Then, remove executable bit from regular files
9817 find INBOX -type f | xargs chmod -x
9818
9819 fi
9820
9821
9822
9823
9824 { set +x
9825 printf "%s\n" "$at_srcdir/fetch.at:366:
9826
9827 test -d \$HOME || exit 77
9828 make_config
9829 cat >input <<'_ATEOF'
9830 1 SELECT INBOX
9831 2 FETCH 2 BODY[2.2.TEXT]
9832 X LOGOUT
9833 _ATEOF
9834
9835 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9836 "
9837 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:366"
9838 ( $at_check_trace;
9839
9840 test -d $HOME || exit 77
9841 make_config
9842 cat >input <<'_ATEOF'
9843 1 SELECT INBOX
9844 2 FETCH 2 BODY[2.2.TEXT]
9845 X LOGOUT
9846 _ATEOF
9847
9848 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9849
9850 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9851 at_status=$? at_failed=false
9852 $at_check_filter
9853 at_fn_diff_devnull "$at_stderr" || at_failed=:
9854 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9855 * 2 FETCH (FLAGS (\\Seen) BODY[2.2.TEXT] {451}
9856 5.2.1. RFC822 Subtype
9857
9858 A media type of \"message/rfc822\" indicates that the body contains an
9859 encapsulated message, with the syntax of an RFC 822 message.
9860 However, unlike top-level RFC 822 messages, the restriction that each
9861 \"message/rfc822\" body must include a \"From\", \"Date\", and at least one
9862 destination header is removed and replaced with the requirement that
9863 at least one of \"From\", \"Subject\", or \"Date\" must be present.
9864 )
9865 2 OK FETCH Completed
9866 * BYE Session terminating.
9867 X OK LOGOUT Completed
9868 " | \
9869 $at_diff - "$at_stdout" || at_failed=:
9870 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:366"
9871 $at_failed && at_fn_log_failure
9872 $at_traceon; }
9873
9874
9875
9876 set +x
9877 $at_times_p && times >"$at_times_file"
9878 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9879 read at_status <"$at_status_file"
9880 #AT_STOP_96
9881 #AT_START_97
9882 at_fn_group_banner 97 'fetch.at:380' \
9883 "nested multipart + message/rfc822" " " 4
9884 at_xfail=no
9885 (
9886 printf "%s\n" "97. $at_setup_line: testing $at_desc ..."
9887 $at_traceon
9888
9889
9890
9891 cwd=`pwd`
9892
9893
9894
9895
9896
9897 cp -r $abs_top_srcdir/testsuite/spool/msg.mbox INBOX
9898 if test -e INBOX/msg.mbox; then
9899
9900 # First, set all modes to +w
9901 find INBOX/msg.mbox | xargs chmod +w
9902 # Then, remove executable bit from regular files
9903 find INBOX/msg.mbox -type f | xargs chmod -x
9904
9905 else
9906
9907 # First, set all modes to +w
9908 find INBOX | xargs chmod +w
9909 # Then, remove executable bit from regular files
9910 find INBOX -type f | xargs chmod -x
9911
9912 fi
9913
9914
9915
9916
9917 { set +x
9918 printf "%s\n" "$at_srcdir/fetch.at:380:
9919
9920 test -d \$HOME || exit 77
9921 make_config
9922 cat >input <<'_ATEOF'
9923 1 SELECT INBOX
9924 2 FETCH 2 BODY[2.2.TEXT]
9925 X LOGOUT
9926 _ATEOF
9927
9928 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
9929 "
9930 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:380"
9931 ( $at_check_trace;
9932
9933 test -d $HOME || exit 77
9934 make_config
9935 cat >input <<'_ATEOF'
9936 1 SELECT INBOX
9937 2 FETCH 2 BODY[2.2.TEXT]
9938 X LOGOUT
9939 _ATEOF
9940
9941 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
9942
9943 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9944 at_status=$? at_failed=false
9945 $at_check_filter
9946 at_fn_diff_devnull "$at_stderr" || at_failed=:
9947 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
9948 * 2 FETCH (FLAGS (\\Seen) BODY[2.2.TEXT] {451}
9949 5.2.1. RFC822 Subtype
9950
9951 A media type of \"message/rfc822\" indicates that the body contains an
9952 encapsulated message, with the syntax of an RFC 822 message.
9953 However, unlike top-level RFC 822 messages, the restriction that each
9954 \"message/rfc822\" body must include a \"From\", \"Date\", and at least one
9955 destination header is removed and replaced with the requirement that
9956 at least one of \"From\", \"Subject\", or \"Date\" must be present.
9957 )
9958 2 OK FETCH Completed
9959 * BYE Session terminating.
9960 X OK LOGOUT Completed
9961 " | \
9962 $at_diff - "$at_stdout" || at_failed=:
9963 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:380"
9964 $at_failed && at_fn_log_failure
9965 $at_traceon; }
9966
9967
9968
9969 set +x
9970 $at_times_p && times >"$at_times_file"
9971 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9972 read at_status <"$at_status_file"
9973 #AT_STOP_97
9974 #AT_START_98
9975 at_fn_group_banner 98 'fetch.at:399' \
9976 "BODY.PEEK[HEADER]" " " 4
9977 at_xfail=no
9978 (
9979 printf "%s\n" "98. $at_setup_line: testing $at_desc ..."
9980 $at_traceon
9981
9982
9983
9984 cwd=`pwd`
9985
9986
9987
9988
9989
9990 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
9991 if test -e INBOX/mbox1; then
9992
9993 # First, set all modes to +w
9994 find INBOX/mbox1 | xargs chmod +w
9995 # Then, remove executable bit from regular files
9996 find INBOX/mbox1 -type f | xargs chmod -x
9997
9998 else
9999
10000 # First, set all modes to +w
10001 find INBOX | xargs chmod +w
10002 # Then, remove executable bit from regular files
10003 find INBOX -type f | xargs chmod -x
10004
10005 fi
10006
10007
10008
10009
10010 { set +x
10011 printf "%s\n" "$at_srcdir/fetch.at:399:
10012
10013 test -d \$HOME || exit 77
10014 make_config
10015 cat >input <<'_ATEOF'
10016 1 SELECT INBOX
10017 2 FETCH 1 BODY.PEEK[HEADER]
10018 X LOGOUT
10019 _ATEOF
10020
10021 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
10022 "
10023 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:399"
10024 ( $at_check_trace;
10025
10026 test -d $HOME || exit 77
10027 make_config
10028 cat >input <<'_ATEOF'
10029 1 SELECT INBOX
10030 2 FETCH 1 BODY.PEEK[HEADER]
10031 X LOGOUT
10032 _ATEOF
10033
10034 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
10035
10036 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10037 at_status=$? at_failed=false
10038 $at_check_filter
10039 at_fn_diff_devnull "$at_stderr" || at_failed=:
10040 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
10041 * 1 FETCH (BODY[HEADER] {326}
10042 Received: (from [email protected])
10043 by nonexistent.net id fBSKI8N04906
10044 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
10045 Date: Fri, 28 Dec 2001 22:18:08 +0200
10046 From: Foo Bar <[email protected]>
10047 Message-Id: <[email protected]>
10048 To: Bar <[email protected]>
10049 Subject: Jabberwocky
10050
10051 )
10052 2 OK FETCH Completed
10053 * BYE Session terminating.
10054 X OK LOGOUT Completed
10055 " | \
10056 $at_diff - "$at_stdout" || at_failed=:
10057 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:399"
10058 $at_failed && at_fn_log_failure
10059 $at_traceon; }
10060
10061
10062
10063 set +x
10064 $at_times_p && times >"$at_times_file"
10065 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10066 read at_status <"$at_status_file"
10067 #AT_STOP_98
10068 #AT_START_99
10069 at_fn_group_banner 99 'fetch.at:417' \
10070 "RFC822" " " 4
10071 at_xfail=no
10072 (
10073 printf "%s\n" "99. $at_setup_line: testing $at_desc ..."
10074 $at_traceon
10075
10076
10077
10078 cwd=`pwd`
10079
10080
10081
10082
10083
10084 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
10085 if test -e INBOX/mbox1; then
10086
10087 # First, set all modes to +w
10088 find INBOX/mbox1 | xargs chmod +w
10089 # Then, remove executable bit from regular files
10090 find INBOX/mbox1 -type f | xargs chmod -x
10091
10092 else
10093
10094 # First, set all modes to +w
10095 find INBOX | xargs chmod +w
10096 # Then, remove executable bit from regular files
10097 find INBOX -type f | xargs chmod -x
10098
10099 fi
10100
10101
10102
10103
10104 { set +x
10105 printf "%s\n" "$at_srcdir/fetch.at:417:
10106
10107 test -d \$HOME || exit 77
10108 make_config
10109 cat >input <<'_ATEOF'
10110 1 SELECT INBOX
10111 2 FETCH 1 RFC822
10112 X LOGOUT
10113 _ATEOF
10114
10115 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
10116 "
10117 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:417"
10118 ( $at_check_trace;
10119
10120 test -d $HOME || exit 77
10121 make_config
10122 cat >input <<'_ATEOF'
10123 1 SELECT INBOX
10124 2 FETCH 1 RFC822
10125 X LOGOUT
10126 _ATEOF
10127
10128 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
10129
10130 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10131 at_status=$? at_failed=false
10132 $at_check_filter
10133 at_fn_diff_devnull "$at_stderr" || at_failed=:
10134 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
10135 * 1 FETCH (FLAGS (\\Seen) RFC822 {1298}
10136 Received: (from [email protected])
10137 by nonexistent.net id fBSKI8N04906
10138 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
10139 Date: Fri, 28 Dec 2001 22:18:08 +0200
10140 From: Foo Bar <[email protected]>
10141 Message-Id: <[email protected]>
10142 To: Bar <[email protected]>
10143 Subject: Jabberwocky
10144
10145 \`Twas brillig, and the slithy toves
10146 Did gyre and gimble in the wabe;
10147 All mimsy were the borogoves,
10148 And the mome raths outgrabe.
10149
10150 \`Beware the Jabberwock, my son!
10151 The jaws that bite, the claws that catch!
10152 Beware the Jujub bird, and shun
10153 The frumious Bandersnatch!'
10154
10155 He took his vorpal sword in hand:
10156 Long time the manxome foe he sought --
10157 So rested he by the Tumtum gree,
10158 And stood awhile in thought.
10159
10160 And as in uffish thought he stood,
10161 The Jabberwock, with eyes of flame,
10162 Came whiffling through the tulgey wook,
10163 And burbled as it came!
10164
10165 One, two! One, two! And through and through
10166 The vorpal blade went snicker-snack!
10167 He left it dead, and with its head
10168 He went galumphing back.
10169
10170 \`And has thou slain the Jabberwock?
10171 Come to my arms, my beamish boy!
10172 O frabjous day! Calloh! Callay!
10173 He chortled in his joy.
10174
10175 \`Twas brillig, and the slithy toves
10176 Did gyre and gimble in the wabe;
10177 All mimsy were the borogoves,
10178 And the mome raths outgrabe.
10179
10180 )
10181 2 OK FETCH Completed
10182 * BYE Session terminating.
10183 X OK LOGOUT Completed
10184 " | \
10185 $at_diff - "$at_stdout" || at_failed=:
10186 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:417"
10187 $at_failed && at_fn_log_failure
10188 $at_traceon; }
10189
10190
10191
10192 set +x
10193 $at_times_p && times >"$at_times_file"
10194 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10195 read at_status <"$at_status_file"
10196 #AT_STOP_99
10197 #AT_START_100
10198 at_fn_group_banner 100 'fetch.at:470' \
10199 "RFC822.HEADER" " " 4
10200 at_xfail=no
10201 (
10202 printf "%s\n" "100. $at_setup_line: testing $at_desc ..."
10203 $at_traceon
10204
10205
10206
10207 cwd=`pwd`
10208
10209
10210
10211
10212
10213 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
10214 if test -e INBOX/mbox1; then
10215
10216 # First, set all modes to +w
10217 find INBOX/mbox1 | xargs chmod +w
10218 # Then, remove executable bit from regular files
10219 find INBOX/mbox1 -type f | xargs chmod -x
10220
10221 else
10222
10223 # First, set all modes to +w
10224 find INBOX | xargs chmod +w
10225 # Then, remove executable bit from regular files
10226 find INBOX -type f | xargs chmod -x
10227
10228 fi
10229
10230
10231
10232
10233 { set +x
10234 printf "%s\n" "$at_srcdir/fetch.at:470:
10235
10236 test -d \$HOME || exit 77
10237 make_config
10238 cat >input <<'_ATEOF'
10239 1 SELECT INBOX
10240 2 FETCH 2 RFC822.HEADER
10241 X LOGOUT
10242 _ATEOF
10243
10244 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
10245 "
10246 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:470"
10247 ( $at_check_trace;
10248
10249 test -d $HOME || exit 77
10250 make_config
10251 cat >input <<'_ATEOF'
10252 1 SELECT INBOX
10253 2 FETCH 2 RFC822.HEADER
10254 X LOGOUT
10255 _ATEOF
10256
10257 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
10258
10259 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10260 at_status=$? at_failed=false
10261 $at_check_filter
10262 at_fn_diff_devnull "$at_stderr" || at_failed=:
10263 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
10264 * 2 FETCH (RFC822.HEADER {328}
10265 Received: (from [email protected])
10266 by dontmailme.org id fERKR9N16790
10267 for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200
10268 Date: Fri, 28 Dec 2001 23:28:08 +0200
10269 From: Bar <[email protected]>
10270 To: Foo Bar <[email protected]>
10271 Message-Id: <[email protected]>
10272 Subject: Re: Jabberwocky
10273
10274 )
10275 2 OK FETCH Completed
10276 * BYE Session terminating.
10277 X OK LOGOUT Completed
10278 " | \
10279 $at_diff - "$at_stdout" || at_failed=:
10280 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:470"
10281 $at_failed && at_fn_log_failure
10282 $at_traceon; }
10283
10284
10285
10286 set +x
10287 $at_times_p && times >"$at_times_file"
10288 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10289 read at_status <"$at_status_file"
10290 #AT_STOP_100
10291 #AT_START_101
10292 at_fn_group_banner 101 'fetch.at:486' \
10293 "RFC822.SIZE" " " 4
10294 at_xfail=no
10295 (
10296 printf "%s\n" "101. $at_setup_line: testing $at_desc ..."
10297 $at_traceon
10298
10299
10300
10301 cwd=`pwd`
10302
10303
10304
10305
10306
10307 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
10308 if test -e INBOX/mbox1; then
10309
10310 # First, set all modes to +w
10311 find INBOX/mbox1 | xargs chmod +w
10312 # Then, remove executable bit from regular files
10313 find INBOX/mbox1 -type f | xargs chmod -x
10314
10315 else
10316
10317 # First, set all modes to +w
10318 find INBOX | xargs chmod +w
10319 # Then, remove executable bit from regular files
10320 find INBOX -type f | xargs chmod -x
10321
10322 fi
10323
10324
10325
10326
10327 { set +x
10328 printf "%s\n" "$at_srcdir/fetch.at:486:
10329
10330 test -d \$HOME || exit 77
10331 make_config
10332 cat >input <<'_ATEOF'
10333 1 SELECT INBOX
10334 2 FETCH 3 RFC822.SIZE
10335 X LOGOUT
10336 _ATEOF
10337
10338 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
10339 "
10340 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:486"
10341 ( $at_check_trace;
10342
10343 test -d $HOME || exit 77
10344 make_config
10345 cat >input <<'_ATEOF'
10346 1 SELECT INBOX
10347 2 FETCH 3 RFC822.SIZE
10348 X LOGOUT
10349 _ATEOF
10350
10351 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
10352
10353 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10354 at_status=$? at_failed=false
10355 $at_check_filter
10356 at_fn_diff_devnull "$at_stderr" || at_failed=:
10357 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
10358 * 3 FETCH (RFC822.SIZE 1611)
10359 2 OK FETCH Completed
10360 * BYE Session terminating.
10361 X OK LOGOUT Completed
10362 " | \
10363 $at_diff - "$at_stdout" || at_failed=:
10364 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:486"
10365 $at_failed && at_fn_log_failure
10366 $at_traceon; }
10367
10368
10369
10370 set +x
10371 $at_times_p && times >"$at_times_file"
10372 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10373 read at_status <"$at_status_file"
10374 #AT_STOP_101
10375 #AT_START_102
10376 at_fn_group_banner 102 'fetch.at:493' \
10377 "RFC822.TEXT" " " 4
10378 at_xfail=no
10379 (
10380 printf "%s\n" "102. $at_setup_line: testing $at_desc ..."
10381 $at_traceon
10382
10383
10384
10385 cwd=`pwd`
10386
10387
10388
10389
10390
10391 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
10392 if test -e INBOX/mbox1; then
10393
10394 # First, set all modes to +w
10395 find INBOX/mbox1 | xargs chmod +w
10396 # Then, remove executable bit from regular files
10397 find INBOX/mbox1 -type f | xargs chmod -x
10398
10399 else
10400
10401 # First, set all modes to +w
10402 find INBOX | xargs chmod +w
10403 # Then, remove executable bit from regular files
10404 find INBOX -type f | xargs chmod -x
10405
10406 fi
10407
10408
10409
10410
10411 { set +x
10412 printf "%s\n" "$at_srcdir/fetch.at:493:
10413
10414 test -d \$HOME || exit 77
10415 make_config
10416 cat >input <<'_ATEOF'
10417 1 SELECT INBOX
10418 2 FETCH 2 RFC822.TEXT
10419 X LOGOUT
10420 _ATEOF
10421
10422 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged
10423 "
10424 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:493"
10425 ( $at_check_trace;
10426
10427 test -d $HOME || exit 77
10428 make_config
10429 cat >input <<'_ATEOF'
10430 1 SELECT INBOX
10431 2 FETCH 2 RFC822.TEXT
10432 X LOGOUT
10433 _ATEOF
10434
10435 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged
10436
10437 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10438 at_status=$? at_failed=false
10439 $at_check_filter
10440 at_fn_diff_devnull "$at_stderr" || at_failed=:
10441 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
10442 * 2 FETCH (FLAGS (\\Seen) RFC822.TEXT {219}
10443 It seems very pretty, but it's *rather* hard to understand!'
10444 Somehow it seems to fill my head with ideas -- only I don't
10445 exactly know what they are! However, SOMEBODY killed SOMETHING:
10446 that's clear, at any rate...
10447 )
10448 2 OK FETCH Completed
10449 * BYE Session terminating.
10450 X OK LOGOUT Completed
10451 " | \
10452 $at_diff - "$at_stdout" || at_failed=:
10453 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:493"
10454 $at_failed && at_fn_log_failure
10455 $at_traceon; }
10456
10457
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_102
10464 #AT_START_103
10465 at_fn_group_banner 103 'fetch.at:505' \
10466 "FAST" " " 4
10467 at_xfail=no
10468 (
10469 printf "%s\n" "103. $at_setup_line: testing $at_desc ..."
10470 $at_traceon
10471
10472
10473
10474 cwd=`pwd`
10475
10476
10477
10478
10479
10480 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
10481 if test -e INBOX/mbox1; then
10482
10483 # First, set all modes to +w
10484 find INBOX/mbox1 | xargs chmod +w
10485 # Then, remove executable bit from regular files
10486 find INBOX/mbox1 -type f | xargs chmod -x
10487
10488 else
10489
10490 # First, set all modes to +w
10491 find INBOX | xargs chmod +w
10492 # Then, remove executable bit from regular files
10493 find INBOX -type f | xargs chmod -x
10494
10495 fi
10496
10497
10498
10499
10500 { set +x
10501 printf "%s\n" "$at_srcdir/fetch.at:505:
10502
10503 test -d \$HOME || exit 77
10504 make_config
10505 cat >input <<'_ATEOF'
10506 1 SELECT INBOX
10507 2 FETCH 1 FAST
10508 X LOGOUT
10509 _ATEOF
10510
10511 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged|fixup_tz
10512 "
10513 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:505"
10514 ( $at_check_trace;
10515
10516 test -d $HOME || exit 77
10517 make_config
10518 cat >input <<'_ATEOF'
10519 1 SELECT INBOX
10520 2 FETCH 1 FAST
10521 X LOGOUT
10522 _ATEOF
10523
10524 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged|fixup_tz
10525
10526 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10527 at_status=$? at_failed=false
10528 $at_check_filter
10529 at_fn_diff_devnull "$at_stderr" || at_failed=:
10530 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
10531 * 1 FETCH (FLAGS (\\Recent) INTERNALDATE \"28-Dec-2001 22:18:09 +0000\" RFC822.SIZE 1298)
10532 2 OK FETCH Completed
10533 * BYE Session terminating.
10534 X OK LOGOUT Completed
10535 " | \
10536 $at_diff - "$at_stdout" || at_failed=:
10537 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:505"
10538 $at_failed && at_fn_log_failure
10539 $at_traceon; }
10540
10541
10542
10543 set +x
10544 $at_times_p && times >"$at_times_file"
10545 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10546 read at_status <"$at_status_file"
10547 #AT_STOP_103
10548 #AT_START_104
10549 at_fn_group_banner 104 'fetch.at:514' \
10550 "FULL" " " 4
10551 at_xfail=no
10552 (
10553 printf "%s\n" "104. $at_setup_line: testing $at_desc ..."
10554 $at_traceon
10555
10556
10557
10558 cwd=`pwd`
10559
10560
10561
10562
10563
10564 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
10565 if test -e INBOX/mbox1; then
10566
10567 # First, set all modes to +w
10568 find INBOX/mbox1 | xargs chmod +w
10569 # Then, remove executable bit from regular files
10570 find INBOX/mbox1 -type f | xargs chmod -x
10571
10572 else
10573
10574 # First, set all modes to +w
10575 find INBOX | xargs chmod +w
10576 # Then, remove executable bit from regular files
10577 find INBOX -type f | xargs chmod -x
10578
10579 fi
10580
10581
10582
10583
10584 { set +x
10585 printf "%s\n" "$at_srcdir/fetch.at:514:
10586
10587 test -d \$HOME || exit 77
10588 make_config
10589 cat >input <<'_ATEOF'
10590 1 SELECT INBOX
10591 2 FETCH 4 FULL
10592 X LOGOUT
10593 _ATEOF
10594
10595 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_select_untagged|fixup_tz
10596 "
10597 at_fn_check_prepare_notrace 'an embedded newline' "fetch.at:514"
10598 ( $at_check_trace;
10599
10600 test -d $HOME || exit 77
10601 make_config
10602 cat >input <<'_ATEOF'
10603 1 SELECT INBOX
10604 2 FETCH 4 FULL
10605 X LOGOUT
10606 _ATEOF
10607
10608 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_select_untagged|fixup_tz
10609
10610 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10611 at_status=$? at_failed=false
10612 $at_check_filter
10613 at_fn_diff_devnull "$at_stderr" || at_failed=:
10614 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
10615 * 4 FETCH (FLAGS (\\Recent) INTERNALDATE \"13-Jul-2002 00:50:58 +0000\" RFC822.SIZE 3483 ENVELOPE (\"Sat, 13 Jul 2002 00:50:58 +0300\" \"Nested MIME\" ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Sergey Poznyakoff\" NIL \"gray\" \"example.net\")) ((\"Foo Bar\" NIL \"foobar\" \"nonexistent.net\")) NIL NIL NIL \"<[email protected]>\") BODY ((\"text\" \"plain\" (\"name\" \"msg.21\" \"charset\" \"us-ascii\") \"<[email protected]>\" \"Father William Part I\" \"7BIT\" 351 10)((\"application\" \"octet-stream\" (\"name\" \"msg.22\") \"<[email protected]>\" \"Father William Part II\" \"base64\" 486)((\"application\" \"octet-stream\" (\"name\" \"msg.23\") \"<[email protected]>\" \"Father William Part III\" \"base64\" 490)(\"application\" \"octet-stream\" (\"name\" \"msg.24\") \"<[email protected]>\" \"Father William Part IV\" \"base64\" 502) \"mixed\" NIL NIL NIL) \"mixed\" NIL NIL NIL) \"mixed\" NIL NIL NIL))
10616 2 OK FETCH Completed
10617 * BYE Session terminating.
10618 X OK LOGOUT Completed
10619 " | \
10620 $at_diff - "$at_stdout" || at_failed=:
10621 at_fn_check_status 0 $at_status "$at_srcdir/fetch.at:514"
10622 $at_failed && at_fn_log_failure
10623 $at_traceon; }
10624
10625
10626
10627 set +x
10628 $at_times_p && times >"$at_times_file"
10629 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10630 read at_status <"$at_status_file"
10631 #AT_STOP_104
10632 #AT_START_105
10633 at_fn_group_banner 105 'IDEF0955.at:17' \
10634 "IDEF0955" " " 5
10635 at_xfail=no
10636 (
10637 printf "%s\n" "105. $at_setup_line: testing $at_desc ..."
10638 $at_traceon
10639
10640
10641 { set +x
10642 printf "%s\n" "$at_srcdir/IDEF0955.at:19:
10643 test \"\$MU_ULONG_MAX_1\" = 0 && exit 77
10644
10645 cat > input <<EOT
10646 1 select INBOX
10647 2 FETCH 1:\$MU_ULONG_MAX_1 FLAGS
10648 3 UID FETCH 1:\$MU_ULONG_MAX_1 FLAGS
10649 X LOGOUT
10650 EOT
10651
10652
10653
10654
10655
10656 cp -r \$abs_top_srcdir/testsuite/spool/mbox1 INBOX
10657 if test -e INBOX/mbox1; then
10658
10659 # First, set all modes to +w
10660 find INBOX/mbox1 | xargs chmod +w
10661 # Then, remove executable bit from regular files
10662 find INBOX/mbox1 -type f | xargs chmod -x
10663
10664 else
10665
10666 # First, set all modes to +w
10667 find INBOX | xargs chmod +w
10668 # Then, remove executable bit from regular files
10669 find INBOX -type f | xargs chmod -x
10670
10671 fi
10672
10673
10674
10675
10676 test -d \$HOME || exit 77
10677 make_config
10678 cat > input <<EOT
10679 1 select INBOX
10680 2 FETCH 1:\$MU_ULONG_MAX_1 FLAGS
10681 3 UID FETCH 1:\$MU_ULONG_MAX_1 FLAGS
10682 X LOGOUT
10683
10684 EOT
10685
10686 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_uidvalidity
10687 "
10688 at_fn_check_prepare_notrace 'an embedded newline' "IDEF0955.at:19"
10689 ( $at_check_trace;
10690 test "$MU_ULONG_MAX_1" = 0 && exit 77
10691
10692 cat > input <<EOT
10693 1 select INBOX
10694 2 FETCH 1:$MU_ULONG_MAX_1 FLAGS
10695 3 UID FETCH 1:$MU_ULONG_MAX_1 FLAGS
10696 X LOGOUT
10697 EOT
10698
10699
10700
10701
10702
10703 cp -r $abs_top_srcdir/testsuite/spool/mbox1 INBOX
10704 if test -e INBOX/mbox1; then
10705
10706 # First, set all modes to +w
10707 find INBOX/mbox1 | xargs chmod +w
10708 # Then, remove executable bit from regular files
10709 find INBOX/mbox1 -type f | xargs chmod -x
10710
10711 else
10712
10713 # First, set all modes to +w
10714 find INBOX | xargs chmod +w
10715 # Then, remove executable bit from regular files
10716 find INBOX -type f | xargs chmod -x
10717
10718 fi
10719
10720
10721
10722
10723 test -d $HOME || exit 77
10724 make_config
10725 cat > input <<EOT
10726 1 select INBOX
10727 2 FETCH 1:$MU_ULONG_MAX_1 FLAGS
10728 3 UID FETCH 1:$MU_ULONG_MAX_1 FLAGS
10729 X LOGOUT
10730
10731 EOT
10732
10733 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_uidvalidity
10734
10735 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10736 at_status=$? at_failed=false
10737 $at_check_filter
10738 at_fn_diff_devnull "$at_stderr" || at_failed=:
10739 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
10740 * 5 EXISTS
10741 * 5 RECENT
10742 * OK [UIDNEXT 6] Predicted next uid
10743 * OK [UNSEEN 1] first unseen message
10744 * FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)
10745 * OK [PERMANENTFLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)] Permanent flags
10746 1 OK [READ-WRITE] SELECT Completed
10747 * 1 FETCH (FLAGS (\\Recent))
10748 * 2 FETCH (FLAGS (\\Recent))
10749 * 3 FETCH (FLAGS (\\Recent))
10750 * 4 FETCH (FLAGS (\\Recent))
10751 * 5 FETCH (FLAGS (\\Recent))
10752 2 OK FETCH Completed
10753 * 1 FETCH (UID 1 FLAGS (\\Recent))
10754 * 2 FETCH (UID 2 FLAGS (\\Recent))
10755 * 3 FETCH (UID 3 FLAGS (\\Recent))
10756 * 4 FETCH (UID 4 FLAGS (\\Recent))
10757 * 5 FETCH (UID 5 FLAGS (\\Recent))
10758 3 OK UID FETCH Completed
10759 * BYE Session terminating.
10760 X OK LOGOUT Completed
10761 " | \
10762 $at_diff - "$at_stdout" || at_failed=:
10763 at_fn_check_status 0 $at_status "$at_srcdir/IDEF0955.at:19"
10764 $at_failed && at_fn_log_failure
10765 $at_traceon; }
10766
10767
10768 set +x
10769 $at_times_p && times >"$at_times_file"
10770 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10771 read at_status <"$at_status_file"
10772 #AT_STOP_105
10773 #AT_START_106
10774 at_fn_group_banner 106 'IDEF0956.at:17' \
10775 "IDEF0956" " " 5
10776 at_xfail=no
10777 (
10778 printf "%s\n" "106. $at_setup_line: testing $at_desc ..."
10779 $at_traceon
10780
10781
10782 { set +x
10783 printf "%s\n" "$at_srcdir/IDEF0956.at:19:
10784 test \"\$MU_ULONG_MAX_1\" = 0 && exit 77
10785
10786 cat > input <<EOT
10787 EOT
10788
10789
10790
10791
10792
10793 cp -r \$abs_top_srcdir/testsuite/spool/search.mbox INBOX
10794 if test -e INBOX/search.mbox; then
10795
10796 # First, set all modes to +w
10797 find INBOX/search.mbox | xargs chmod +w
10798 # Then, remove executable bit from regular files
10799 find INBOX/search.mbox -type f | xargs chmod -x
10800
10801 else
10802
10803 # First, set all modes to +w
10804 find INBOX | xargs chmod +w
10805 # Then, remove executable bit from regular files
10806 find INBOX -type f | xargs chmod -x
10807
10808 fi
10809
10810
10811
10812
10813 test -d \$HOME || exit 77
10814 make_config
10815 cat > input <<EOT
10816 1 select INBOX
10817 2 FETCH 1 BODY[TEXT]<0.\$MU_ULONG_MAX_1>
10818 X LOGOUT
10819
10820 EOT
10821
10822 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\\r' | remove_uidvalidity
10823 "
10824 at_fn_check_prepare_notrace 'an embedded newline' "IDEF0956.at:19"
10825 ( $at_check_trace;
10826 test "$MU_ULONG_MAX_1" = 0 && exit 77
10827
10828 cat > input <<EOT
10829 EOT
10830
10831
10832
10833
10834
10835 cp -r $abs_top_srcdir/testsuite/spool/search.mbox INBOX
10836 if test -e INBOX/search.mbox; then
10837
10838 # First, set all modes to +w
10839 find INBOX/search.mbox | xargs chmod +w
10840 # Then, remove executable bit from regular files
10841 find INBOX/search.mbox -type f | xargs chmod -x
10842
10843 else
10844
10845 # First, set all modes to +w
10846 find INBOX | xargs chmod +w
10847 # Then, remove executable bit from regular files
10848 find INBOX -type f | xargs chmod -x
10849
10850 fi
10851
10852
10853
10854
10855 test -d $HOME || exit 77
10856 make_config
10857 cat > input <<EOT
10858 1 select INBOX
10859 2 FETCH 1 BODY[TEXT]<0.$MU_ULONG_MAX_1>
10860 X LOGOUT
10861
10862 EOT
10863
10864 imap4d --no-config --config-file=imap4d.conf --test --preauth < input | tr -d '\r' | remove_uidvalidity
10865
10866 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10867 at_status=$? at_failed=false
10868 $at_check_filter
10869 at_fn_diff_devnull "$at_stderr" || at_failed=:
10870 echo >>"$at_stdout"; printf "%s\n" "* PREAUTH IMAP4rev1 Test mode
10871 * 8 EXISTS
10872 * 5 RECENT
10873 * OK [UIDNEXT 9] Predicted next uid
10874 * OK [UNSEEN 4] first unseen message
10875 * FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)
10876 * OK [PERMANENTFLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)] Permanent flags
10877 1 OK [READ-WRITE] SELECT Completed
10878 * 1 FETCH (BODY[TEXT]<0> {161}
10879 ABASEMENT, n. A decent and customary mental attitude in the presence
10880 of wealth of power. Peculiarly appropriate in an employee when
10881 addressing an employer.
10882 )
10883 2 OK FETCH Completed
10884 * BYE Session terminating.
10885 X OK LOGOUT Completed
10886 " | \
10887 $at_diff - "$at_stdout" || at_failed=:
10888 at_fn_check_status 0 $at_status "$at_srcdir/IDEF0956.at:19"
10889 $at_failed && at_fn_log_failure
10890 $at_traceon; }
10891
10892
10893 set +x
10894 $at_times_p && times >"$at_times_file"
10895 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10896 read at_status <"$at_status_file"
10897 #AT_STOP_106
10898 #AT_START_107
10899 at_fn_group_banner 107 'clt_list.at:19' \
10900 "list" " " 6
10901 at_xfail=no
10902 (
10903 printf "%s\n" "107. $at_setup_line: testing $at_desc ..."
10904 $at_traceon
10905
10906
10907 { set +x
10908 printf "%s\n" "$at_srcdir/clt_list.at:21:
10909 # Prepare namespaces
10910 mkdir spool spool/A spool/B
10911
10912 mkdir archive archive/c archive/d archive/d/e
10913
10914 mkdir other other/foo other/foo/a other/foo/b other/bar other/bar/qux
10915
10916 touch spool/sent spool/outgoing spool/A/backup spool/A/cancelled
10917 touch archive/01 archive/02 archive/03
10918 touch archive/d/01 archive/d/02 archive/d/e/03 archive/d/e/04
10919
10920 touch other/foo/draft other/bar/draft other/bar/X
10921
10922 make_config spool
10923 "
10924 at_fn_check_prepare_notrace 'an embedded newline' "clt_list.at:21"
10925 ( $at_check_trace;
10926 # Prepare namespaces
10927 mkdir spool spool/A spool/B
10928
10929 mkdir archive archive/c archive/d archive/d/e
10930
10931 mkdir other other/foo other/foo/a other/foo/b other/bar other/bar/qux
10932
10933 touch spool/sent spool/outgoing spool/A/backup spool/A/cancelled
10934 touch archive/01 archive/02 archive/03
10935 touch archive/d/01 archive/d/02 archive/d/e/03 archive/d/e/04
10936
10937 touch other/foo/draft other/bar/draft other/bar/X
10938
10939 make_config spool
10940
10941 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10942 at_status=$? at_failed=false
10943 $at_check_filter
10944 at_fn_diff_devnull "$at_stderr" || at_failed=:
10945 at_fn_diff_devnull "$at_stdout" || at_failed=:
10946 at_fn_check_status 0 $at_status "$at_srcdir/clt_list.at:21"
10947 $at_failed && at_fn_log_failure
10948 $at_traceon; }
10949
10950
10951 { set +x
10952 printf "%s\n" "$at_srcdir/clt_list.at:38:
10953
10954 testclient imap4d.conf 'imapfolder url=\$URL list \"\" \"\" list \"\" % list \"\" \\* list A/ % list \"#archive:\" % list \"#archive:\" \\* list \"#archive:\" \"d.e\" list \"#archive:d.\" \"e\" list \"#archive:d.\" \"e.%\" list \"#archive:d.\" \\*'
10955
10956 "
10957 at_fn_check_prepare_notrace 'an embedded newline' "clt_list.at:38"
10958 ( $at_check_trace;
10959
10960 testclient imap4d.conf 'imapfolder url=$URL list "" "" list "" % list "" \* list A/ % list "#archive:" % list "#archive:" \* list "#archive:" "d.e" list "#archive:d." "e" list "#archive:d." "e.%" list "#archive:d." \*'
10961
10962
10963 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10964 at_status=$? at_failed=false
10965 $at_check_filter
10966 at_fn_diff_devnull "$at_stderr" || at_failed=:
10967 echo >>"$at_stdout"; printf "%s\n" "# LIST \"\" \"\"
10968 d- / 0 \"\"
10969 # LIST \"\" \"%\"
10970 d- / 0 \"A\"
10971 d- / 0 \"B\"
10972 -f 0 \"INBOX\"
10973 -f / 0 \"outgoing\"
10974 -f / 0 \"sent\"
10975 # LIST \"\" \"*\"
10976 d- / 0 \"A\"
10977 -f / 1 \"A/backup\"
10978 -f / 1 \"A/cancelled\"
10979 d- / 0 \"B\"
10980 -f 0 \"INBOX\"
10981 -f / 0 \"outgoing\"
10982 -f / 0 \"sent\"
10983 # LIST \"A/\" \"%\"
10984 -f / 1 \"A/backup\"
10985 -f / 1 \"A/cancelled\"
10986 # LIST \"#archive:\" \"%\"
10987 -f . 0 \"#archive:01\"
10988 -f . 0 \"#archive:02\"
10989 -f . 0 \"#archive:03\"
10990 d- . 0 \"#archive:c\"
10991 d- . 0 \"#archive:d\"
10992 # LIST \"#archive:\" \"*\"
10993 -f . 0 \"#archive:01\"
10994 -f . 0 \"#archive:02\"
10995 -f . 0 \"#archive:03\"
10996 d- . 0 \"#archive:c\"
10997 d- . 0 \"#archive:d\"
10998 -f . 1 \"#archive:d.01\"
10999 -f . 1 \"#archive:d.02\"
11000 d- . 1 \"#archive:d.e\"
11001 -f . 2 \"#archive:d.e.03\"
11002 -f . 2 \"#archive:d.e.04\"
11003 # LIST \"#archive:\" \"d.e\"
11004 d- . 1 \"#archive:d.e\"
11005 # LIST \"#archive:d.\" \"e\"
11006 d- . 1 \"#archive:d.e\"
11007 # LIST \"#archive:d.\" \"e.%\"
11008 -f . 2 \"#archive:d.e.03\"
11009 -f . 2 \"#archive:d.e.04\"
11010 # LIST \"#archive:d.\" \"*\"
11011 -f . 1 \"#archive:d.01\"
11012 -f . 1 \"#archive:d.02\"
11013 d- . 1 \"#archive:d.e\"
11014 -f . 2 \"#archive:d.e.03\"
11015 -f . 2 \"#archive:d.e.04\"
11016 " | \
11017 $at_diff - "$at_stdout" || at_failed=:
11018 at_fn_check_status 0 $at_status "$at_srcdir/clt_list.at:38"
11019 $at_failed && at_fn_log_failure
11020 $at_traceon; }
11021
11022
11023
11024
11025 set +x
11026 $at_times_p && times >"$at_times_file"
11027 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11028 read at_status <"$at_status_file"
11029 #AT_STOP_107