| 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;version.at:19;sieve version;; |
| 614 | 2;compile.at:17;compile ex-null.sv;; |
| 615 | 3;compile.at:18;compile box.sv;; |
| 616 | 4;compile.at:19;compile ex-1.10.2.sv;; |
| 617 | 5;compile.at:20;compile ex-2.3a.sv;; |
| 618 | 6;compile.at:21;compile ex-2.5.1.sv;; |
| 619 | 7;compile.at:22;compile ex-2.7.3.sv;; |
| 620 | 8;compile.at:23;compile ex-3.1a.sv;; |
| 621 | 9;compile.at:24;compile ex-3.1b.sv;; |
| 622 | 10;compile.at:25;compile ex-3.2.sv;; |
| 623 | 11;compile.at:26;compile ex-4.1.sv;; |
| 624 | 12;compile.at:27;compile ex-4.2.sv;; |
| 625 | 13;compile.at:28;compile ex-4.4a.sv;; |
| 626 | 14;compile.at:29;compile ex-4.4b.sv;; |
| 627 | 15;compile.at:30;compile ex-4.5.sv;; |
| 628 | 16;compile.at:31;compile ex-5.1.sv;; |
| 629 | 17;compile.at:32;compile ex-5.7.sv;; |
| 630 | 18;compile.at:33;compile ex-9.sv;; |
| 631 | 19;compile.at:34;compile ex-save-all.sv;; |
| 632 | 20;compile.at:35;compile example.sv;; |
| 633 | 21;compile.at:36;compile exn-2.3b.sv;; |
| 634 | 22;compile.at:37;compile exn-5.4.sv;; |
| 635 | 23;compile.at:38;compile t-complex.sv;; |
| 636 | 24;compile.at:39;compile t-exists.sv;; |
| 637 | 25;compile.at:40;compile t-fileinto.sv;; |
| 638 | 26;compile.at:41;compile t-mailutils.sv;; |
| 639 | 27;enc-char.at:17;encoded-character;encoded-character enc-char; |
| 640 | 28;false.at:17;false;test constant false; |
| 641 | 29;true.at:17;true;test constant true; |
| 642 | 30;not.at:17;not;test not boolean; |
| 643 | 31;action.at:17;action stop;; |
| 644 | 32;action.at:23;action null;; |
| 645 | 33;action.at:29;action keep;; |
| 646 | 34;action.at:35;action discard;; |
| 647 | 35;action.at:43;action fileinto;; |
| 648 | 36;redirect.at:17;redirect;action; |
| 649 | 37;reject.at:17;reject;action; |
| 650 | 38;address.at:17;address :all;test address all address-all; |
| 651 | 39;address.at:28;address :domain;test address domain address-domain; |
| 652 | 40;address.at:39;address :localpart;test address localpart address-localpart; |
| 653 | 41;address.at:50;address :matches;test address matches address-matches; |
| 654 | 42;allof.at:17;allof 00;test allof allof00; |
| 655 | 43;allof.at:28;allof 01;test allof allof01; |
| 656 | 44;allof.at:39;allof 11;test allof allof11; |
| 657 | 45;anyof.at:17;anyof 00;test anyof anyof00; |
| 658 | 46;anyof.at:28;anyof 01;test anyof anyof01; |
| 659 | 47;anyof.at:39;anyof 11;test anyof anyof11; |
| 660 | 48;envelope.at:17;envelope;test envelope; |
| 661 | 49;exists.at:17;exists: single header;test exists exists01; |
| 662 | 50;exists.at:28;exists: array;test exists exists02; |
| 663 | 51;exists.at:39;exists: array 2;test exists exists03; |
| 664 | 52;header.at:17;header :is;test header header-is; |
| 665 | 53;header.at:28;header arrays;test header header-arrays; |
| 666 | 54;header.at:39;header :matches;test header matches header-matches; |
| 667 | 55;header.at:51;header :mime;test header header-mime; |
| 668 | 56;relational.at:21;relational address;test relational address comparator i-ascii-numeric; |
| 669 | 57;relational.at:41;relational header;test relational header comparator i-ascii-numeric; |
| 670 | 58;relational.at:63;relational big test;test relational relational-hairy; |
| 671 | 59;size.at:17;size :under;test size under size-under; |
| 672 | 60;size.at:28;size :over;test size over size-over; |
| 673 | 61;mul-addr.at:18;multiple addresses;test address mul-addr; |
| 674 | 62;i-casemap.at:17;i-casemap :is;comparator i-casemap i-casemap-is; |
| 675 | 63;i-casemap.at:31;i-casemap :matches;comparator i-casemap i-casemap-matches; |
| 676 | 64;i-casemap.at:45;i-casemap :contains;comparator i-casemap i-casemap-contains; |
| 677 | 65;i-casemap.at:59;i-casemap :regex;comparator i-casemap i-casemap-regex; |
| 678 | 66;i-numeric.at:17;i-numeric :is;comparator i-numeric is i-numeric-is; |
| 679 | 67;i-numeric.at:31;i-numeric with contains;comparator i-numeric is i-numeric-contains; |
| 680 | 68;i-octet.at:17;i-octet :is;comparator i-octet is i-octet-is; |
| 681 | 69;i-octet.at:31;i-octet :matches;comparator i-octet matches i-octet-matches; |
| 682 | 70;i-octet.at:45;i-octet :contains;comparator i-octet contains i-octet-contains; |
| 683 | 71;i-octet.at:59;i-octet :regex;comparator i-octet regex i-octet-regex; |
| 684 | 72;ext.at:17;loadable extensions: numaddr;ext; |
| 685 | 73;moderator.at:19;moderator: program discard;moderator mod00; |
| 686 | 74;moderator.at:46;moderator: program address discard;moderator mod01; |
| 687 | 75;moderator.at:74;moderator: program keep;moderator mod02; |
| 688 | 76;pipeact.at:28;pipe action: pipe entire message;pipe action pipe00; |
| 689 | 77;pipeact.at:59;pipe action: pipe envelope;pipe action pipe01; |
| 690 | 78;pipeact.at:80;pipe action: pipe header;pipe action pipe02; |
| 691 | 79;pipeact.at:109;pipe action: pipe body;pipe action pipe03; |
| 692 | 80;pipeact.at:130;pipe action: pipe combined;pipe action pipe04; |
| 693 | 81;pipetest.at:19;pipe test: ;pipe test pipetest00; |
| 694 | 82;list.at:19;list: ;list test-list; |
| 695 | 83;addheader.at:20;addheader: prepend header;addheader addheader00; |
| 696 | 84;addheader.at:81;addheader: append header;addheader addheader01; |
| 697 | 85;delheader.at:38;deleteheader: delete all;deleteheader delheader delheader00; |
| 698 | 86;delheader.at:60;deleteheader: delete index;deleteheader delheader delheader01; |
| 699 | 87;delheader.at:84;deleteheader: delete index backwards;deleteheader delheader delheader02; |
| 700 | 88;delheader.at:108;deleteheader: delete regex;deleteheader delheader delheader03; |
| 701 | 89;vacation.at:20;vacation: default;vacation vac00; |
| 702 | 90;vacation.at:53;vacation: aliases;vacation vac01; |
| 703 | 91;vacation.at:99;vacation: always_reply;vacation vac02; |
| 704 | 92;vacation.at:158;vacation: database matching;vacation vac03; |
| 705 | 93;vacation.at:221;vacation: mime;vacation vac04; |
| 706 | 94;vacation.at:280;vacation: reply from RFC2822 file;vacation vac05; |
| 707 | 95;vacation.at:356;vacation: reply body from file;vacation vac06; |
| 708 | 96;variables.at:19;match variable;variables match match-variable; |
| 709 | 97;variables.at:31;set action;variables action set; |
| 710 | 98;variables.at:42;variables with encoded characters;variables encoded-character; |
| 711 | 99;variables.at:53;set modifiers;variables action set; |
| 712 | 100;variables.at:67;:quotewildcard modifier;variables action set; |
| 713 | 101;variables.at:78;:length modifier;variables action set; |
| 714 | 102;variables.at:89;string test;variables test string; |
| 715 | 103;variables.at:105;the --variable option;variables; |
| 716 | 104;environment.at:20;match;environment match; |
| 717 | 105;environment.at:33;no match;environment unmatch; |
| 718 | " |
| 719 | # List of the all the test groups. |
| 720 | at_groups_all=`printf "%s\n" "$at_help_all" | sed 's/;.*//'` |
| 721 | |
| 722 | # at_fn_validate_ranges NAME... |
| 723 | # ----------------------------- |
| 724 | # Validate and normalize the test group number contained in each variable |
| 725 | # NAME. Leading zeroes are treated as decimal. |
| 726 | at_fn_validate_ranges () |
| 727 | { |
| 728 | for at_grp |
| 729 | do |
| 730 | eval at_value=\$$at_grp |
| 731 | if test $at_value -lt 1 || test $at_value -gt 105; then |
| 732 | printf "%s\n" "invalid test group: $at_value" >&2 |
| 733 | exit 1 |
| 734 | fi |
| 735 | case $at_value in |
| 736 | 0*) # We want to treat leading 0 as decimal, like expr and test, but |
| 737 | # AS_VAR_ARITH treats it as octal if it uses $(( )). |
| 738 | # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the |
| 739 | # expr fork, but it is not worth the effort to determine if the |
| 740 | # shell supports XSI when the user can just avoid leading 0. |
| 741 | eval $at_grp='`expr $at_value + 0`' ;; |
| 742 | esac |
| 743 | done |
| 744 | } |
| 745 | # List of the tested programs. |
| 746 | at_tested='"sieve"' |
| 747 | |
| 748 | |
| 749 | at_prev= |
| 750 | for at_option |
| 751 | do |
| 752 | # If the previous option needs an argument, assign it. |
| 753 | if test -n "$at_prev"; then |
| 754 | at_option=$at_prev=$at_option |
| 755 | at_prev= |
| 756 | fi |
| 757 | |
| 758 | case $at_option in |
| 759 | *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;; |
| 760 | *) at_optarg= ;; |
| 761 | esac |
| 762 | |
| 763 | case $at_option in |
| 764 | --help | -h ) |
| 765 | at_help_p=: |
| 766 | ;; |
| 767 | |
| 768 | --list | -l ) |
| 769 | at_list_p=: |
| 770 | ;; |
| 771 | |
| 772 | --version | -V ) |
| 773 | at_version_p=: |
| 774 | ;; |
| 775 | |
| 776 | --clean | -c ) |
| 777 | at_clean=: |
| 778 | ;; |
| 779 | |
| 780 | --color ) |
| 781 | at_color=always |
| 782 | ;; |
| 783 | --color=* ) |
| 784 | case $at_optarg in |
| 785 | no | never | none) at_color=never ;; |
| 786 | auto | tty | if-tty) at_color=auto ;; |
| 787 | always | yes | force) at_color=always ;; |
| 788 | *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'` |
| 789 | as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;; |
| 790 | esac |
| 791 | ;; |
| 792 | |
| 793 | --debug | -d ) |
| 794 | at_debug_p=: |
| 795 | ;; |
| 796 | |
| 797 | --errexit | -e ) |
| 798 | at_debug_p=: |
| 799 | at_errexit_p=: |
| 800 | ;; |
| 801 | |
| 802 | --verbose | -v ) |
| 803 | at_verbose=; at_quiet=: |
| 804 | ;; |
| 805 | |
| 806 | --trace | -x ) |
| 807 | at_traceon='set -x' |
| 808 | at_trace_echo=echo |
| 809 | at_check_filter_trace=at_fn_filter_trace |
| 810 | ;; |
| 811 | |
| 812 | [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9]) |
| 813 | at_fn_validate_ranges at_option |
| 814 | as_fn_append at_groups "$at_option$as_nl" |
| 815 | ;; |
| 816 | |
| 817 | # Ranges |
| 818 | [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-) |
| 819 | at_range_start=`echo $at_option |tr -d X-` |
| 820 | at_fn_validate_ranges at_range_start |
| 821 | at_range=`printf "%s\n" "$at_groups_all" | \ |
| 822 | sed -ne '/^'$at_range_start'$/,$p'` |
| 823 | as_fn_append at_groups "$at_range$as_nl" |
| 824 | ;; |
| 825 | |
| 826 | -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9]) |
| 827 | at_range_end=`echo $at_option |tr -d X-` |
| 828 | at_fn_validate_ranges at_range_end |
| 829 | at_range=`printf "%s\n" "$at_groups_all" | \ |
| 830 | sed -ne '1,/^'$at_range_end'$/p'` |
| 831 | as_fn_append at_groups "$at_range$as_nl" |
| 832 | ;; |
| 833 | |
| 834 | [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \ |
| 835 | [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \ |
| 836 | [0-9][0-9]-[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] | \ |
| 838 | [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][0-9][0-9] ) |
| 840 | at_range_start=`expr $at_option : '\(.*\)-'` |
| 841 | at_range_end=`expr $at_option : '.*-\(.*\)'` |
| 842 | if test $at_range_start -gt $at_range_end; then |
| 843 | at_tmp=$at_range_end |
| 844 | at_range_end=$at_range_start |
| 845 | at_range_start=$at_tmp |
| 846 | fi |
| 847 | at_fn_validate_ranges at_range_start at_range_end |
| 848 | at_range=`printf "%s\n" "$at_groups_all" | \ |
| 849 | sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'` |
| 850 | as_fn_append at_groups "$at_range$as_nl" |
| 851 | ;; |
| 852 | |
| 853 | # Directory selection. |
| 854 | --directory | -C ) |
| 855 | at_prev=--directory |
| 856 | ;; |
| 857 | --directory=* ) |
| 858 | at_change_dir=: |
| 859 | at_dir=$at_optarg |
| 860 | if test x- = "x$at_dir" ; then |
| 861 | at_dir=./- |
| 862 | fi |
| 863 | ;; |
| 864 | |
| 865 | # Parallel execution. |
| 866 | --jobs | -j ) |
| 867 | at_jobs=0 |
| 868 | ;; |
| 869 | --jobs=* | -j[0-9]* ) |
| 870 | if test -n "$at_optarg"; then |
| 871 | at_jobs=$at_optarg |
| 872 | else |
| 873 | at_jobs=`expr X$at_option : 'X-j\(.*\)'` |
| 874 | fi |
| 875 | case $at_jobs in *[!0-9]*) |
| 876 | at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'` |
| 877 | as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;; |
| 878 | esac |
| 879 | ;; |
| 880 | |
| 881 | # Keywords. |
| 882 | --keywords | -k ) |
| 883 | at_prev=--keywords |
| 884 | ;; |
| 885 | --keywords=* ) |
| 886 | at_groups_selected=$at_help_all |
| 887 | at_save_IFS=$IFS |
| 888 | IFS=, |
| 889 | set X $at_optarg |
| 890 | shift |
| 891 | IFS=$at_save_IFS |
| 892 | for at_keyword |
| 893 | do |
| 894 | at_invert= |
| 895 | case $at_keyword in |
| 896 | '!'*) |
| 897 | at_invert="-v" |
| 898 | at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'` |
| 899 | ;; |
| 900 | esac |
| 901 | # It is on purpose that we match the test group titles too. |
| 902 | at_groups_selected=`printf "%s\n" "$at_groups_selected" | |
| 903 | grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"` |
| 904 | done |
| 905 | # Smash the keywords. |
| 906 | at_groups_selected=`printf "%s\n" "$at_groups_selected" | sed 's/;.*//'` |
| 907 | as_fn_append at_groups "$at_groups_selected$as_nl" |
| 908 | ;; |
| 909 | --recheck) |
| 910 | at_recheck=: |
| 911 | ;; |
| 912 | |
| 913 | *=*) |
| 914 | at_envvar=`expr "x$at_option" : 'x\([^=]*\)='` |
| 915 | # Reject names that are not valid shell variable names. |
| 916 | case $at_envvar in |
| 917 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 918 | as_fn_error $? "invalid variable name: \`$at_envvar'" ;; |
| 919 | esac |
| 920 | at_value=`printf "%s\n" "$at_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 921 | # Export now, but save eval for later and for debug scripts. |
| 922 | export $at_envvar |
| 923 | as_fn_append at_debug_args " $at_envvar='$at_value'" |
| 924 | ;; |
| 925 | |
| 926 | *) printf "%s\n" "$as_me: invalid option: $at_option" >&2 |
| 927 | printf "%s\n" "Try \`$0 --help' for more information." >&2 |
| 928 | exit 1 |
| 929 | ;; |
| 930 | esac |
| 931 | done |
| 932 | |
| 933 | # Verify our last option didn't require an argument |
| 934 | if test -n "$at_prev" |
| 935 | then : |
| 936 | as_fn_error $? "\`$at_prev' requires an argument" |
| 937 | fi |
| 938 | |
| 939 | # The file containing the suite. |
| 940 | at_suite_log=$at_dir/$as_me.log |
| 941 | |
| 942 | # Selected test groups. |
| 943 | if test -z "$at_groups$at_recheck"; then |
| 944 | at_groups=$at_groups_all |
| 945 | else |
| 946 | if test -n "$at_recheck" && test -r "$at_suite_log"; then |
| 947 | at_oldfails=`sed -n ' |
| 948 | /^Failed tests:$/,/^Skipped tests:$/{ |
| 949 | s/^[ ]*\([1-9][0-9]*\):.*/\1/p |
| 950 | } |
| 951 | /^Unexpected passes:$/,/^## Detailed failed tests/{ |
| 952 | s/^[ ]*\([1-9][0-9]*\):.*/\1/p |
| 953 | } |
| 954 | /^## Detailed failed tests/q |
| 955 | ' "$at_suite_log"` |
| 956 | as_fn_append at_groups "$at_oldfails$as_nl" |
| 957 | fi |
| 958 | # Sort the tests, removing duplicates. |
| 959 | at_groups=`printf "%s\n" "$at_groups" | sort -nu | sed '/^$/d'` |
| 960 | fi |
| 961 | |
| 962 | if test x"$at_color" = xalways \ |
| 963 | || { test x"$at_color" = xauto && test -t 1; }; then |
| 964 | at_red=`printf '\033[0;31m'` |
| 965 | at_grn=`printf '\033[0;32m'` |
| 966 | at_lgn=`printf '\033[1;32m'` |
| 967 | at_blu=`printf '\033[1;34m'` |
| 968 | at_std=`printf '\033[m'` |
| 969 | else |
| 970 | at_red= at_grn= at_lgn= at_blu= at_std= |
| 971 | fi |
| 972 | |
| 973 | # Help message. |
| 974 | if $at_help_p; then |
| 975 | cat <<_ATEOF || at_write_fail=1 |
| 976 | Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS] |
| 977 | |
| 978 | Run all the tests, or the selected TESTS, given by numeric ranges, and |
| 979 | save a detailed log file. Upon failure, create debugging scripts. |
| 980 | |
| 981 | Do not change environment variables directly. Instead, set them via |
| 982 | command line arguments. Set \`AUTOTEST_PATH' to select the executables |
| 983 | to exercise. Each relative directory is expanded as build and source |
| 984 | directories relative to the top level of this distribution. |
| 985 | E.g., from within the build directory /tmp/foo-1.0, invoking this: |
| 986 | |
| 987 | $ $0 AUTOTEST_PATH=bin |
| 988 | |
| 989 | is equivalent to the following, assuming the source directory is /src/foo-1.0: |
| 990 | |
| 991 | PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0 |
| 992 | _ATEOF |
| 993 | cat <<_ATEOF || at_write_fail=1 |
| 994 | |
| 995 | Operation modes: |
| 996 | -h, --help print the help message, then exit |
| 997 | -V, --version print version number, then exit |
| 998 | -c, --clean remove all the files this test suite might create and exit |
| 999 | -l, --list describes all the tests, or the selected TESTS |
| 1000 | _ATEOF |
| 1001 | cat <<_ATEOF || at_write_fail=1 |
| 1002 | |
| 1003 | Execution tuning: |
| 1004 | -C, --directory=DIR |
| 1005 | change to directory DIR before starting |
| 1006 | --color[=never|auto|always] |
| 1007 | enable colored test results on terminal, or always |
| 1008 | -j, --jobs[=N] |
| 1009 | Allow N jobs at once; infinite jobs with no arg (default 1) |
| 1010 | -k, --keywords=KEYWORDS |
| 1011 | select the tests matching all the comma-separated KEYWORDS |
| 1012 | multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD |
| 1013 | --recheck select all tests that failed or passed unexpectedly last time |
| 1014 | -e, --errexit abort as soon as a test fails; implies --debug |
| 1015 | -v, --verbose force more detailed output |
| 1016 | default for debugging scripts |
| 1017 | -d, --debug inhibit clean up and top-level logging |
| 1018 | default for debugging scripts |
| 1019 | -x, --trace enable tests shell tracing |
| 1020 | _ATEOF |
| 1021 | cat <<_ATEOF || at_write_fail=1 |
| 1022 | |
| 1023 | Report bugs to <[email protected]>. |
| 1024 | General help using GNU software: <https://www.gnu.org/gethelp/>. |
| 1025 | _ATEOF |
| 1026 | exit $at_write_fail |
| 1027 | fi |
| 1028 | |
| 1029 | # List of tests. |
| 1030 | if $at_list_p; then |
| 1031 | cat <<_ATEOF || at_write_fail=1 |
| 1032 | GNU Mailutils 3.20 test suite test groups: |
| 1033 | |
| 1034 | NUM: FILE-NAME:LINE TEST-GROUP-NAME |
| 1035 | KEYWORDS |
| 1036 | |
| 1037 | _ATEOF |
| 1038 | # Pass an empty line as separator between selected groups and help. |
| 1039 | printf "%s\n" "$at_groups$as_nl$as_nl$at_help_all" | |
| 1040 | awk 'NF == 1 && FS != ";" { |
| 1041 | selected[$ 1] = 1 |
| 1042 | next |
| 1043 | } |
| 1044 | /^$/ { FS = ";" } |
| 1045 | NF > 0 { |
| 1046 | if (selected[$ 1]) { |
| 1047 | printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3 |
| 1048 | if ($ 4) { |
| 1049 | lmax = 79 |
| 1050 | indent = " " |
| 1051 | line = indent |
| 1052 | len = length (line) |
| 1053 | n = split ($ 4, a, " ") |
| 1054 | for (i = 1; i <= n; i++) { |
| 1055 | l = length (a[i]) + 1 |
| 1056 | if (i > 1 && len + l > lmax) { |
| 1057 | print line |
| 1058 | line = indent " " a[i] |
| 1059 | len = length (line) |
| 1060 | } else { |
| 1061 | line = line " " a[i] |
| 1062 | len += l |
| 1063 | } |
| 1064 | } |
| 1065 | if (n) |
| 1066 | print line |
| 1067 | } |
| 1068 | } |
| 1069 | }' || at_write_fail=1 |
| 1070 | exit $at_write_fail |
| 1071 | fi |
| 1072 | if $at_version_p; then |
| 1073 | printf "%s\n" "$as_me (GNU Mailutils 3.20)" && |
| 1074 | cat <<\_ATEOF || at_write_fail=1 |
| 1075 | |
| 1076 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 1077 | This test suite is free software; the Free Software Foundation gives |
| 1078 | unlimited permission to copy, distribute and modify it. |
| 1079 | _ATEOF |
| 1080 | exit $at_write_fail |
| 1081 | fi |
| 1082 | |
| 1083 | # Should we print banners? Yes if more than one test is run. |
| 1084 | case $at_groups in #( |
| 1085 | *$as_nl* ) |
| 1086 | at_print_banners=: ;; #( |
| 1087 | * ) at_print_banners=false ;; |
| 1088 | esac |
| 1089 | # Text for banner N, set to a single space once printed. |
| 1090 | # Banner 1. testsuite.at:114 |
| 1091 | # Category starts at test group 2. |
| 1092 | at_banner_text_1="Compilation" |
| 1093 | # Banner 2. testsuite.at:118 |
| 1094 | # Category starts at test group 28. |
| 1095 | at_banner_text_2="Actions" |
| 1096 | # Banner 3. testsuite.at:126 |
| 1097 | # Category starts at test group 38. |
| 1098 | at_banner_text_3="Tests" |
| 1099 | # Banner 4. testsuite.at:137 |
| 1100 | # Category starts at test group 62. |
| 1101 | at_banner_text_4="Comparators" |
| 1102 | # Banner 5. testsuite.at:142 |
| 1103 | # Category starts at test group 72. |
| 1104 | at_banner_text_5="Extensions" |
| 1105 | # Banner 6. addheader.at:17 |
| 1106 | # Category starts at test group 83. |
| 1107 | at_banner_text_6="addheader" |
| 1108 | # Banner 7. delheader.at:17 |
| 1109 | # Category starts at test group 85. |
| 1110 | at_banner_text_7="deleteheader" |
| 1111 | # Banner 8. vacation.at:17 |
| 1112 | # Category starts at test group 89. |
| 1113 | at_banner_text_8="vacation" |
| 1114 | # Banner 9. variables.at:17 |
| 1115 | # Category starts at test group 96. |
| 1116 | at_banner_text_9="Variables extension" |
| 1117 | # Banner 10. environment.at:17 |
| 1118 | # Category starts at test group 104. |
| 1119 | at_banner_text_10="environment" |
| 1120 | |
| 1121 | # Take any -C into account. |
| 1122 | if $at_change_dir ; then |
| 1123 | test x != "x$at_dir" && cd "$at_dir" \ |
| 1124 | || as_fn_error $? "unable to change directory" |
| 1125 | at_dir=`pwd` |
| 1126 | fi |
| 1127 | |
| 1128 | # Load the config files for any default variable assignments. |
| 1129 | for at_file in atconfig atlocal |
| 1130 | do |
| 1131 | test -r $at_file || continue |
| 1132 | . ./$at_file || as_fn_error $? "invalid content: $at_file" |
| 1133 | done |
| 1134 | |
| 1135 | # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix: |
| 1136 | : "${at_top_build_prefix=$at_top_builddir}" |
| 1137 | |
| 1138 | # Perform any assignments requested during argument parsing. |
| 1139 | eval "$at_debug_args" |
| 1140 | |
| 1141 | # atconfig delivers names relative to the directory the test suite is |
| 1142 | # in, but the groups themselves are run in testsuite-dir/group-dir. |
| 1143 | if test -n "$at_top_srcdir"; then |
| 1144 | builddir=../.. |
| 1145 | for at_dir_var in srcdir top_srcdir top_build_prefix |
| 1146 | do |
| 1147 | eval at_val=\$at_$at_dir_var |
| 1148 | case $at_val in |
| 1149 | [\\/$]* | ?:[\\/]* ) at_prefix= ;; |
| 1150 | *) at_prefix=../../ ;; |
| 1151 | esac |
| 1152 | eval "$at_dir_var=\$at_prefix\$at_val" |
| 1153 | done |
| 1154 | fi |
| 1155 | |
| 1156 | ## -------------------- ## |
| 1157 | ## Directory structure. ## |
| 1158 | ## -------------------- ## |
| 1159 | |
| 1160 | # This is the set of directories and files used by this script |
| 1161 | # (non-literals are capitalized): |
| 1162 | # |
| 1163 | # TESTSUITE - the testsuite |
| 1164 | # TESTSUITE.log - summarizes the complete testsuite run |
| 1165 | # TESTSUITE.dir/ - created during a run, remains after -d or failed test |
| 1166 | # + at-groups/ - during a run: status of all groups in run |
| 1167 | # | + NNN/ - during a run: meta-data about test group NNN |
| 1168 | # | | + check-line - location (source file and line) of current AT_CHECK |
| 1169 | # | | + status - exit status of current AT_CHECK |
| 1170 | # | | + stdout - stdout of current AT_CHECK |
| 1171 | # | | + stder1 - stderr, including trace |
| 1172 | # | | + stderr - stderr, with trace filtered out |
| 1173 | # | | + test-source - portion of testsuite that defines group |
| 1174 | # | | + times - timestamps for computing duration |
| 1175 | # | | + pass - created if group passed |
| 1176 | # | | + xpass - created if group xpassed |
| 1177 | # | | + fail - created if group failed |
| 1178 | # | | + xfail - created if group xfailed |
| 1179 | # | | + skip - created if group skipped |
| 1180 | # + at-stop - during a run: end the run if this file exists |
| 1181 | # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction |
| 1182 | # + 0..NNN/ - created for each group NNN, remains after -d or failed test |
| 1183 | # | + TESTSUITE.log - summarizes the group results |
| 1184 | # | + ... - files created during the group |
| 1185 | |
| 1186 | # The directory the whole suite works in. |
| 1187 | # Should be absolute to let the user `cd' at will. |
| 1188 | at_suite_dir=$at_dir/$as_me.dir |
| 1189 | # The file containing the suite ($at_dir might have changed since earlier). |
| 1190 | at_suite_log=$at_dir/$as_me.log |
| 1191 | # The directory containing helper files per test group. |
| 1192 | at_helper_dir=$at_suite_dir/at-groups |
| 1193 | # Stop file: if it exists, do not start new jobs. |
| 1194 | at_stop_file=$at_suite_dir/at-stop |
| 1195 | # The fifo used for the job dispatcher. |
| 1196 | at_job_fifo=$at_suite_dir/at-job-fifo |
| 1197 | |
| 1198 | if $at_clean; then |
| 1199 | test -d "$at_suite_dir" && |
| 1200 | find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \; |
| 1201 | rm -f -r "$at_suite_dir" "$at_suite_log" |
| 1202 | exit $? |
| 1203 | fi |
| 1204 | |
| 1205 | # Don't take risks: use only absolute directories in PATH. |
| 1206 | # |
| 1207 | # For stand-alone test suites (ie. atconfig was not found), |
| 1208 | # AUTOTEST_PATH is relative to `.'. |
| 1209 | # |
| 1210 | # For embedded test suites, AUTOTEST_PATH is relative to the top level |
| 1211 | # of the package. Then expand it into build/src parts, since users |
| 1212 | # may create executables in both places. |
| 1213 | AUTOTEST_PATH=`printf "%s\n" "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"` |
| 1214 | at_path= |
| 1215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1216 | for as_dir in $AUTOTEST_PATH $PATH |
| 1217 | do |
| 1218 | IFS=$as_save_IFS |
| 1219 | case $as_dir in #((( |
| 1220 | '') as_dir=./ ;; |
| 1221 | */) ;; |
| 1222 | *) as_dir=$as_dir/ ;; |
| 1223 | esac |
| 1224 | test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR |
| 1225 | case $as_dir in |
| 1226 | [\\/]* | ?:[\\/]* ) |
| 1227 | as_fn_append at_path "$as_dir" |
| 1228 | ;; |
| 1229 | * ) |
| 1230 | if test -z "$at_top_build_prefix"; then |
| 1231 | # Stand-alone test suite. |
| 1232 | as_fn_append at_path "$as_dir" |
| 1233 | else |
| 1234 | # Embedded test suite. |
| 1235 | as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR" |
| 1236 | as_fn_append at_path "$at_top_srcdir/$as_dir" |
| 1237 | fi |
| 1238 | ;; |
| 1239 | esac |
| 1240 | done |
| 1241 | IFS=$as_save_IFS |
| 1242 | |
| 1243 | |
| 1244 | # Now build and simplify PATH. |
| 1245 | # |
| 1246 | # There might be directories that don't exist, but don't redirect |
| 1247 | # builtins' (eg., cd) stderr directly: Ultrix's sh hates that. |
| 1248 | at_new_path= |
| 1249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1250 | for as_dir in $at_path |
| 1251 | do |
| 1252 | IFS=$as_save_IFS |
| 1253 | case $as_dir in #((( |
| 1254 | '') as_dir=./ ;; |
| 1255 | */) ;; |
| 1256 | *) as_dir=$as_dir/ ;; |
| 1257 | esac |
| 1258 | test -d "$as_dir" || continue |
| 1259 | case $as_dir in |
| 1260 | [\\/]* | ?:[\\/]* ) ;; |
| 1261 | * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;; |
| 1262 | esac |
| 1263 | case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in |
| 1264 | *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;; |
| 1265 | $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;; |
| 1266 | *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;; |
| 1267 | esac |
| 1268 | done |
| 1269 | IFS=$as_save_IFS |
| 1270 | |
| 1271 | PATH=$at_new_path |
| 1272 | export PATH |
| 1273 | |
| 1274 | # Setting up the FDs. |
| 1275 | |
| 1276 | |
| 1277 | |
| 1278 | # 5 is the log file. Not to be overwritten if `-d'. |
| 1279 | if $at_debug_p; then |
| 1280 | at_suite_log=/dev/null |
| 1281 | else |
| 1282 | : >"$at_suite_log" |
| 1283 | fi |
| 1284 | exec 5>>"$at_suite_log" |
| 1285 | |
| 1286 | # Banners and logs. |
| 1287 | printf "%s\n" "## ------------------------------ ## |
| 1288 | ## GNU Mailutils 3.20 test suite. ## |
| 1289 | ## ------------------------------ ##" |
| 1290 | { |
| 1291 | printf "%s\n" "## ------------------------------ ## |
| 1292 | ## GNU Mailutils 3.20 test suite. ## |
| 1293 | ## ------------------------------ ##" |
| 1294 | echo |
| 1295 | |
| 1296 | printf "%s\n" "$as_me: command line was:" |
| 1297 | printf "%s\n" " \$ $0 $at_cli_args" |
| 1298 | echo |
| 1299 | |
| 1300 | # If ChangeLog exists, list a few lines in case it might help determining |
| 1301 | # the exact version. |
| 1302 | if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then |
| 1303 | printf "%s\n" "## ---------- ## |
| 1304 | ## ChangeLog. ## |
| 1305 | ## ---------- ##" |
| 1306 | echo |
| 1307 | sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog" |
| 1308 | echo |
| 1309 | fi |
| 1310 | |
| 1311 | { |
| 1312 | cat <<_ASUNAME |
| 1313 | ## --------- ## |
| 1314 | ## Platform. ## |
| 1315 | ## --------- ## |
| 1316 | |
| 1317 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1318 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1319 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1320 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1321 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1322 | |
| 1323 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1324 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1325 | |
| 1326 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1327 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1328 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1329 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1330 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1331 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1332 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1333 | |
| 1334 | _ASUNAME |
| 1335 | |
| 1336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1337 | for as_dir in $PATH |
| 1338 | do |
| 1339 | IFS=$as_save_IFS |
| 1340 | case $as_dir in #((( |
| 1341 | '') as_dir=./ ;; |
| 1342 | */) ;; |
| 1343 | *) as_dir=$as_dir/ ;; |
| 1344 | esac |
| 1345 | printf "%s\n" "PATH: $as_dir" |
| 1346 | done |
| 1347 | IFS=$as_save_IFS |
| 1348 | |
| 1349 | } |
| 1350 | echo |
| 1351 | |
| 1352 | # Contents of the config files. |
| 1353 | for at_file in atconfig atlocal |
| 1354 | do |
| 1355 | test -r $at_file || continue |
| 1356 | printf "%s\n" "$as_me: $at_file:" |
| 1357 | sed 's/^/| /' $at_file |
| 1358 | echo |
| 1359 | done |
| 1360 | } >&5 |
| 1361 | |
| 1362 | # This setting is needed on FreeBSD to ensure the LD_LIBRARY_PATH overrides |
| 1363 | # the DT_RPATH tag in ELF header. See |
| 1364 | # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27510 |
| 1365 | # for details. |
| 1366 | LD_LIBRARY_PATH_RPATH=y |
| 1367 | export LD_LIBRARY_PATH_RPATH |
| 1368 | |
| 1369 | |
| 1370 | ## ------------------------- ## |
| 1371 | ## Autotest shell functions. ## |
| 1372 | ## ------------------------- ## |
| 1373 | |
| 1374 | # at_fn_banner NUMBER |
| 1375 | # ------------------- |
| 1376 | # Output banner NUMBER, provided the testsuite is running multiple groups and |
| 1377 | # this particular banner has not yet been printed. |
| 1378 | at_fn_banner () |
| 1379 | { |
| 1380 | $at_print_banners || return 0 |
| 1381 | eval at_banner_text=\$at_banner_text_$1 |
| 1382 | test "x$at_banner_text" = "x " && return 0 |
| 1383 | eval "at_banner_text_$1=\" \"" |
| 1384 | if test -z "$at_banner_text"; then |
| 1385 | $at_first || echo |
| 1386 | else |
| 1387 | printf "%s\n" "$as_nl$at_banner_text$as_nl" |
| 1388 | fi |
| 1389 | } # at_fn_banner |
| 1390 | |
| 1391 | # at_fn_check_prepare_notrace REASON LINE |
| 1392 | # --------------------------------------- |
| 1393 | # Perform AT_CHECK preparations for the command at LINE for an untraceable |
| 1394 | # command; REASON is the reason for disabling tracing. |
| 1395 | at_fn_check_prepare_notrace () |
| 1396 | { |
| 1397 | $at_trace_echo "Not enabling shell tracing (command contains $1)" |
| 1398 | printf "%s\n" "$2" >"$at_check_line_file" |
| 1399 | at_check_trace=: at_check_filter=: |
| 1400 | : >"$at_stdout"; : >"$at_stderr" |
| 1401 | } |
| 1402 | |
| 1403 | # at_fn_check_prepare_trace LINE |
| 1404 | # ------------------------------ |
| 1405 | # Perform AT_CHECK preparations for the command at LINE for a traceable |
| 1406 | # command. |
| 1407 | at_fn_check_prepare_trace () |
| 1408 | { |
| 1409 | printf "%s\n" "$1" >"$at_check_line_file" |
| 1410 | at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace |
| 1411 | : >"$at_stdout"; : >"$at_stderr" |
| 1412 | } |
| 1413 | |
| 1414 | # at_fn_check_prepare_dynamic COMMAND LINE |
| 1415 | # ---------------------------------------- |
| 1416 | # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate |
| 1417 | # preparation function. |
| 1418 | at_fn_check_prepare_dynamic () |
| 1419 | { |
| 1420 | case $1 in |
| 1421 | *$as_nl*) |
| 1422 | at_fn_check_prepare_notrace 'an embedded newline' "$2" ;; |
| 1423 | *) |
| 1424 | at_fn_check_prepare_trace "$2" ;; |
| 1425 | esac |
| 1426 | } |
| 1427 | |
| 1428 | # at_fn_filter_trace |
| 1429 | # ------------------ |
| 1430 | # Remove the lines in the file "$at_stderr" generated by "set -x" and print |
| 1431 | # them to stderr. |
| 1432 | at_fn_filter_trace () |
| 1433 | { |
| 1434 | mv "$at_stderr" "$at_stder1" |
| 1435 | grep '^ *+' "$at_stder1" >&2 |
| 1436 | grep -v '^ *+' "$at_stder1" >"$at_stderr" |
| 1437 | } |
| 1438 | |
| 1439 | # at_fn_log_failure FILE-LIST |
| 1440 | # --------------------------- |
| 1441 | # Copy the files in the list on stdout with a "> " prefix, and exit the shell |
| 1442 | # with a failure exit code. |
| 1443 | at_fn_log_failure () |
| 1444 | { |
| 1445 | for file |
| 1446 | do printf "%s\n" "$file:"; sed 's/^/> /' "$file"; done |
| 1447 | echo 1 > "$at_status_file" |
| 1448 | exit 1 |
| 1449 | } |
| 1450 | |
| 1451 | # at_fn_check_skip EXIT-CODE LINE |
| 1452 | # ------------------------------- |
| 1453 | # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit |
| 1454 | # the test group subshell with that same exit code. Use LINE in any report |
| 1455 | # about test failure. |
| 1456 | at_fn_check_skip () |
| 1457 | { |
| 1458 | case $1 in |
| 1459 | 99) echo 99 > "$at_status_file"; at_failed=: |
| 1460 | printf "%s\n" "$2: hard failure"; exit 99;; |
| 1461 | 77) echo 77 > "$at_status_file"; exit 77;; |
| 1462 | esac |
| 1463 | } |
| 1464 | |
| 1465 | # at_fn_check_status EXPECTED EXIT-CODE LINE |
| 1466 | # ------------------------------------------ |
| 1467 | # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing. |
| 1468 | # Otherwise, if it is 77 or 99, exit the test group subshell with that same |
| 1469 | # exit code; if it is anything else print an error message referring to LINE, |
| 1470 | # and fail the test. |
| 1471 | at_fn_check_status () |
| 1472 | { |
| 1473 | case $2 in |
| 1474 | $1 ) ;; |
| 1475 | 77) echo 77 > "$at_status_file"; exit 77;; |
| 1476 | 99) echo 99 > "$at_status_file"; at_failed=: |
| 1477 | printf "%s\n" "$3: hard failure"; exit 99;; |
| 1478 | *) printf "%s\n" "$3: exit code was $2, expected $1" |
| 1479 | at_failed=:;; |
| 1480 | esac |
| 1481 | } |
| 1482 | |
| 1483 | # at_fn_diff_devnull FILE |
| 1484 | # ----------------------- |
| 1485 | # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff |
| 1486 | # invocations. |
| 1487 | at_fn_diff_devnull () |
| 1488 | { |
| 1489 | test -s "$1" || return 0 |
| 1490 | $at_diff "$at_devnull" "$1" |
| 1491 | } |
| 1492 | |
| 1493 | # at_fn_test NUMBER |
| 1494 | # ----------------- |
| 1495 | # Parse out test NUMBER from the tail of this file. |
| 1496 | at_fn_test () |
| 1497 | { |
| 1498 | eval at_sed=\$at_sed$1 |
| 1499 | sed "$at_sed" "$at_myself" > "$at_test_source" |
| 1500 | } |
| 1501 | |
| 1502 | # at_fn_create_debugging_script |
| 1503 | # ----------------------------- |
| 1504 | # Create the debugging script $at_group_dir/run which will reproduce the |
| 1505 | # current test group. |
| 1506 | at_fn_create_debugging_script () |
| 1507 | { |
| 1508 | { |
| 1509 | echo "#! /bin/sh" && |
| 1510 | echo 'test ${ZSH_VERSION+y} && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' && |
| 1511 | printf "%s\n" "cd '$at_dir'" && |
| 1512 | printf "%s\n" "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" && |
| 1513 | echo 'exit 1' |
| 1514 | } >"$at_group_dir/run" && |
| 1515 | chmod +x "$at_group_dir/run" |
| 1516 | } |
| 1517 | |
| 1518 | ## -------------------------------- ## |
| 1519 | ## End of autotest shell functions. ## |
| 1520 | ## -------------------------------- ## |
| 1521 | { |
| 1522 | printf "%s\n" "## ---------------- ## |
| 1523 | ## Tested programs. ## |
| 1524 | ## ---------------- ##" |
| 1525 | echo |
| 1526 | } >&5 |
| 1527 | |
| 1528 | # Report what programs are being tested. |
| 1529 | for at_program in : `eval echo $at_tested` |
| 1530 | do |
| 1531 | case $at_program in #( |
| 1532 | :) : |
| 1533 | continue ;; #( |
| 1534 | [\\/]* | ?:[\\/]*) : |
| 1535 | at_program_=$at_program ;; #( |
| 1536 | *) : |
| 1537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1538 | for as_dir in $PATH |
| 1539 | do |
| 1540 | IFS=$as_save_IFS |
| 1541 | case $as_dir in #((( |
| 1542 | '') as_dir=./ ;; |
| 1543 | */) ;; |
| 1544 | *) as_dir=$as_dir/ ;; |
| 1545 | esac |
| 1546 | test -f "$as_dir$at_program" && break |
| 1547 | done |
| 1548 | IFS=$as_save_IFS |
| 1549 | |
| 1550 | at_program_=$as_dir$at_program ;; |
| 1551 | esac |
| 1552 | |
| 1553 | if test -f "$at_program_"; then |
| 1554 | { |
| 1555 | printf "%s\n" "$at_srcdir/testsuite.at:108: $at_program_ --version" |
| 1556 | "$at_program_" --version </dev/null |
| 1557 | echo |
| 1558 | } >&5 2>&1 |
| 1559 | else |
| 1560 | as_fn_error $? "cannot find $at_program" "$LINENO" 5 |
| 1561 | fi |
| 1562 | done |
| 1563 | |
| 1564 | { |
| 1565 | printf "%s\n" "## ------------------ ## |
| 1566 | ## Running the tests. ## |
| 1567 | ## ------------------ ##" |
| 1568 | } >&5 |
| 1569 | |
| 1570 | at_start_date=`date` |
| 1571 | at_start_time=`date +%s 2>/dev/null` |
| 1572 | printf "%s\n" "$as_me: starting at: $at_start_date" >&5 |
| 1573 | |
| 1574 | # Create the master directory if it doesn't already exist. |
| 1575 | as_dir="$at_suite_dir"; as_fn_mkdir_p || |
| 1576 | as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5 |
| 1577 | |
| 1578 | # Can we diff with `/dev/null'? DU 5.0 refuses. |
| 1579 | if diff /dev/null /dev/null >/dev/null 2>&1; then |
| 1580 | at_devnull=/dev/null |
| 1581 | else |
| 1582 | at_devnull=$at_suite_dir/devnull |
| 1583 | >"$at_devnull" |
| 1584 | fi |
| 1585 | |
| 1586 | # Use `diff -u' when possible. |
| 1587 | if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff" |
| 1588 | then |
| 1589 | at_diff='diff -u' |
| 1590 | else |
| 1591 | at_diff=diff |
| 1592 | fi |
| 1593 | |
| 1594 | # Get the last needed group. |
| 1595 | for at_group in : $at_groups; do :; done |
| 1596 | |
| 1597 | # Extract the start and end lines of each test group at the tail |
| 1598 | # of this file |
| 1599 | awk ' |
| 1600 | BEGIN { FS="" } |
| 1601 | /^#AT_START_/ { |
| 1602 | start = NR |
| 1603 | } |
| 1604 | /^#AT_STOP_/ { |
| 1605 | test = substr ($ 0, 10) |
| 1606 | print "at_sed" test "=\"1," start "d;" (NR-1) "q\"" |
| 1607 | if (test == "'"$at_group"'") exit |
| 1608 | }' "$at_myself" > "$at_suite_dir/at-source-lines" && |
| 1609 | . "$at_suite_dir/at-source-lines" || |
| 1610 | as_fn_error $? "cannot create test line number cache" "$LINENO" 5 |
| 1611 | rm -f "$at_suite_dir/at-source-lines" |
| 1612 | |
| 1613 | # Set number of jobs for `-j'; avoid more jobs than test groups. |
| 1614 | set X $at_groups; shift; at_max_jobs=$# |
| 1615 | if test $at_max_jobs -eq 0; then |
| 1616 | at_jobs=1 |
| 1617 | fi |
| 1618 | if test $at_jobs -ne 1 && |
| 1619 | { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then |
| 1620 | at_jobs=$at_max_jobs |
| 1621 | fi |
| 1622 | |
| 1623 | # If parallel mode, don't output banners, don't split summary lines. |
| 1624 | if test $at_jobs -ne 1; then |
| 1625 | at_print_banners=false |
| 1626 | at_quiet=: |
| 1627 | fi |
| 1628 | |
| 1629 | # Set up helper dirs. |
| 1630 | rm -rf "$at_helper_dir" && |
| 1631 | mkdir "$at_helper_dir" && |
| 1632 | cd "$at_helper_dir" && |
| 1633 | { test -z "$at_groups" || mkdir $at_groups; } || |
| 1634 | as_fn_error $? "testsuite directory setup failed" "$LINENO" 5 |
| 1635 | |
| 1636 | # Functions for running a test group. We leave the actual |
| 1637 | # test group execution outside of a shell function in order |
| 1638 | # to avoid hitting zsh 4.x exit status bugs. |
| 1639 | |
| 1640 | # at_fn_group_prepare |
| 1641 | # ------------------- |
| 1642 | # Prepare for running a test group. |
| 1643 | at_fn_group_prepare () |
| 1644 | { |
| 1645 | # The directory for additional per-group helper files. |
| 1646 | at_job_dir=$at_helper_dir/$at_group |
| 1647 | # The file containing the location of the last AT_CHECK. |
| 1648 | at_check_line_file=$at_job_dir/check-line |
| 1649 | # The file containing the exit status of the last command. |
| 1650 | at_status_file=$at_job_dir/status |
| 1651 | # The files containing the output of the tested commands. |
| 1652 | at_stdout=$at_job_dir/stdout |
| 1653 | at_stder1=$at_job_dir/stder1 |
| 1654 | at_stderr=$at_job_dir/stderr |
| 1655 | # The file containing the code for a test group. |
| 1656 | at_test_source=$at_job_dir/test-source |
| 1657 | # The file containing dates. |
| 1658 | at_times_file=$at_job_dir/times |
| 1659 | |
| 1660 | # Be sure to come back to the top test directory. |
| 1661 | cd "$at_suite_dir" |
| 1662 | |
| 1663 | # Clearly separate the test groups when verbose. |
| 1664 | $at_first || $at_verbose echo |
| 1665 | |
| 1666 | at_group_normalized=$at_group |
| 1667 | |
| 1668 | eval 'while :; do |
| 1669 | case $at_group_normalized in #( |
| 1670 | '"$at_format"'*) break;; |
| 1671 | esac |
| 1672 | at_group_normalized=0$at_group_normalized |
| 1673 | done' |
| 1674 | |
| 1675 | |
| 1676 | # Create a fresh directory for the next test group, and enter. |
| 1677 | # If one already exists, the user may have invoked ./run from |
| 1678 | # within that directory; we remove the contents, but not the |
| 1679 | # directory itself, so that we aren't pulling the rug out from |
| 1680 | # under the shell's notion of the current directory. |
| 1681 | at_group_dir=$at_suite_dir/$at_group_normalized |
| 1682 | at_group_log=$at_group_dir/$as_me.log |
| 1683 | if test -d "$at_group_dir" |
| 1684 | then |
| 1685 | find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \; |
| 1686 | rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??* |
| 1687 | fi || |
| 1688 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5 |
| 1689 | printf "%s\n" "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;} |
| 1690 | # Be tolerant if the above `rm' was not able to remove the directory. |
| 1691 | as_dir="$at_group_dir"; as_fn_mkdir_p |
| 1692 | |
| 1693 | echo 0 > "$at_status_file" |
| 1694 | |
| 1695 | # In verbose mode, append to the log file *and* show on |
| 1696 | # the standard output; in quiet mode only write to the log. |
| 1697 | if test -z "$at_verbose"; then |
| 1698 | at_tee_pipe='tee -a "$at_group_log"' |
| 1699 | else |
| 1700 | at_tee_pipe='cat >> "$at_group_log"' |
| 1701 | fi |
| 1702 | } |
| 1703 | |
| 1704 | # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER] |
| 1705 | # ------------------------------------------------- |
| 1706 | # Declare the test group ORDINAL, located at LINE with group description DESC, |
| 1707 | # and residing under BANNER. Use PAD to align the status column. |
| 1708 | at_fn_group_banner () |
| 1709 | { |
| 1710 | at_setup_line="$2" |
| 1711 | test -n "$5" && at_fn_banner $5 |
| 1712 | at_desc="$3" |
| 1713 | case $1 in |
| 1714 | [0-9]) at_desc_line=" $1: ";; |
| 1715 | [0-9][0-9]) at_desc_line=" $1: " ;; |
| 1716 | *) at_desc_line="$1: " ;; |
| 1717 | esac |
| 1718 | as_fn_append at_desc_line "$3$4" |
| 1719 | $at_quiet printf %s "$at_desc_line" |
| 1720 | echo "# -*- compilation -*-" >> "$at_group_log" |
| 1721 | } |
| 1722 | |
| 1723 | # at_fn_group_postprocess |
| 1724 | # ----------------------- |
| 1725 | # Perform cleanup after running a test group. |
| 1726 | at_fn_group_postprocess () |
| 1727 | { |
| 1728 | # Be sure to come back to the suite directory, in particular |
| 1729 | # since below we might `rm' the group directory we are in currently. |
| 1730 | cd "$at_suite_dir" |
| 1731 | |
| 1732 | if test ! -f "$at_check_line_file"; then |
| 1733 | sed "s/^ */$as_me: WARNING: /" <<_ATEOF |
| 1734 | A failure happened in a test group before any test could be |
| 1735 | run. This means that test suite is improperly designed. Please |
| 1736 | report this failure to <[email protected]>. |
| 1737 | _ATEOF |
| 1738 | printf "%s\n" "$at_setup_line" >"$at_check_line_file" |
| 1739 | at_status=99 |
| 1740 | fi |
| 1741 | $at_verbose printf %s "$at_group. $at_setup_line: " |
| 1742 | printf %s "$at_group. $at_setup_line: " >> "$at_group_log" |
| 1743 | case $at_xfail:$at_status in |
| 1744 | yes:0) |
| 1745 | at_msg="UNEXPECTED PASS" |
| 1746 | at_res=xpass |
| 1747 | at_errexit=$at_errexit_p |
| 1748 | at_color=$at_red |
| 1749 | ;; |
| 1750 | no:0) |
| 1751 | at_msg="ok" |
| 1752 | at_res=pass |
| 1753 | at_errexit=false |
| 1754 | at_color=$at_grn |
| 1755 | ;; |
| 1756 | *:77) |
| 1757 | at_msg='skipped ('`cat "$at_check_line_file"`')' |
| 1758 | at_res=skip |
| 1759 | at_errexit=false |
| 1760 | at_color=$at_blu |
| 1761 | ;; |
| 1762 | no:* | *:99) |
| 1763 | at_msg='FAILED ('`cat "$at_check_line_file"`')' |
| 1764 | at_res=fail |
| 1765 | at_errexit=$at_errexit_p |
| 1766 | at_color=$at_red |
| 1767 | ;; |
| 1768 | yes:*) |
| 1769 | at_msg='expected failure ('`cat "$at_check_line_file"`')' |
| 1770 | at_res=xfail |
| 1771 | at_errexit=false |
| 1772 | at_color=$at_lgn |
| 1773 | ;; |
| 1774 | esac |
| 1775 | echo "$at_res" > "$at_job_dir/$at_res" |
| 1776 | # In parallel mode, output the summary line only afterwards. |
| 1777 | if test $at_jobs -ne 1 && test -n "$at_verbose"; then |
| 1778 | printf "%s\n" "$at_desc_line $at_color$at_msg$at_std" |
| 1779 | else |
| 1780 | # Make sure there is a separator even with long titles. |
| 1781 | printf "%s\n" " $at_color$at_msg$at_std" |
| 1782 | fi |
| 1783 | at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg" |
| 1784 | case $at_status in |
| 1785 | 0|77) |
| 1786 | # $at_times_file is only available if the group succeeded. |
| 1787 | # We're not including the group log, so the success message |
| 1788 | # is written in the global log separately. But we also |
| 1789 | # write to the group log in case they're using -d. |
| 1790 | if test -f "$at_times_file"; then |
| 1791 | at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')' |
| 1792 | rm -f "$at_times_file" |
| 1793 | fi |
| 1794 | printf "%s\n" "$at_log_msg" >> "$at_group_log" |
| 1795 | printf "%s\n" "$at_log_msg" >&5 |
| 1796 | |
| 1797 | # Cleanup the group directory, unless the user wants the files |
| 1798 | # or the success was unexpected. |
| 1799 | if $at_debug_p || test $at_res = xpass; then |
| 1800 | at_fn_create_debugging_script |
| 1801 | if test $at_res = xpass && $at_errexit; then |
| 1802 | echo stop > "$at_stop_file" |
| 1803 | fi |
| 1804 | else |
| 1805 | if test -d "$at_group_dir"; then |
| 1806 | find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \; |
| 1807 | rm -fr "$at_group_dir" |
| 1808 | fi |
| 1809 | rm -f "$at_test_source" |
| 1810 | fi |
| 1811 | ;; |
| 1812 | *) |
| 1813 | # Upon failure, include the log into the testsuite's global |
| 1814 | # log. The failure message is written in the group log. It |
| 1815 | # is later included in the global log. |
| 1816 | printf "%s\n" "$at_log_msg" >> "$at_group_log" |
| 1817 | |
| 1818 | # Upon failure, keep the group directory for autopsy, and create |
| 1819 | # the debugging script. With -e, do not start any further tests. |
| 1820 | at_fn_create_debugging_script |
| 1821 | if $at_errexit; then |
| 1822 | echo stop > "$at_stop_file" |
| 1823 | fi |
| 1824 | ;; |
| 1825 | esac |
| 1826 | } |
| 1827 | |
| 1828 | |
| 1829 | ## ------------ ## |
| 1830 | ## Driver loop. ## |
| 1831 | ## ------------ ## |
| 1832 | |
| 1833 | |
| 1834 | if (set -m && set +m && set +b) >/dev/null 2>&1; then |
| 1835 | set +b |
| 1836 | at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=- |
| 1837 | else |
| 1838 | at_job_control_on=: at_job_control_off=: at_job_group= |
| 1839 | fi |
| 1840 | |
| 1841 | for at_signal in 1 2 15; do |
| 1842 | trap 'set +x; set +e |
| 1843 | $at_job_control_off |
| 1844 | at_signal='"$at_signal"' |
| 1845 | echo stop > "$at_stop_file" |
| 1846 | trap "" $at_signal |
| 1847 | at_pgids= |
| 1848 | for at_pgid in `jobs -p 2>/dev/null`; do |
| 1849 | at_pgids="$at_pgids $at_job_group$at_pgid" |
| 1850 | done |
| 1851 | test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null |
| 1852 | wait |
| 1853 | if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then |
| 1854 | echo >&2 |
| 1855 | fi |
| 1856 | at_signame=`kill -l $at_signal 2>&1 || echo $at_signal` |
| 1857 | set x $at_signame |
| 1858 | test 0 -gt 2 && at_signame=$at_signal |
| 1859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5 |
| 1860 | printf "%s\n" "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;} |
| 1861 | as_fn_arith 128 + $at_signal && exit_status=$as_val |
| 1862 | as_fn_exit $exit_status' $at_signal |
| 1863 | done |
| 1864 | |
| 1865 | rm -f "$at_stop_file" |
| 1866 | at_first=: |
| 1867 | |
| 1868 | if test $at_jobs -ne 1 && |
| 1869 | rm -f "$at_job_fifo" && |
| 1870 | test -n "$at_job_group" && |
| 1871 | ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null |
| 1872 | then |
| 1873 | # FIFO job dispatcher. |
| 1874 | |
| 1875 | trap 'at_pids= |
| 1876 | for at_pid in `jobs -p`; do |
| 1877 | at_pids="$at_pids $at_job_group$at_pid" |
| 1878 | done |
| 1879 | if test -n "$at_pids"; then |
| 1880 | at_sig=TSTP |
| 1881 | test ${TMOUT+y} && at_sig=STOP |
| 1882 | kill -$at_sig $at_pids 2>/dev/null |
| 1883 | fi |
| 1884 | kill -STOP $$ |
| 1885 | test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP |
| 1886 | |
| 1887 | echo |
| 1888 | # Turn jobs into a list of numbers, starting from 1. |
| 1889 | at_joblist=`printf "%s\n" "$at_groups" | sed -n 1,${at_jobs}p` |
| 1890 | |
| 1891 | set X $at_joblist |
| 1892 | shift |
| 1893 | for at_group in $at_groups; do |
| 1894 | $at_job_control_on 2>/dev/null |
| 1895 | ( |
| 1896 | # Start one test group. |
| 1897 | $at_job_control_off |
| 1898 | if $at_first; then |
| 1899 | exec 7>"$at_job_fifo" |
| 1900 | else |
| 1901 | exec 6<&- |
| 1902 | fi |
| 1903 | trap 'set +x; set +e |
| 1904 | trap "" PIPE |
| 1905 | echo stop > "$at_stop_file" |
| 1906 | echo >&7 |
| 1907 | as_fn_exit 141' PIPE |
| 1908 | at_fn_group_prepare |
| 1909 | if cd "$at_group_dir" && |
| 1910 | at_fn_test $at_group && |
| 1911 | . "$at_test_source" |
| 1912 | then :; else |
| 1913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5 |
| 1914 | printf "%s\n" "$as_me: WARNING: unable to parse test group: $at_group" >&2;} |
| 1915 | at_failed=: |
| 1916 | fi |
| 1917 | at_fn_group_postprocess |
| 1918 | echo >&7 |
| 1919 | ) & |
| 1920 | $at_job_control_off |
| 1921 | if $at_first; then |
| 1922 | at_first=false |
| 1923 | exec 6<"$at_job_fifo" 7>"$at_job_fifo" |
| 1924 | fi |
| 1925 | shift # Consume one token. |
| 1926 | if test $# -gt 0; then :; else |
| 1927 | read at_token <&6 || break |
| 1928 | set x $* |
| 1929 | fi |
| 1930 | test -f "$at_stop_file" && break |
| 1931 | done |
| 1932 | exec 7>&- |
| 1933 | # Read back the remaining ($at_jobs - 1) tokens. |
| 1934 | set X $at_joblist |
| 1935 | shift |
| 1936 | if test $# -gt 0; then |
| 1937 | shift |
| 1938 | for at_job |
| 1939 | do |
| 1940 | read at_token |
| 1941 | done <&6 |
| 1942 | fi |
| 1943 | exec 6<&- |
| 1944 | wait |
| 1945 | else |
| 1946 | # Run serially, avoid forks and other potential surprises. |
| 1947 | for at_group in $at_groups; do |
| 1948 | at_fn_group_prepare |
| 1949 | if cd "$at_group_dir" && |
| 1950 | at_fn_test $at_group && |
| 1951 | . "$at_test_source"; then :; else |
| 1952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5 |
| 1953 | printf "%s\n" "$as_me: WARNING: unable to parse test group: $at_group" >&2;} |
| 1954 | at_failed=: |
| 1955 | fi |
| 1956 | at_fn_group_postprocess |
| 1957 | test -f "$at_stop_file" && break |
| 1958 | at_first=false |
| 1959 | done |
| 1960 | fi |
| 1961 | |
| 1962 | # Wrap up the test suite with summary statistics. |
| 1963 | cd "$at_helper_dir" |
| 1964 | |
| 1965 | # Use ?..???? when the list must remain sorted, the faster * otherwise. |
| 1966 | at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'` |
| 1967 | at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'` |
| 1968 | at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'` |
| 1969 | at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do |
| 1970 | echo $f; done | sed '/?/d; s,/xpass,,'` |
| 1971 | at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do |
| 1972 | echo $f; done | sed '/?/d; s,/fail,,'` |
| 1973 | |
| 1974 | set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list |
| 1975 | shift; at_group_count=$# |
| 1976 | set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$* |
| 1977 | set X $at_xfail_list; shift; at_xfail_count=$# |
| 1978 | set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$* |
| 1979 | set X $at_skip_list; shift; at_skip_count=$# |
| 1980 | |
| 1981 | as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val |
| 1982 | as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val |
| 1983 | as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val |
| 1984 | |
| 1985 | # Back to the top directory. |
| 1986 | cd "$at_dir" |
| 1987 | rm -rf "$at_helper_dir" |
| 1988 | |
| 1989 | # Compute the duration of the suite. |
| 1990 | at_stop_date=`date` |
| 1991 | at_stop_time=`date +%s 2>/dev/null` |
| 1992 | printf "%s\n" "$as_me: ending at: $at_stop_date" >&5 |
| 1993 | case $at_start_time,$at_stop_time in |
| 1994 | [0-9]*,[0-9]*) |
| 1995 | as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val |
| 1996 | as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val |
| 1997 | as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val |
| 1998 | as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val |
| 1999 | as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val |
| 2000 | at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s" |
| 2001 | printf "%s\n" "$as_me: test suite duration: $at_duration" >&5 |
| 2002 | ;; |
| 2003 | esac |
| 2004 | |
| 2005 | echo |
| 2006 | printf "%s\n" "## ------------- ## |
| 2007 | ## Test results. ## |
| 2008 | ## ------------- ##" |
| 2009 | echo |
| 2010 | { |
| 2011 | echo |
| 2012 | printf "%s\n" "## ------------- ## |
| 2013 | ## Test results. ## |
| 2014 | ## ------------- ##" |
| 2015 | echo |
| 2016 | } >&5 |
| 2017 | |
| 2018 | if test $at_run_count = 1; then |
| 2019 | at_result="1 test" |
| 2020 | at_were=was |
| 2021 | else |
| 2022 | at_result="$at_run_count tests" |
| 2023 | at_were=were |
| 2024 | fi |
| 2025 | if $at_errexit_p && test $at_unexpected_count != 0; then |
| 2026 | if test $at_xpass_count = 1; then |
| 2027 | at_result="$at_result $at_were run, one passed" |
| 2028 | else |
| 2029 | at_result="$at_result $at_were run, one failed" |
| 2030 | fi |
| 2031 | at_result="$at_result unexpectedly and inhibited subsequent tests." |
| 2032 | at_color=$at_red |
| 2033 | else |
| 2034 | # Don't you just love exponential explosion of the number of cases? |
| 2035 | at_color=$at_red |
| 2036 | case $at_xpass_count:$at_fail_count:$at_xfail_count in |
| 2037 | # So far, so good. |
| 2038 | 0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;; |
| 2039 | 0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;; |
| 2040 | |
| 2041 | # Some unexpected failures |
| 2042 | 0:*:0) at_result="$at_result $at_were run, |
| 2043 | $at_fail_count failed unexpectedly." ;; |
| 2044 | |
| 2045 | # Some failures, both expected and unexpected |
| 2046 | 0:*:1) at_result="$at_result $at_were run, |
| 2047 | $at_total_fail_count failed ($at_xfail_count expected failure)." ;; |
| 2048 | 0:*:*) at_result="$at_result $at_were run, |
| 2049 | $at_total_fail_count failed ($at_xfail_count expected failures)." ;; |
| 2050 | |
| 2051 | # No unexpected failures, but some xpasses |
| 2052 | *:0:*) at_result="$at_result $at_were run, |
| 2053 | $at_xpass_count passed unexpectedly." ;; |
| 2054 | |
| 2055 | # No expected failures, but failures and xpasses |
| 2056 | *:1:0) at_result="$at_result $at_were run, |
| 2057 | $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;; |
| 2058 | *:*:0) at_result="$at_result $at_were run, |
| 2059 | $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;; |
| 2060 | |
| 2061 | # All of them. |
| 2062 | *:*:1) at_result="$at_result $at_were run, |
| 2063 | $at_xpass_count passed unexpectedly, |
| 2064 | $at_total_fail_count failed ($at_xfail_count expected failure)." ;; |
| 2065 | *:*:*) at_result="$at_result $at_were run, |
| 2066 | $at_xpass_count passed unexpectedly, |
| 2067 | $at_total_fail_count failed ($at_xfail_count expected failures)." ;; |
| 2068 | esac |
| 2069 | |
| 2070 | if test $at_skip_count = 0 && test $at_run_count -gt 1; then |
| 2071 | at_result="All $at_result" |
| 2072 | fi |
| 2073 | fi |
| 2074 | |
| 2075 | # Now put skips in the mix. |
| 2076 | case $at_skip_count in |
| 2077 | 0) ;; |
| 2078 | 1) at_result="$at_result |
| 2079 | 1 test was skipped." ;; |
| 2080 | *) at_result="$at_result |
| 2081 | $at_skip_count tests were skipped." ;; |
| 2082 | esac |
| 2083 | |
| 2084 | if test $at_unexpected_count = 0; then |
| 2085 | echo "$at_color$at_result$at_std" |
| 2086 | echo "$at_result" >&5 |
| 2087 | else |
| 2088 | echo "${at_color}ERROR: $at_result$at_std" >&2 |
| 2089 | echo "ERROR: $at_result" >&5 |
| 2090 | { |
| 2091 | echo |
| 2092 | printf "%s\n" "## ------------------------ ## |
| 2093 | ## Summary of the failures. ## |
| 2094 | ## ------------------------ ##" |
| 2095 | |
| 2096 | # Summary of failed and skipped tests. |
| 2097 | if test $at_fail_count != 0; then |
| 2098 | echo "Failed tests:" |
| 2099 | $SHELL "$at_myself" $at_fail_list --list |
| 2100 | echo |
| 2101 | fi |
| 2102 | if test $at_skip_count != 0; then |
| 2103 | echo "Skipped tests:" |
| 2104 | $SHELL "$at_myself" $at_skip_list --list |
| 2105 | echo |
| 2106 | fi |
| 2107 | if test $at_xpass_count != 0; then |
| 2108 | echo "Unexpected passes:" |
| 2109 | $SHELL "$at_myself" $at_xpass_list --list |
| 2110 | echo |
| 2111 | fi |
| 2112 | if test $at_fail_count != 0; then |
| 2113 | printf "%s\n" "## ---------------------- ## |
| 2114 | ## Detailed failed tests. ## |
| 2115 | ## ---------------------- ##" |
| 2116 | echo |
| 2117 | for at_group in $at_fail_list |
| 2118 | do |
| 2119 | at_group_normalized=$at_group |
| 2120 | |
| 2121 | eval 'while :; do |
| 2122 | case $at_group_normalized in #( |
| 2123 | '"$at_format"'*) break;; |
| 2124 | esac |
| 2125 | at_group_normalized=0$at_group_normalized |
| 2126 | done' |
| 2127 | |
| 2128 | cat "$at_suite_dir/$at_group_normalized/$as_me.log" |
| 2129 | echo |
| 2130 | done |
| 2131 | echo |
| 2132 | fi |
| 2133 | if test -n "$at_top_srcdir"; then |
| 2134 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 2135 | ## ${at_top_build_prefix}config.log ## |
| 2136 | _ASBOX |
| 2137 | sed 's/^/| /' ${at_top_build_prefix}config.log |
| 2138 | echo |
| 2139 | fi |
| 2140 | } >&5 |
| 2141 | |
| 2142 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 2143 | ## $as_me.log was created. ## |
| 2144 | _ASBOX |
| 2145 | |
| 2146 | echo |
| 2147 | if $at_debug_p; then |
| 2148 | at_msg='per-test log files' |
| 2149 | else |
| 2150 | at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'" |
| 2151 | fi |
| 2152 | at_msg1a=${at_xpass_list:+', '} |
| 2153 | at_msg1=$at_fail_list${at_fail_list:+" failed$at_msg1a"} |
| 2154 | at_msg2=$at_xpass_list${at_xpass_list:+" passed unexpectedly"} |
| 2155 | |
| 2156 | printf "%s\n" "Please send $at_msg and all information you think might help: |
| 2157 | |
| 2158 | To: <[email protected]> |
| 2159 | Subject: [GNU Mailutils 3.20] $as_me: $at_msg1$at_msg2 |
| 2160 | |
| 2161 | You may investigate any problem if you feel able to do so, in which |
| 2162 | case the test suite provides a good starting point. Its output may |
| 2163 | be found below \`${at_testdir+${at_testdir}/}$as_me.dir'. |
| 2164 | " |
| 2165 | exit 1 |
| 2166 | fi |
| 2167 | |
| 2168 | exit 0 |
| 2169 | |
| 2170 | ## ------------- ## |
| 2171 | ## Actual tests. ## |
| 2172 | ## ------------- ## |
| 2173 | #AT_START_1 |
| 2174 | at_fn_group_banner 1 'version.at:19' \ |
| 2175 | "sieve version" " " |
| 2176 | at_xfail=no |
| 2177 | ( |
| 2178 | printf "%s\n" "1. $at_setup_line: testing $at_desc ..." |
| 2179 | $at_traceon |
| 2180 | |
| 2181 | |
| 2182 | { set +x |
| 2183 | printf "%s\n" "$at_srcdir/version.at:19: sieve --version | sed '1{s/-[0-9][0-9]* //;s/ *\\[.*\\]//;q;}' " |
| 2184 | at_fn_check_prepare_notrace 'a shell pipeline' "version.at:19" |
| 2185 | ( $at_check_trace; sieve --version | sed '1{s/-[0-9][0-9]* //;s/ *\[.*\]//;q;}' |
| 2186 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2187 | at_status=$? at_failed=false |
| 2188 | $at_check_filter |
| 2189 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2190 | echo >>"$at_stdout"; printf "%s\n" "sieve (GNU Mailutils) 3.20 |
| 2191 | " | \ |
| 2192 | $at_diff - "$at_stdout" || at_failed=: |
| 2193 | at_fn_check_status 0 $at_status "$at_srcdir/version.at:19" |
| 2194 | $at_failed && at_fn_log_failure |
| 2195 | $at_traceon; } |
| 2196 | |
| 2197 | |
| 2198 | set +x |
| 2199 | $at_times_p && times >"$at_times_file" |
| 2200 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2201 | read at_status <"$at_status_file" |
| 2202 | #AT_STOP_1 |
| 2203 | #AT_START_2 |
| 2204 | at_fn_group_banner 2 'compile.at:17' \ |
| 2205 | "compile ex-null.sv" " " 1 |
| 2206 | at_xfail=no |
| 2207 | ( |
| 2208 | printf "%s\n" "2. $at_setup_line: testing $at_desc ..." |
| 2209 | $at_traceon |
| 2210 | |
| 2211 | { set +x |
| 2212 | printf "%s\n" "$at_srcdir/compile.at:17: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-null.sv" |
| 2213 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-null.sv" "compile.at:17" |
| 2214 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-null.sv |
| 2215 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2216 | at_status=$? at_failed=false |
| 2217 | $at_check_filter |
| 2218 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2219 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2220 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:17" |
| 2221 | $at_failed && at_fn_log_failure |
| 2222 | $at_traceon; } |
| 2223 | |
| 2224 | set +x |
| 2225 | $at_times_p && times >"$at_times_file" |
| 2226 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2227 | read at_status <"$at_status_file" |
| 2228 | #AT_STOP_2 |
| 2229 | #AT_START_3 |
| 2230 | at_fn_group_banner 3 'compile.at:18' \ |
| 2231 | "compile box.sv" " " 1 |
| 2232 | at_xfail=no |
| 2233 | ( |
| 2234 | printf "%s\n" "3. $at_setup_line: testing $at_desc ..." |
| 2235 | $at_traceon |
| 2236 | |
| 2237 | { set +x |
| 2238 | printf "%s\n" "$at_srcdir/compile.at:18: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/box.sv" |
| 2239 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/box.sv" "compile.at:18" |
| 2240 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/box.sv |
| 2241 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2242 | at_status=$? at_failed=false |
| 2243 | $at_check_filter |
| 2244 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2245 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2246 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:18" |
| 2247 | $at_failed && at_fn_log_failure |
| 2248 | $at_traceon; } |
| 2249 | |
| 2250 | set +x |
| 2251 | $at_times_p && times >"$at_times_file" |
| 2252 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2253 | read at_status <"$at_status_file" |
| 2254 | #AT_STOP_3 |
| 2255 | #AT_START_4 |
| 2256 | at_fn_group_banner 4 'compile.at:19' \ |
| 2257 | "compile ex-1.10.2.sv" " " 1 |
| 2258 | at_xfail=no |
| 2259 | ( |
| 2260 | printf "%s\n" "4. $at_setup_line: testing $at_desc ..." |
| 2261 | $at_traceon |
| 2262 | |
| 2263 | { set +x |
| 2264 | printf "%s\n" "$at_srcdir/compile.at:19: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-1.10.2.sv" |
| 2265 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-1.10.2.sv" "compile.at:19" |
| 2266 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-1.10.2.sv |
| 2267 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2268 | at_status=$? at_failed=false |
| 2269 | $at_check_filter |
| 2270 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2271 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2272 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:19" |
| 2273 | $at_failed && at_fn_log_failure |
| 2274 | $at_traceon; } |
| 2275 | |
| 2276 | set +x |
| 2277 | $at_times_p && times >"$at_times_file" |
| 2278 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2279 | read at_status <"$at_status_file" |
| 2280 | #AT_STOP_4 |
| 2281 | #AT_START_5 |
| 2282 | at_fn_group_banner 5 'compile.at:20' \ |
| 2283 | "compile ex-2.3a.sv" " " 1 |
| 2284 | at_xfail=no |
| 2285 | ( |
| 2286 | printf "%s\n" "5. $at_setup_line: testing $at_desc ..." |
| 2287 | $at_traceon |
| 2288 | |
| 2289 | { set +x |
| 2290 | printf "%s\n" "$at_srcdir/compile.at:20: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-2.3a.sv" |
| 2291 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-2.3a.sv" "compile.at:20" |
| 2292 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-2.3a.sv |
| 2293 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2294 | at_status=$? at_failed=false |
| 2295 | $at_check_filter |
| 2296 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2297 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2298 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:20" |
| 2299 | $at_failed && at_fn_log_failure |
| 2300 | $at_traceon; } |
| 2301 | |
| 2302 | set +x |
| 2303 | $at_times_p && times >"$at_times_file" |
| 2304 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2305 | read at_status <"$at_status_file" |
| 2306 | #AT_STOP_5 |
| 2307 | #AT_START_6 |
| 2308 | at_fn_group_banner 6 'compile.at:21' \ |
| 2309 | "compile ex-2.5.1.sv" " " 1 |
| 2310 | at_xfail=no |
| 2311 | ( |
| 2312 | printf "%s\n" "6. $at_setup_line: testing $at_desc ..." |
| 2313 | $at_traceon |
| 2314 | |
| 2315 | { set +x |
| 2316 | printf "%s\n" "$at_srcdir/compile.at:21: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-2.5.1.sv" |
| 2317 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-2.5.1.sv" "compile.at:21" |
| 2318 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-2.5.1.sv |
| 2319 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2320 | at_status=$? at_failed=false |
| 2321 | $at_check_filter |
| 2322 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2323 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2324 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:21" |
| 2325 | $at_failed && at_fn_log_failure |
| 2326 | $at_traceon; } |
| 2327 | |
| 2328 | set +x |
| 2329 | $at_times_p && times >"$at_times_file" |
| 2330 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2331 | read at_status <"$at_status_file" |
| 2332 | #AT_STOP_6 |
| 2333 | #AT_START_7 |
| 2334 | at_fn_group_banner 7 'compile.at:22' \ |
| 2335 | "compile ex-2.7.3.sv" " " 1 |
| 2336 | at_xfail=no |
| 2337 | ( |
| 2338 | printf "%s\n" "7. $at_setup_line: testing $at_desc ..." |
| 2339 | $at_traceon |
| 2340 | |
| 2341 | { set +x |
| 2342 | printf "%s\n" "$at_srcdir/compile.at:22: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-2.7.3.sv" |
| 2343 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-2.7.3.sv" "compile.at:22" |
| 2344 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-2.7.3.sv |
| 2345 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2346 | at_status=$? at_failed=false |
| 2347 | $at_check_filter |
| 2348 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2349 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2350 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:22" |
| 2351 | $at_failed && at_fn_log_failure |
| 2352 | $at_traceon; } |
| 2353 | |
| 2354 | set +x |
| 2355 | $at_times_p && times >"$at_times_file" |
| 2356 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2357 | read at_status <"$at_status_file" |
| 2358 | #AT_STOP_7 |
| 2359 | #AT_START_8 |
| 2360 | at_fn_group_banner 8 'compile.at:23' \ |
| 2361 | "compile ex-3.1a.sv" " " 1 |
| 2362 | at_xfail=no |
| 2363 | ( |
| 2364 | printf "%s\n" "8. $at_setup_line: testing $at_desc ..." |
| 2365 | $at_traceon |
| 2366 | |
| 2367 | { set +x |
| 2368 | printf "%s\n" "$at_srcdir/compile.at:23: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-3.1a.sv" |
| 2369 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-3.1a.sv" "compile.at:23" |
| 2370 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-3.1a.sv |
| 2371 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2372 | at_status=$? at_failed=false |
| 2373 | $at_check_filter |
| 2374 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2375 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2376 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:23" |
| 2377 | $at_failed && at_fn_log_failure |
| 2378 | $at_traceon; } |
| 2379 | |
| 2380 | set +x |
| 2381 | $at_times_p && times >"$at_times_file" |
| 2382 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2383 | read at_status <"$at_status_file" |
| 2384 | #AT_STOP_8 |
| 2385 | #AT_START_9 |
| 2386 | at_fn_group_banner 9 'compile.at:24' \ |
| 2387 | "compile ex-3.1b.sv" " " 1 |
| 2388 | at_xfail=no |
| 2389 | ( |
| 2390 | printf "%s\n" "9. $at_setup_line: testing $at_desc ..." |
| 2391 | $at_traceon |
| 2392 | |
| 2393 | { set +x |
| 2394 | printf "%s\n" "$at_srcdir/compile.at:24: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-3.1b.sv" |
| 2395 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-3.1b.sv" "compile.at:24" |
| 2396 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-3.1b.sv |
| 2397 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2398 | at_status=$? at_failed=false |
| 2399 | $at_check_filter |
| 2400 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2401 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2402 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:24" |
| 2403 | $at_failed && at_fn_log_failure |
| 2404 | $at_traceon; } |
| 2405 | |
| 2406 | set +x |
| 2407 | $at_times_p && times >"$at_times_file" |
| 2408 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2409 | read at_status <"$at_status_file" |
| 2410 | #AT_STOP_9 |
| 2411 | #AT_START_10 |
| 2412 | at_fn_group_banner 10 'compile.at:25' \ |
| 2413 | "compile ex-3.2.sv" " " 1 |
| 2414 | at_xfail=no |
| 2415 | ( |
| 2416 | printf "%s\n" "10. $at_setup_line: testing $at_desc ..." |
| 2417 | $at_traceon |
| 2418 | |
| 2419 | { set +x |
| 2420 | printf "%s\n" "$at_srcdir/compile.at:25: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-3.2.sv" |
| 2421 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-3.2.sv" "compile.at:25" |
| 2422 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-3.2.sv |
| 2423 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2424 | at_status=$? at_failed=false |
| 2425 | $at_check_filter |
| 2426 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2427 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2428 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:25" |
| 2429 | $at_failed && at_fn_log_failure |
| 2430 | $at_traceon; } |
| 2431 | |
| 2432 | set +x |
| 2433 | $at_times_p && times >"$at_times_file" |
| 2434 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2435 | read at_status <"$at_status_file" |
| 2436 | #AT_STOP_10 |
| 2437 | #AT_START_11 |
| 2438 | at_fn_group_banner 11 'compile.at:26' \ |
| 2439 | "compile ex-4.1.sv" " " 1 |
| 2440 | at_xfail=no |
| 2441 | ( |
| 2442 | printf "%s\n" "11. $at_setup_line: testing $at_desc ..." |
| 2443 | $at_traceon |
| 2444 | |
| 2445 | { set +x |
| 2446 | printf "%s\n" "$at_srcdir/compile.at:26: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-4.1.sv" |
| 2447 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-4.1.sv" "compile.at:26" |
| 2448 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-4.1.sv |
| 2449 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2450 | at_status=$? at_failed=false |
| 2451 | $at_check_filter |
| 2452 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2453 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2454 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:26" |
| 2455 | $at_failed && at_fn_log_failure |
| 2456 | $at_traceon; } |
| 2457 | |
| 2458 | set +x |
| 2459 | $at_times_p && times >"$at_times_file" |
| 2460 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2461 | read at_status <"$at_status_file" |
| 2462 | #AT_STOP_11 |
| 2463 | #AT_START_12 |
| 2464 | at_fn_group_banner 12 'compile.at:27' \ |
| 2465 | "compile ex-4.2.sv" " " 1 |
| 2466 | at_xfail=no |
| 2467 | ( |
| 2468 | printf "%s\n" "12. $at_setup_line: testing $at_desc ..." |
| 2469 | $at_traceon |
| 2470 | |
| 2471 | { set +x |
| 2472 | printf "%s\n" "$at_srcdir/compile.at:27: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-4.2.sv" |
| 2473 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-4.2.sv" "compile.at:27" |
| 2474 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-4.2.sv |
| 2475 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2476 | at_status=$? at_failed=false |
| 2477 | $at_check_filter |
| 2478 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2479 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2480 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:27" |
| 2481 | $at_failed && at_fn_log_failure |
| 2482 | $at_traceon; } |
| 2483 | |
| 2484 | set +x |
| 2485 | $at_times_p && times >"$at_times_file" |
| 2486 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2487 | read at_status <"$at_status_file" |
| 2488 | #AT_STOP_12 |
| 2489 | #AT_START_13 |
| 2490 | at_fn_group_banner 13 'compile.at:28' \ |
| 2491 | "compile ex-4.4a.sv" " " 1 |
| 2492 | at_xfail=no |
| 2493 | ( |
| 2494 | printf "%s\n" "13. $at_setup_line: testing $at_desc ..." |
| 2495 | $at_traceon |
| 2496 | |
| 2497 | { set +x |
| 2498 | printf "%s\n" "$at_srcdir/compile.at:28: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-4.4a.sv" |
| 2499 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-4.4a.sv" "compile.at:28" |
| 2500 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-4.4a.sv |
| 2501 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2502 | at_status=$? at_failed=false |
| 2503 | $at_check_filter |
| 2504 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2505 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2506 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:28" |
| 2507 | $at_failed && at_fn_log_failure |
| 2508 | $at_traceon; } |
| 2509 | |
| 2510 | set +x |
| 2511 | $at_times_p && times >"$at_times_file" |
| 2512 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2513 | read at_status <"$at_status_file" |
| 2514 | #AT_STOP_13 |
| 2515 | #AT_START_14 |
| 2516 | at_fn_group_banner 14 'compile.at:29' \ |
| 2517 | "compile ex-4.4b.sv" " " 1 |
| 2518 | at_xfail=no |
| 2519 | ( |
| 2520 | printf "%s\n" "14. $at_setup_line: testing $at_desc ..." |
| 2521 | $at_traceon |
| 2522 | |
| 2523 | { set +x |
| 2524 | printf "%s\n" "$at_srcdir/compile.at:29: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-4.4b.sv" |
| 2525 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-4.4b.sv" "compile.at:29" |
| 2526 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-4.4b.sv |
| 2527 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2528 | at_status=$? at_failed=false |
| 2529 | $at_check_filter |
| 2530 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2531 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2532 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:29" |
| 2533 | $at_failed && at_fn_log_failure |
| 2534 | $at_traceon; } |
| 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_14 |
| 2541 | #AT_START_15 |
| 2542 | at_fn_group_banner 15 'compile.at:30' \ |
| 2543 | "compile ex-4.5.sv" " " 1 |
| 2544 | at_xfail=no |
| 2545 | ( |
| 2546 | printf "%s\n" "15. $at_setup_line: testing $at_desc ..." |
| 2547 | $at_traceon |
| 2548 | |
| 2549 | { set +x |
| 2550 | printf "%s\n" "$at_srcdir/compile.at:30: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-4.5.sv" |
| 2551 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-4.5.sv" "compile.at:30" |
| 2552 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-4.5.sv |
| 2553 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2554 | at_status=$? at_failed=false |
| 2555 | $at_check_filter |
| 2556 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2557 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2558 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:30" |
| 2559 | $at_failed && at_fn_log_failure |
| 2560 | $at_traceon; } |
| 2561 | |
| 2562 | set +x |
| 2563 | $at_times_p && times >"$at_times_file" |
| 2564 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2565 | read at_status <"$at_status_file" |
| 2566 | #AT_STOP_15 |
| 2567 | #AT_START_16 |
| 2568 | at_fn_group_banner 16 'compile.at:31' \ |
| 2569 | "compile ex-5.1.sv" " " 1 |
| 2570 | at_xfail=no |
| 2571 | ( |
| 2572 | printf "%s\n" "16. $at_setup_line: testing $at_desc ..." |
| 2573 | $at_traceon |
| 2574 | |
| 2575 | { set +x |
| 2576 | printf "%s\n" "$at_srcdir/compile.at:31: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-5.1.sv" |
| 2577 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-5.1.sv" "compile.at:31" |
| 2578 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-5.1.sv |
| 2579 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2580 | at_status=$? at_failed=false |
| 2581 | $at_check_filter |
| 2582 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2583 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2584 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:31" |
| 2585 | $at_failed && at_fn_log_failure |
| 2586 | $at_traceon; } |
| 2587 | |
| 2588 | set +x |
| 2589 | $at_times_p && times >"$at_times_file" |
| 2590 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2591 | read at_status <"$at_status_file" |
| 2592 | #AT_STOP_16 |
| 2593 | #AT_START_17 |
| 2594 | at_fn_group_banner 17 'compile.at:32' \ |
| 2595 | "compile ex-5.7.sv" " " 1 |
| 2596 | at_xfail=no |
| 2597 | ( |
| 2598 | printf "%s\n" "17. $at_setup_line: testing $at_desc ..." |
| 2599 | $at_traceon |
| 2600 | |
| 2601 | { set +x |
| 2602 | printf "%s\n" "$at_srcdir/compile.at:32: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-5.7.sv" |
| 2603 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-5.7.sv" "compile.at:32" |
| 2604 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-5.7.sv |
| 2605 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2606 | at_status=$? at_failed=false |
| 2607 | $at_check_filter |
| 2608 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2609 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2610 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:32" |
| 2611 | $at_failed && at_fn_log_failure |
| 2612 | $at_traceon; } |
| 2613 | |
| 2614 | set +x |
| 2615 | $at_times_p && times >"$at_times_file" |
| 2616 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2617 | read at_status <"$at_status_file" |
| 2618 | #AT_STOP_17 |
| 2619 | #AT_START_18 |
| 2620 | at_fn_group_banner 18 'compile.at:33' \ |
| 2621 | "compile ex-9.sv" " " 1 |
| 2622 | at_xfail=no |
| 2623 | ( |
| 2624 | printf "%s\n" "18. $at_setup_line: testing $at_desc ..." |
| 2625 | $at_traceon |
| 2626 | |
| 2627 | { set +x |
| 2628 | printf "%s\n" "$at_srcdir/compile.at:33: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-9.sv" |
| 2629 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-9.sv" "compile.at:33" |
| 2630 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-9.sv |
| 2631 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2632 | at_status=$? at_failed=false |
| 2633 | $at_check_filter |
| 2634 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2635 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2636 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:33" |
| 2637 | $at_failed && at_fn_log_failure |
| 2638 | $at_traceon; } |
| 2639 | |
| 2640 | set +x |
| 2641 | $at_times_p && times >"$at_times_file" |
| 2642 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2643 | read at_status <"$at_status_file" |
| 2644 | #AT_STOP_18 |
| 2645 | #AT_START_19 |
| 2646 | at_fn_group_banner 19 'compile.at:34' \ |
| 2647 | "compile ex-save-all.sv" " " 1 |
| 2648 | at_xfail=no |
| 2649 | ( |
| 2650 | printf "%s\n" "19. $at_setup_line: testing $at_desc ..." |
| 2651 | $at_traceon |
| 2652 | |
| 2653 | { set +x |
| 2654 | printf "%s\n" "$at_srcdir/compile.at:34: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/ex-save-all.sv" |
| 2655 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-save-all.sv" "compile.at:34" |
| 2656 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/ex-save-all.sv |
| 2657 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2658 | at_status=$? at_failed=false |
| 2659 | $at_check_filter |
| 2660 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2661 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2662 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:34" |
| 2663 | $at_failed && at_fn_log_failure |
| 2664 | $at_traceon; } |
| 2665 | |
| 2666 | set +x |
| 2667 | $at_times_p && times >"$at_times_file" |
| 2668 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2669 | read at_status <"$at_status_file" |
| 2670 | #AT_STOP_19 |
| 2671 | #AT_START_20 |
| 2672 | at_fn_group_banner 20 'compile.at:35' \ |
| 2673 | "compile example.sv" " " 1 |
| 2674 | at_xfail=no |
| 2675 | ( |
| 2676 | printf "%s\n" "20. $at_setup_line: testing $at_desc ..." |
| 2677 | $at_traceon |
| 2678 | |
| 2679 | { set +x |
| 2680 | printf "%s\n" "$at_srcdir/compile.at:35: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/example.sv" |
| 2681 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/example.sv" "compile.at:35" |
| 2682 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/example.sv |
| 2683 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2684 | at_status=$? at_failed=false |
| 2685 | $at_check_filter |
| 2686 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2687 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2688 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:35" |
| 2689 | $at_failed && at_fn_log_failure |
| 2690 | $at_traceon; } |
| 2691 | |
| 2692 | set +x |
| 2693 | $at_times_p && times >"$at_times_file" |
| 2694 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2695 | read at_status <"$at_status_file" |
| 2696 | #AT_STOP_20 |
| 2697 | #AT_START_21 |
| 2698 | at_fn_group_banner 21 'compile.at:36' \ |
| 2699 | "compile exn-2.3b.sv" " " 1 |
| 2700 | at_xfail=no |
| 2701 | ( |
| 2702 | printf "%s\n" "21. $at_setup_line: testing $at_desc ..." |
| 2703 | $at_traceon |
| 2704 | |
| 2705 | { set +x |
| 2706 | printf "%s\n" "$at_srcdir/compile.at:36: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/exn-2.3b.sv" |
| 2707 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/exn-2.3b.sv" "compile.at:36" |
| 2708 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/exn-2.3b.sv |
| 2709 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2710 | at_status=$? at_failed=false |
| 2711 | $at_check_filter |
| 2712 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2713 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2714 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:36" |
| 2715 | $at_failed && at_fn_log_failure |
| 2716 | $at_traceon; } |
| 2717 | |
| 2718 | set +x |
| 2719 | $at_times_p && times >"$at_times_file" |
| 2720 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2721 | read at_status <"$at_status_file" |
| 2722 | #AT_STOP_21 |
| 2723 | #AT_START_22 |
| 2724 | at_fn_group_banner 22 'compile.at:37' \ |
| 2725 | "compile exn-5.4.sv" " " 1 |
| 2726 | at_xfail=no |
| 2727 | ( |
| 2728 | printf "%s\n" "22. $at_setup_line: testing $at_desc ..." |
| 2729 | $at_traceon |
| 2730 | |
| 2731 | { set +x |
| 2732 | printf "%s\n" "$at_srcdir/compile.at:37: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/exn-5.4.sv" |
| 2733 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/exn-5.4.sv" "compile.at:37" |
| 2734 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/exn-5.4.sv |
| 2735 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2736 | at_status=$? at_failed=false |
| 2737 | $at_check_filter |
| 2738 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2739 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2740 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:37" |
| 2741 | $at_failed && at_fn_log_failure |
| 2742 | $at_traceon; } |
| 2743 | |
| 2744 | set +x |
| 2745 | $at_times_p && times >"$at_times_file" |
| 2746 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2747 | read at_status <"$at_status_file" |
| 2748 | #AT_STOP_22 |
| 2749 | #AT_START_23 |
| 2750 | at_fn_group_banner 23 'compile.at:38' \ |
| 2751 | "compile t-complex.sv" " " 1 |
| 2752 | at_xfail=no |
| 2753 | ( |
| 2754 | printf "%s\n" "23. $at_setup_line: testing $at_desc ..." |
| 2755 | $at_traceon |
| 2756 | |
| 2757 | { set +x |
| 2758 | printf "%s\n" "$at_srcdir/compile.at:38: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/t-complex.sv" |
| 2759 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/t-complex.sv" "compile.at:38" |
| 2760 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/t-complex.sv |
| 2761 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2762 | at_status=$? at_failed=false |
| 2763 | $at_check_filter |
| 2764 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2765 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2766 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:38" |
| 2767 | $at_failed && at_fn_log_failure |
| 2768 | $at_traceon; } |
| 2769 | |
| 2770 | set +x |
| 2771 | $at_times_p && times >"$at_times_file" |
| 2772 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2773 | read at_status <"$at_status_file" |
| 2774 | #AT_STOP_23 |
| 2775 | #AT_START_24 |
| 2776 | at_fn_group_banner 24 'compile.at:39' \ |
| 2777 | "compile t-exists.sv" " " 1 |
| 2778 | at_xfail=no |
| 2779 | ( |
| 2780 | printf "%s\n" "24. $at_setup_line: testing $at_desc ..." |
| 2781 | $at_traceon |
| 2782 | |
| 2783 | { set +x |
| 2784 | printf "%s\n" "$at_srcdir/compile.at:39: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/t-exists.sv" |
| 2785 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/t-exists.sv" "compile.at:39" |
| 2786 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/t-exists.sv |
| 2787 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2788 | at_status=$? at_failed=false |
| 2789 | $at_check_filter |
| 2790 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2791 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2792 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:39" |
| 2793 | $at_failed && at_fn_log_failure |
| 2794 | $at_traceon; } |
| 2795 | |
| 2796 | set +x |
| 2797 | $at_times_p && times >"$at_times_file" |
| 2798 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2799 | read at_status <"$at_status_file" |
| 2800 | #AT_STOP_24 |
| 2801 | #AT_START_25 |
| 2802 | at_fn_group_banner 25 'compile.at:40' \ |
| 2803 | "compile t-fileinto.sv" " " 1 |
| 2804 | at_xfail=no |
| 2805 | ( |
| 2806 | printf "%s\n" "25. $at_setup_line: testing $at_desc ..." |
| 2807 | $at_traceon |
| 2808 | |
| 2809 | { set +x |
| 2810 | printf "%s\n" "$at_srcdir/compile.at:40: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/t-fileinto.sv" |
| 2811 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/t-fileinto.sv" "compile.at:40" |
| 2812 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/t-fileinto.sv |
| 2813 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2814 | at_status=$? at_failed=false |
| 2815 | $at_check_filter |
| 2816 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2817 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2818 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:40" |
| 2819 | $at_failed && at_fn_log_failure |
| 2820 | $at_traceon; } |
| 2821 | |
| 2822 | set +x |
| 2823 | $at_times_p && times >"$at_times_file" |
| 2824 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2825 | read at_status <"$at_status_file" |
| 2826 | #AT_STOP_25 |
| 2827 | #AT_START_26 |
| 2828 | at_fn_group_banner 26 'compile.at:41' \ |
| 2829 | "compile t-mailutils.sv" " " 1 |
| 2830 | at_xfail=no |
| 2831 | ( |
| 2832 | printf "%s\n" "26. $at_setup_line: testing $at_desc ..." |
| 2833 | $at_traceon |
| 2834 | |
| 2835 | { set +x |
| 2836 | printf "%s\n" "$at_srcdir/compile.at:41: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c \$abs_top_srcdir/sieve/examples/t-mailutils.sv" |
| 2837 | at_fn_check_prepare_dynamic "sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/t-mailutils.sv" "compile.at:41" |
| 2838 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c $abs_top_srcdir/sieve/examples/t-mailutils.sv |
| 2839 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2840 | at_status=$? at_failed=false |
| 2841 | $at_check_filter |
| 2842 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2843 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2844 | at_fn_check_status 0 $at_status "$at_srcdir/compile.at:41" |
| 2845 | $at_failed && at_fn_log_failure |
| 2846 | $at_traceon; } |
| 2847 | |
| 2848 | set +x |
| 2849 | $at_times_p && times >"$at_times_file" |
| 2850 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2851 | read at_status <"$at_status_file" |
| 2852 | #AT_STOP_26 |
| 2853 | #AT_START_27 |
| 2854 | at_fn_group_banner 27 'enc-char.at:17' \ |
| 2855 | "encoded-character" " " 1 |
| 2856 | at_xfail=no |
| 2857 | ( |
| 2858 | printf "%s\n" "27. $at_setup_line: testing $at_desc ..." |
| 2859 | $at_traceon |
| 2860 | |
| 2861 | |
| 2862 | |
| 2863 | { set +x |
| 2864 | printf "%s\n" "$at_srcdir/enc-char.at:20: |
| 2865 | cat >prog <<'_ATEOF' |
| 2866 | require [\"reject\", \"encoded-character\"]; |
| 2867 | reject \"\$\${hex:40}\"; |
| 2868 | reject \"\${hex: 40 }\"; |
| 2869 | reject \"\${HEX: 40}\"; |
| 2870 | reject \"\${hex:40\"; |
| 2871 | reject \"\${hex:400}\"; |
| 2872 | reject \"\${hex:4\${hex:30}}\"; |
| 2873 | reject \"\${unicode:40}\"; |
| 2874 | reject \"\${ unicode:40}\"; |
| 2875 | reject \"\${UNICODE:40}\"; |
| 2876 | reject \"\${UnICoDE:0000040}\"; |
| 2877 | reject \"\${Unicode:40}\"; |
| 2878 | reject \"\${Unicode:Cool}\"; |
| 2879 | reject \"Now \${hex: 69 73 20}the\${unicode:20 74}\${hex:69 6d}e\"; |
| 2880 | reject \"Unbalanced \${hex: 73 65 71 uence\"; |
| 2881 | reject \"Nested \${hex: 73 65 71 \${hex: 75 65 6E}}ce\"; |
| 2882 | reject \"Invalid \${hex: 73 RE}\"; |
| 2883 | _ATEOF |
| 2884 | |
| 2885 | |
| 2886 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -D prog | sed -n 's/.*ACTION: //p' |
| 2887 | " |
| 2888 | at_fn_check_prepare_notrace 'a ${...} parameter expansion' "enc-char.at:20" |
| 2889 | ( $at_check_trace; |
| 2890 | cat >prog <<'_ATEOF' |
| 2891 | require ["reject", "encoded-character"]; |
| 2892 | reject "$${hex:40}"; |
| 2893 | reject "${hex: 40 }"; |
| 2894 | reject "${HEX: 40}"; |
| 2895 | reject "${hex:40"; |
| 2896 | reject "${hex:400}"; |
| 2897 | reject "${hex:4${hex:30}}"; |
| 2898 | reject "${unicode:40}"; |
| 2899 | reject "${ unicode:40}"; |
| 2900 | reject "${UNICODE:40}"; |
| 2901 | reject "${UnICoDE:0000040}"; |
| 2902 | reject "${Unicode:40}"; |
| 2903 | reject "${Unicode:Cool}"; |
| 2904 | reject "Now ${hex: 69 73 20}the${unicode:20 74}${hex:69 6d}e"; |
| 2905 | reject "Unbalanced ${hex: 73 65 71 uence"; |
| 2906 | reject "Nested ${hex: 73 65 71 ${hex: 75 65 6E}}ce"; |
| 2907 | reject "Invalid ${hex: 73 RE}"; |
| 2908 | _ATEOF |
| 2909 | |
| 2910 | |
| 2911 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -D prog | sed -n 's/.*ACTION: //p' |
| 2912 | |
| 2913 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2914 | at_status=$? at_failed=false |
| 2915 | $at_check_filter |
| 2916 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2917 | echo >>"$at_stdout"; printf "%s\n" "reject \"\$@\" |
| 2918 | reject \"@\" |
| 2919 | reject \"@\" |
| 2920 | reject \"\${hex:40\" |
| 2921 | reject \"\${hex:400}\" |
| 2922 | reject \"\${hex:40}\" |
| 2923 | reject \"@\" |
| 2924 | reject \"\${ unicode:40}\" |
| 2925 | reject \"@\" |
| 2926 | reject \"@\" |
| 2927 | reject \"@\" |
| 2928 | reject \"\${Unicode:Cool}\" |
| 2929 | reject \"Now is the time\" |
| 2930 | reject \"Unbalanced \${hex: 73 65 71 uence\" |
| 2931 | reject \"Nested \${hex: 73 65 71 uen}ce\" |
| 2932 | reject \"Invalid \${hex: 73 RE}\" |
| 2933 | " | \ |
| 2934 | $at_diff - "$at_stdout" || at_failed=: |
| 2935 | at_fn_check_status 0 $at_status "$at_srcdir/enc-char.at:20" |
| 2936 | $at_failed && at_fn_log_failure |
| 2937 | $at_traceon; } |
| 2938 | |
| 2939 | |
| 2940 | set +x |
| 2941 | $at_times_p && times >"$at_times_file" |
| 2942 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2943 | read at_status <"$at_status_file" |
| 2944 | #AT_STOP_27 |
| 2945 | #AT_START_28 |
| 2946 | at_fn_group_banner 28 'false.at:17' \ |
| 2947 | "false" " " 2 |
| 2948 | at_xfail=no |
| 2949 | ( |
| 2950 | printf "%s\n" "28. $at_setup_line: testing $at_desc ..." |
| 2951 | $at_traceon |
| 2952 | |
| 2953 | |
| 2954 | |
| 2955 | |
| 2956 | |
| 2957 | |
| 2958 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 2959 | if test -e ./sieve.mbox; then |
| 2960 | |
| 2961 | # First, set all modes to +w |
| 2962 | find ./sieve.mbox | xargs chmod +w |
| 2963 | # Then, remove executable bit from regular files |
| 2964 | find ./sieve.mbox -type f | xargs chmod -x |
| 2965 | |
| 2966 | else |
| 2967 | |
| 2968 | # First, set all modes to +w |
| 2969 | find . | xargs chmod +w |
| 2970 | # Then, remove executable bit from regular files |
| 2971 | find . -type f | xargs chmod -x |
| 2972 | |
| 2973 | fi |
| 2974 | |
| 2975 | |
| 2976 | |
| 2977 | |
| 2978 | |
| 2979 | cat >prog <<'_ATEOF' |
| 2980 | |
| 2981 | if false { |
| 2982 | discard; |
| 2983 | } |
| 2984 | |
| 2985 | _ATEOF |
| 2986 | |
| 2987 | { set +x |
| 2988 | printf "%s\n" "$at_srcdir/false.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 2989 | " |
| 2990 | at_fn_check_prepare_notrace 'an embedded newline' "false.at:17" |
| 2991 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 2992 | |
| 2993 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2994 | at_status=$? at_failed=false |
| 2995 | $at_check_filter |
| 2996 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 2997 | IMPLICIT KEEP on msg uid 2 |
| 2998 | IMPLICIT KEEP on msg uid 3 |
| 2999 | " | \ |
| 3000 | $at_diff - "$at_stderr" || at_failed=: |
| 3001 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3002 | at_fn_check_status 0 $at_status "$at_srcdir/false.at:17" |
| 3003 | $at_failed && at_fn_log_failure |
| 3004 | $at_traceon; } |
| 3005 | |
| 3006 | set +x |
| 3007 | $at_times_p && times >"$at_times_file" |
| 3008 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3009 | read at_status <"$at_status_file" |
| 3010 | #AT_STOP_28 |
| 3011 | #AT_START_29 |
| 3012 | at_fn_group_banner 29 'true.at:17' \ |
| 3013 | "true" " " 2 |
| 3014 | at_xfail=no |
| 3015 | ( |
| 3016 | printf "%s\n" "29. $at_setup_line: testing $at_desc ..." |
| 3017 | $at_traceon |
| 3018 | |
| 3019 | |
| 3020 | |
| 3021 | |
| 3022 | |
| 3023 | |
| 3024 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3025 | if test -e ./sieve.mbox; then |
| 3026 | |
| 3027 | # First, set all modes to +w |
| 3028 | find ./sieve.mbox | xargs chmod +w |
| 3029 | # Then, remove executable bit from regular files |
| 3030 | find ./sieve.mbox -type f | xargs chmod -x |
| 3031 | |
| 3032 | else |
| 3033 | |
| 3034 | # First, set all modes to +w |
| 3035 | find . | xargs chmod +w |
| 3036 | # Then, remove executable bit from regular files |
| 3037 | find . -type f | xargs chmod -x |
| 3038 | |
| 3039 | fi |
| 3040 | |
| 3041 | |
| 3042 | |
| 3043 | |
| 3044 | |
| 3045 | cat >prog <<'_ATEOF' |
| 3046 | |
| 3047 | if true { |
| 3048 | discard; |
| 3049 | } |
| 3050 | |
| 3051 | _ATEOF |
| 3052 | |
| 3053 | { set +x |
| 3054 | printf "%s\n" "$at_srcdir/true.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3055 | " |
| 3056 | at_fn_check_prepare_notrace 'an embedded newline' "true.at:17" |
| 3057 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3058 | |
| 3059 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3060 | at_status=$? at_failed=false |
| 3061 | $at_check_filter |
| 3062 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 3063 | DISCARD on msg uid 2: marking as deleted |
| 3064 | DISCARD on msg uid 3: marking as deleted |
| 3065 | " | \ |
| 3066 | $at_diff - "$at_stderr" || at_failed=: |
| 3067 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3068 | at_fn_check_status 0 $at_status "$at_srcdir/true.at:17" |
| 3069 | $at_failed && at_fn_log_failure |
| 3070 | $at_traceon; } |
| 3071 | |
| 3072 | set +x |
| 3073 | $at_times_p && times >"$at_times_file" |
| 3074 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3075 | read at_status <"$at_status_file" |
| 3076 | #AT_STOP_29 |
| 3077 | #AT_START_30 |
| 3078 | at_fn_group_banner 30 'not.at:17' \ |
| 3079 | "not" " " 2 |
| 3080 | at_xfail=no |
| 3081 | ( |
| 3082 | printf "%s\n" "30. $at_setup_line: testing $at_desc ..." |
| 3083 | $at_traceon |
| 3084 | |
| 3085 | |
| 3086 | |
| 3087 | |
| 3088 | |
| 3089 | |
| 3090 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3091 | if test -e ./sieve.mbox; then |
| 3092 | |
| 3093 | # First, set all modes to +w |
| 3094 | find ./sieve.mbox | xargs chmod +w |
| 3095 | # Then, remove executable bit from regular files |
| 3096 | find ./sieve.mbox -type f | xargs chmod -x |
| 3097 | |
| 3098 | else |
| 3099 | |
| 3100 | # First, set all modes to +w |
| 3101 | find . | xargs chmod +w |
| 3102 | # Then, remove executable bit from regular files |
| 3103 | find . -type f | xargs chmod -x |
| 3104 | |
| 3105 | fi |
| 3106 | |
| 3107 | |
| 3108 | |
| 3109 | |
| 3110 | |
| 3111 | cat >prog <<'_ATEOF' |
| 3112 | |
| 3113 | if not false { |
| 3114 | discard; |
| 3115 | } |
| 3116 | |
| 3117 | _ATEOF |
| 3118 | |
| 3119 | { set +x |
| 3120 | printf "%s\n" "$at_srcdir/not.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3121 | " |
| 3122 | at_fn_check_prepare_notrace 'an embedded newline' "not.at:17" |
| 3123 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3124 | |
| 3125 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3126 | at_status=$? at_failed=false |
| 3127 | $at_check_filter |
| 3128 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 3129 | DISCARD on msg uid 2: marking as deleted |
| 3130 | DISCARD on msg uid 3: marking as deleted |
| 3131 | " | \ |
| 3132 | $at_diff - "$at_stderr" || at_failed=: |
| 3133 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3134 | at_fn_check_status 0 $at_status "$at_srcdir/not.at:17" |
| 3135 | $at_failed && at_fn_log_failure |
| 3136 | $at_traceon; } |
| 3137 | |
| 3138 | set +x |
| 3139 | $at_times_p && times >"$at_times_file" |
| 3140 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3141 | read at_status <"$at_status_file" |
| 3142 | #AT_STOP_30 |
| 3143 | #AT_START_31 |
| 3144 | at_fn_group_banner 31 'action.at:17' \ |
| 3145 | "action stop" " " 2 |
| 3146 | at_xfail=no |
| 3147 | ( |
| 3148 | printf "%s\n" "31. $at_setup_line: testing $at_desc ..." |
| 3149 | $at_traceon |
| 3150 | |
| 3151 | |
| 3152 | |
| 3153 | |
| 3154 | |
| 3155 | |
| 3156 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3157 | if test -e ./sieve.mbox; then |
| 3158 | |
| 3159 | # First, set all modes to +w |
| 3160 | find ./sieve.mbox | xargs chmod +w |
| 3161 | # Then, remove executable bit from regular files |
| 3162 | find ./sieve.mbox -type f | xargs chmod -x |
| 3163 | |
| 3164 | else |
| 3165 | |
| 3166 | # First, set all modes to +w |
| 3167 | find . | xargs chmod +w |
| 3168 | # Then, remove executable bit from regular files |
| 3169 | find . -type f | xargs chmod -x |
| 3170 | |
| 3171 | fi |
| 3172 | |
| 3173 | |
| 3174 | |
| 3175 | |
| 3176 | |
| 3177 | cat >prog <<'_ATEOF' |
| 3178 | stop; |
| 3179 | _ATEOF |
| 3180 | |
| 3181 | { set +x |
| 3182 | printf "%s\n" "$at_srcdir/action.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3183 | " |
| 3184 | at_fn_check_prepare_notrace 'an embedded newline' "action.at:17" |
| 3185 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3186 | |
| 3187 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3188 | at_status=$? at_failed=false |
| 3189 | $at_check_filter |
| 3190 | echo >>"$at_stderr"; printf "%s\n" "STOP on msg uid 1 |
| 3191 | STOP on msg uid 2 |
| 3192 | STOP on msg uid 3 |
| 3193 | " | \ |
| 3194 | $at_diff - "$at_stderr" || at_failed=: |
| 3195 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3196 | at_fn_check_status 0 $at_status "$at_srcdir/action.at:17" |
| 3197 | $at_failed && at_fn_log_failure |
| 3198 | $at_traceon; } |
| 3199 | |
| 3200 | set +x |
| 3201 | $at_times_p && times >"$at_times_file" |
| 3202 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3203 | read at_status <"$at_status_file" |
| 3204 | #AT_STOP_31 |
| 3205 | #AT_START_32 |
| 3206 | at_fn_group_banner 32 'action.at:23' \ |
| 3207 | "action null" " " 2 |
| 3208 | at_xfail=no |
| 3209 | ( |
| 3210 | printf "%s\n" "32. $at_setup_line: testing $at_desc ..." |
| 3211 | $at_traceon |
| 3212 | |
| 3213 | |
| 3214 | |
| 3215 | |
| 3216 | |
| 3217 | |
| 3218 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3219 | if test -e ./sieve.mbox; then |
| 3220 | |
| 3221 | # First, set all modes to +w |
| 3222 | find ./sieve.mbox | xargs chmod +w |
| 3223 | # Then, remove executable bit from regular files |
| 3224 | find ./sieve.mbox -type f | xargs chmod -x |
| 3225 | |
| 3226 | else |
| 3227 | |
| 3228 | # First, set all modes to +w |
| 3229 | find . | xargs chmod +w |
| 3230 | # Then, remove executable bit from regular files |
| 3231 | find . -type f | xargs chmod -x |
| 3232 | |
| 3233 | fi |
| 3234 | |
| 3235 | |
| 3236 | |
| 3237 | |
| 3238 | |
| 3239 | cat >prog <<'_ATEOF' |
| 3240 | |
| 3241 | _ATEOF |
| 3242 | |
| 3243 | { set +x |
| 3244 | printf "%s\n" "$at_srcdir/action.at:23: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3245 | " |
| 3246 | at_fn_check_prepare_notrace 'an embedded newline' "action.at:23" |
| 3247 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3248 | |
| 3249 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3250 | at_status=$? at_failed=false |
| 3251 | $at_check_filter |
| 3252 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 3253 | IMPLICIT KEEP on msg uid 2 |
| 3254 | IMPLICIT KEEP on msg uid 3 |
| 3255 | " | \ |
| 3256 | $at_diff - "$at_stderr" || at_failed=: |
| 3257 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3258 | at_fn_check_status 0 $at_status "$at_srcdir/action.at:23" |
| 3259 | $at_failed && at_fn_log_failure |
| 3260 | $at_traceon; } |
| 3261 | |
| 3262 | set +x |
| 3263 | $at_times_p && times >"$at_times_file" |
| 3264 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3265 | read at_status <"$at_status_file" |
| 3266 | #AT_STOP_32 |
| 3267 | #AT_START_33 |
| 3268 | at_fn_group_banner 33 'action.at:29' \ |
| 3269 | "action keep" " " 2 |
| 3270 | at_xfail=no |
| 3271 | ( |
| 3272 | printf "%s\n" "33. $at_setup_line: testing $at_desc ..." |
| 3273 | $at_traceon |
| 3274 | |
| 3275 | |
| 3276 | |
| 3277 | |
| 3278 | |
| 3279 | |
| 3280 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3281 | if test -e ./sieve.mbox; then |
| 3282 | |
| 3283 | # First, set all modes to +w |
| 3284 | find ./sieve.mbox | xargs chmod +w |
| 3285 | # Then, remove executable bit from regular files |
| 3286 | find ./sieve.mbox -type f | xargs chmod -x |
| 3287 | |
| 3288 | else |
| 3289 | |
| 3290 | # First, set all modes to +w |
| 3291 | find . | xargs chmod +w |
| 3292 | # Then, remove executable bit from regular files |
| 3293 | find . -type f | xargs chmod -x |
| 3294 | |
| 3295 | fi |
| 3296 | |
| 3297 | |
| 3298 | |
| 3299 | |
| 3300 | |
| 3301 | cat >prog <<'_ATEOF' |
| 3302 | keep; |
| 3303 | _ATEOF |
| 3304 | |
| 3305 | { set +x |
| 3306 | printf "%s\n" "$at_srcdir/action.at:29: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3307 | " |
| 3308 | at_fn_check_prepare_notrace 'an embedded newline' "action.at:29" |
| 3309 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3310 | |
| 3311 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3312 | at_status=$? at_failed=false |
| 3313 | $at_check_filter |
| 3314 | echo >>"$at_stderr"; printf "%s\n" "KEEP on msg uid 1 |
| 3315 | KEEP on msg uid 2 |
| 3316 | KEEP on msg uid 3 |
| 3317 | " | \ |
| 3318 | $at_diff - "$at_stderr" || at_failed=: |
| 3319 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3320 | at_fn_check_status 0 $at_status "$at_srcdir/action.at:29" |
| 3321 | $at_failed && at_fn_log_failure |
| 3322 | $at_traceon; } |
| 3323 | |
| 3324 | set +x |
| 3325 | $at_times_p && times >"$at_times_file" |
| 3326 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3327 | read at_status <"$at_status_file" |
| 3328 | #AT_STOP_33 |
| 3329 | #AT_START_34 |
| 3330 | at_fn_group_banner 34 'action.at:35' \ |
| 3331 | "action discard" " " 2 |
| 3332 | at_xfail=no |
| 3333 | ( |
| 3334 | printf "%s\n" "34. $at_setup_line: testing $at_desc ..." |
| 3335 | $at_traceon |
| 3336 | |
| 3337 | |
| 3338 | |
| 3339 | |
| 3340 | |
| 3341 | |
| 3342 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3343 | if test -e ./sieve.mbox; then |
| 3344 | |
| 3345 | # First, set all modes to +w |
| 3346 | find ./sieve.mbox | xargs chmod +w |
| 3347 | # Then, remove executable bit from regular files |
| 3348 | find ./sieve.mbox -type f | xargs chmod -x |
| 3349 | |
| 3350 | else |
| 3351 | |
| 3352 | # First, set all modes to +w |
| 3353 | find . | xargs chmod +w |
| 3354 | # Then, remove executable bit from regular files |
| 3355 | find . -type f | xargs chmod -x |
| 3356 | |
| 3357 | fi |
| 3358 | |
| 3359 | |
| 3360 | |
| 3361 | |
| 3362 | |
| 3363 | cat >prog <<'_ATEOF' |
| 3364 | discard; |
| 3365 | _ATEOF |
| 3366 | |
| 3367 | { set +x |
| 3368 | printf "%s\n" "$at_srcdir/action.at:35: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3369 | " |
| 3370 | at_fn_check_prepare_notrace 'an embedded newline' "action.at:35" |
| 3371 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 3372 | |
| 3373 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3374 | at_status=$? at_failed=false |
| 3375 | $at_check_filter |
| 3376 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 3377 | DISCARD on msg uid 2: marking as deleted |
| 3378 | DISCARD on msg uid 3: marking as deleted |
| 3379 | " | \ |
| 3380 | $at_diff - "$at_stderr" || at_failed=: |
| 3381 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3382 | at_fn_check_status 0 $at_status "$at_srcdir/action.at:35" |
| 3383 | $at_failed && at_fn_log_failure |
| 3384 | $at_traceon; } |
| 3385 | |
| 3386 | set +x |
| 3387 | $at_times_p && times >"$at_times_file" |
| 3388 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3389 | read at_status <"$at_status_file" |
| 3390 | #AT_STOP_34 |
| 3391 | #AT_START_35 |
| 3392 | at_fn_group_banner 35 'action.at:43' \ |
| 3393 | "action fileinto" " " 2 |
| 3394 | at_xfail=no |
| 3395 | ( |
| 3396 | printf "%s\n" "35. $at_setup_line: testing $at_desc ..." |
| 3397 | $at_traceon |
| 3398 | |
| 3399 | |
| 3400 | |
| 3401 | |
| 3402 | |
| 3403 | |
| 3404 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3405 | if test -e ./sieve.mbox; then |
| 3406 | |
| 3407 | # First, set all modes to +w |
| 3408 | find ./sieve.mbox | xargs chmod +w |
| 3409 | # Then, remove executable bit from regular files |
| 3410 | find ./sieve.mbox -type f | xargs chmod -x |
| 3411 | |
| 3412 | else |
| 3413 | |
| 3414 | # First, set all modes to +w |
| 3415 | find . | xargs chmod +w |
| 3416 | # Then, remove executable bit from regular files |
| 3417 | find . -type f | xargs chmod -x |
| 3418 | |
| 3419 | fi |
| 3420 | |
| 3421 | |
| 3422 | |
| 3423 | |
| 3424 | |
| 3425 | cat >prog <<'_ATEOF' |
| 3426 | require "fileinto"; |
| 3427 | fileinto "+file"; |
| 3428 | |
| 3429 | _ATEOF |
| 3430 | |
| 3431 | { set +x |
| 3432 | printf "%s\n" "$at_srcdir/action.at:43: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --set \":mailbox:folder=\`pwd\`\" -f ./sieve.mbox prog |
| 3433 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' file |
| 3434 | " |
| 3435 | at_fn_check_prepare_notrace 'a `...` command substitution' "action.at:43" |
| 3436 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --set ":mailbox:folder=`pwd`" -f ./sieve.mbox prog |
| 3437 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' file |
| 3438 | |
| 3439 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3440 | at_status=$? at_failed=false |
| 3441 | $at_check_filter |
| 3442 | echo >>"$at_stderr"; printf "%s\n" "FILEINTO on msg uid 1: delivering into +file |
| 3443 | FILEINTO on msg uid 2: delivering into +file |
| 3444 | FILEINTO on msg uid 3: delivering into +file |
| 3445 | " | \ |
| 3446 | $at_diff - "$at_stderr" || at_failed=: |
| 3447 | echo >>"$at_stdout"; printf "%s\n" "From [email protected] Sun May 6 22:16:47 2001 |
| 3448 | From: [email protected] |
| 3449 | To: [email protected] |
| 3450 | Subject: I have a present for you |
| 3451 | X-Caffeine: C8H10N4O2 |
| 3452 | |
| 3453 | Look, I'm sorry about the whole anvil thing, and I really |
| 3454 | didn't mean to try and drop it on you from the top of the |
| 3455 | cliff. I want to try to make it up to you. I've got some |
| 3456 | great birdseed over here at my place--top of the line |
| 3457 | stuff--and if you come by, I'll have it all wrapped up |
| 3458 | for you. I'm really sorry for all the problems I've caused |
| 3459 | for you over the years, but I know we can work this out. |
| 3460 | |
| 3461 | -- |
| 3462 | Wile E. Coyote \"Super Genius\" [email protected] |
| 3463 | |
| 3464 | From [email protected] Sun May 6 22:17:15 2001 |
| 3465 | From: [email protected] |
| 3466 | To: [email protected] |
| 3467 | Subject: \$\$\$ YOU, TOO, CAN BE A MILLIONAIRE! \$\$\$ |
| 3468 | Date: TBD |
| 3469 | X-Number: 0015 |
| 3470 | |
| 3471 | YOU MAY HAVE ALREADY WON TEN MILLION DOLLARS, BUT I DOUBT |
| 3472 | IT! SO JUST POST THIS TO SIX HUNDRED NEWSGROUPS! IT WILL |
| 3473 | GUARANTEE THAT YOU GET AT LEAST FIVE RESPONSES WITH MONEY! |
| 3474 | MONEY! MONEY! COLD HARD CASH! YOU WILL RECEIVE OVER |
| 3475 | \$20,000 IN LESS THAN TWO MONTHS! AND IT'S LEGAL!!!!!!!!! |
| 3476 | !!!!!!!!!!!!!!!!!!111111111!!!!!!!11111111111!!1 JUST |
| 3477 | SEND \$5 IN SMALL, UNMARKED BILLS TO THE ADDRESSES BELOW! |
| 3478 | |
| 3479 | From [email protected] Fri Dec 28 23:28:09 2001 |
| 3480 | Received: (from [email protected]) |
| 3481 | by dontmailme.org id fERKR9N16790 |
| 3482 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 3483 | Date: Fri, 28 Dec 2001 23:28:08 +0200 |
| 3484 | From: Bar <[email protected]> |
| 3485 | To: Foo Bar <[email protected]> |
| 3486 | Message-Id: <[email protected]> |
| 3487 | Subject: Coffee |
| 3488 | |
| 3489 | How about some coffee? |
| 3490 | |
| 3491 | " | \ |
| 3492 | $at_diff - "$at_stdout" || at_failed=: |
| 3493 | at_fn_check_status 0 $at_status "$at_srcdir/action.at:43" |
| 3494 | $at_failed && at_fn_log_failure |
| 3495 | $at_traceon; } |
| 3496 | |
| 3497 | set +x |
| 3498 | $at_times_p && times >"$at_times_file" |
| 3499 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3500 | read at_status <"$at_status_file" |
| 3501 | #AT_STOP_35 |
| 3502 | #AT_START_36 |
| 3503 | at_fn_group_banner 36 'redirect.at:17' \ |
| 3504 | "redirect" " " 2 |
| 3505 | at_xfail=no |
| 3506 | ( |
| 3507 | printf "%s\n" "36. $at_setup_line: testing $at_desc ..." |
| 3508 | $at_traceon |
| 3509 | |
| 3510 | |
| 3511 | |
| 3512 | { set +x |
| 3513 | printf "%s\n" "$at_srcdir/redirect.at:20: |
| 3514 | |
| 3515 | sieve --show-config-options | grep '^ENABLE_SENDMAIL' > /dev/null 2>&1 || exit 77 |
| 3516 | |
| 3517 | MAIL_DUMP=\`pwd\`/mta.diag |
| 3518 | MAIL_DUMP_APPEND=1 |
| 3519 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 3520 | |
| 3521 | cat >prog <<'_ATEOF' |
| 3522 | |
| 3523 | require \"redirect\"; |
| 3524 | |
| 3525 | redirect \"[email protected]\"; |
| 3526 | _ATEOF |
| 3527 | |
| 3528 | |
| 3529 | |
| 3530 | |
| 3531 | |
| 3532 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3533 | if test -e ./sieve.mbox; then |
| 3534 | |
| 3535 | # First, set all modes to +w |
| 3536 | find ./sieve.mbox | xargs chmod +w |
| 3537 | # Then, remove executable bit from regular files |
| 3538 | find ./sieve.mbox -type f | xargs chmod -x |
| 3539 | |
| 3540 | else |
| 3541 | |
| 3542 | # First, set all modes to +w |
| 3543 | find . | xargs chmod +w |
| 3544 | # Then, remove executable bit from regular files |
| 3545 | find . -type f | xargs chmod -x |
| 3546 | |
| 3547 | fi |
| 3548 | |
| 3549 | |
| 3550 | |
| 3551 | |
| 3552 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog || exit 1 |
| 3553 | cat \$MAIL_DUMP |
| 3554 | " |
| 3555 | at_fn_check_prepare_notrace 'a `...` command substitution' "redirect.at:20" |
| 3556 | ( $at_check_trace; |
| 3557 | |
| 3558 | sieve --show-config-options | grep '^ENABLE_SENDMAIL' > /dev/null 2>&1 || exit 77 |
| 3559 | |
| 3560 | MAIL_DUMP=`pwd`/mta.diag |
| 3561 | MAIL_DUMP_APPEND=1 |
| 3562 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 3563 | |
| 3564 | cat >prog <<'_ATEOF' |
| 3565 | |
| 3566 | require "redirect"; |
| 3567 | |
| 3568 | redirect "[email protected]"; |
| 3569 | _ATEOF |
| 3570 | |
| 3571 | |
| 3572 | |
| 3573 | |
| 3574 | |
| 3575 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3576 | if test -e ./sieve.mbox; then |
| 3577 | |
| 3578 | # First, set all modes to +w |
| 3579 | find ./sieve.mbox | xargs chmod +w |
| 3580 | # Then, remove executable bit from regular files |
| 3581 | find ./sieve.mbox -type f | xargs chmod -x |
| 3582 | |
| 3583 | else |
| 3584 | |
| 3585 | # First, set all modes to +w |
| 3586 | find . | xargs chmod +w |
| 3587 | # Then, remove executable bit from regular files |
| 3588 | find . -type f | xargs chmod -x |
| 3589 | |
| 3590 | fi |
| 3591 | |
| 3592 | |
| 3593 | |
| 3594 | |
| 3595 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog || exit 1 |
| 3596 | cat $MAIL_DUMP |
| 3597 | |
| 3598 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3599 | at_status=$? at_failed=false |
| 3600 | $at_check_filter |
| 3601 | echo >>"$at_stderr"; printf "%s\n" "REDIRECT on msg uid 1: to [email protected] |
| 3602 | REDIRECT on msg uid 2: to [email protected] |
| 3603 | REDIRECT on msg uid 3: to [email protected] |
| 3604 | " | \ |
| 3605 | $at_diff - "$at_stderr" || at_failed=: |
| 3606 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 3607 | SENDER: [email protected] |
| 3608 | NRCPT: 1 |
| 3609 | RCPT[0]: [email protected] |
| 3610 | LENGTH: 628 |
| 3611 | From: [email protected] |
| 3612 | To: [email protected] |
| 3613 | Subject: I have a present for you |
| 3614 | X-Caffeine: C8H10N4O2 |
| 3615 | X-Loop-Prevention: [email protected] |
| 3616 | |
| 3617 | Look, I'm sorry about the whole anvil thing, and I really |
| 3618 | didn't mean to try and drop it on you from the top of the |
| 3619 | cliff. I want to try to make it up to you. I've got some |
| 3620 | great birdseed over here at my place--top of the line |
| 3621 | stuff--and if you come by, I'll have it all wrapped up |
| 3622 | for you. I'm really sorry for all the problems I've caused |
| 3623 | for you over the years, but I know we can work this out. |
| 3624 | |
| 3625 | -- |
| 3626 | Wile E. Coyote \"Super Genius\" [email protected] |
| 3627 | |
| 3628 | MSGID: 0001 |
| 3629 | SENDER: [email protected] |
| 3630 | NRCPT: 1 |
| 3631 | RCPT[0]: [email protected] |
| 3632 | LENGTH: 595 |
| 3633 | From: [email protected] |
| 3634 | To: [email protected] |
| 3635 | Subject: \$\$\$ YOU, TOO, CAN BE A MILLIONAIRE! \$\$\$ |
| 3636 | Date: TBD |
| 3637 | X-Number: 0015 |
| 3638 | X-Loop-Prevention: [email protected] |
| 3639 | |
| 3640 | YOU MAY HAVE ALREADY WON TEN MILLION DOLLARS, BUT I DOUBT |
| 3641 | IT! SO JUST POST THIS TO SIX HUNDRED NEWSGROUPS! IT WILL |
| 3642 | GUARANTEE THAT YOU GET AT LEAST FIVE RESPONSES WITH MONEY! |
| 3643 | MONEY! MONEY! COLD HARD CASH! YOU WILL RECEIVE OVER |
| 3644 | \$20,000 IN LESS THAN TWO MONTHS! AND IT'S LEGAL!!!!!!!!! |
| 3645 | !!!!!!!!!!!!!!!!!!111111111!!!!!!!11111111111!!1 JUST |
| 3646 | SEND \$5 IN SMALL, UNMARKED BILLS TO THE ADDRESSES BELOW! |
| 3647 | |
| 3648 | MSGID: 0001 |
| 3649 | SENDER: [email protected] |
| 3650 | NRCPT: 1 |
| 3651 | RCPT[0]: [email protected] |
| 3652 | LENGTH: 375 |
| 3653 | Received: (from [email protected]) |
| 3654 | by dontmailme.org id fERKR9N16790 |
| 3655 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 3656 | Date: Fri, 28 Dec 2001 23:28:08 +0200 |
| 3657 | From: Bar <[email protected]> |
| 3658 | To: Foo Bar <[email protected]> |
| 3659 | Message-Id: <[email protected]> |
| 3660 | Subject: Coffee |
| 3661 | X-Loop-Prevention: [email protected] |
| 3662 | |
| 3663 | How about some coffee? |
| 3664 | |
| 3665 | " | \ |
| 3666 | $at_diff - "$at_stdout" || at_failed=: |
| 3667 | at_fn_check_status 0 $at_status "$at_srcdir/redirect.at:20" |
| 3668 | $at_failed && at_fn_log_failure |
| 3669 | $at_traceon; } |
| 3670 | |
| 3671 | |
| 3672 | set +x |
| 3673 | $at_times_p && times >"$at_times_file" |
| 3674 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3675 | read at_status <"$at_status_file" |
| 3676 | #AT_STOP_36 |
| 3677 | #AT_START_37 |
| 3678 | at_fn_group_banner 37 'reject.at:17' \ |
| 3679 | "reject" " " 2 |
| 3680 | at_xfail=no |
| 3681 | ( |
| 3682 | printf "%s\n" "37. $at_setup_line: testing $at_desc ..." |
| 3683 | $at_traceon |
| 3684 | |
| 3685 | |
| 3686 | |
| 3687 | { set +x |
| 3688 | printf "%s\n" "$at_srcdir/reject.at:20: |
| 3689 | |
| 3690 | sieve --show-config-options | grep '^ENABLE_SENDMAIL' > /dev/null 2>&1 || exit 77 |
| 3691 | |
| 3692 | MAIL_DUMP=\`pwd\`/mta.diag |
| 3693 | MAIL_DUMP_APPEND=1 |
| 3694 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 3695 | |
| 3696 | cat >prog <<'_ATEOF' |
| 3697 | |
| 3698 | require \"reject\"; |
| 3699 | |
| 3700 | reject text: |
| 3701 | I don't want to read these messages. |
| 3702 | |
| 3703 | Regards. |
| 3704 | . |
| 3705 | ; |
| 3706 | _ATEOF |
| 3707 | |
| 3708 | |
| 3709 | cat >filter.sed <<'_ATEOF' |
| 3710 | |
| 3711 | # mta log contains trailing spaces |
| 3712 | s/ \$// |
| 3713 | # MIME boundaries are unpredictable, so we replace them with a constant string. |
| 3714 | s/^\\(Content-Type: .*boundary=\\).*/\\1(boundary)/ |
| 3715 | s/^--[0-9].*/--(boundary)/ |
| 3716 | # Same goes for dates. |
| 3717 | s/^\\(The original message was received at *\\).*\\( from .*\\)/\\1(date)\\2/ |
| 3718 | s/^\\(Last-Attempt-Date:\\).*/\\1 (date)/ |
| 3719 | s/^\\(Arrival-Date:\\).*/\\1 (date)/ |
| 3720 | # Remove body lengths |
| 3721 | /^LENGTH: /s/: [0-9][0-9]*/: X/ |
| 3722 | _ATEOF |
| 3723 | |
| 3724 | |
| 3725 | |
| 3726 | |
| 3727 | |
| 3728 | |
| 3729 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3730 | if test -e ./sieve.mbox; then |
| 3731 | |
| 3732 | # First, set all modes to +w |
| 3733 | find ./sieve.mbox | xargs chmod +w |
| 3734 | # Then, remove executable bit from regular files |
| 3735 | find ./sieve.mbox -type f | xargs chmod -x |
| 3736 | |
| 3737 | else |
| 3738 | |
| 3739 | # First, set all modes to +w |
| 3740 | find . | xargs chmod +w |
| 3741 | # Then, remove executable bit from regular files |
| 3742 | find . -type f | xargs chmod -x |
| 3743 | |
| 3744 | fi |
| 3745 | |
| 3746 | |
| 3747 | |
| 3748 | |
| 3749 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog || exit 1 |
| 3750 | sed -f filter.sed \$MAIL_DUMP |
| 3751 | " |
| 3752 | at_fn_check_prepare_notrace 'a `...` command substitution' "reject.at:20" |
| 3753 | ( $at_check_trace; |
| 3754 | |
| 3755 | sieve --show-config-options | grep '^ENABLE_SENDMAIL' > /dev/null 2>&1 || exit 77 |
| 3756 | |
| 3757 | MAIL_DUMP=`pwd`/mta.diag |
| 3758 | MAIL_DUMP_APPEND=1 |
| 3759 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 3760 | |
| 3761 | cat >prog <<'_ATEOF' |
| 3762 | |
| 3763 | require "reject"; |
| 3764 | |
| 3765 | reject text: |
| 3766 | I don't want to read these messages. |
| 3767 | |
| 3768 | Regards. |
| 3769 | . |
| 3770 | ; |
| 3771 | _ATEOF |
| 3772 | |
| 3773 | |
| 3774 | cat >filter.sed <<'_ATEOF' |
| 3775 | |
| 3776 | # mta log contains trailing spaces |
| 3777 | s/ $// |
| 3778 | # MIME boundaries are unpredictable, so we replace them with a constant string. |
| 3779 | s/^\(Content-Type: .*boundary=\).*/\1(boundary)/ |
| 3780 | s/^--[0-9].*/--(boundary)/ |
| 3781 | # Same goes for dates. |
| 3782 | s/^\(The original message was received at *\).*\( from .*\)/\1(date)\2/ |
| 3783 | s/^\(Last-Attempt-Date:\).*/\1 (date)/ |
| 3784 | s/^\(Arrival-Date:\).*/\1 (date)/ |
| 3785 | # Remove body lengths |
| 3786 | /^LENGTH: /s/: [0-9][0-9]*/: X/ |
| 3787 | _ATEOF |
| 3788 | |
| 3789 | |
| 3790 | |
| 3791 | |
| 3792 | |
| 3793 | |
| 3794 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 3795 | if test -e ./sieve.mbox; then |
| 3796 | |
| 3797 | # First, set all modes to +w |
| 3798 | find ./sieve.mbox | xargs chmod +w |
| 3799 | # Then, remove executable bit from regular files |
| 3800 | find ./sieve.mbox -type f | xargs chmod -x |
| 3801 | |
| 3802 | else |
| 3803 | |
| 3804 | # First, set all modes to +w |
| 3805 | find . | xargs chmod +w |
| 3806 | # Then, remove executable bit from regular files |
| 3807 | find . -type f | xargs chmod -x |
| 3808 | |
| 3809 | fi |
| 3810 | |
| 3811 | |
| 3812 | |
| 3813 | |
| 3814 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog || exit 1 |
| 3815 | sed -f filter.sed $MAIL_DUMP |
| 3816 | |
| 3817 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3818 | at_status=$? at_failed=false |
| 3819 | $at_check_filter |
| 3820 | echo >>"$at_stderr"; printf "%s\n" "REJECT on msg uid 1 |
| 3821 | REJECT on msg uid 2 |
| 3822 | REJECT on msg uid 3 |
| 3823 | " | \ |
| 3824 | $at_diff - "$at_stderr" || at_failed=: |
| 3825 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 3826 | SENDER: [email protected] |
| 3827 | NRCPT: 1 |
| 3828 | RCPT[0]: [email protected] |
| 3829 | LENGTH: X |
| 3830 | To: [email protected] |
| 3831 | MIME-Version: 1.0 |
| 3832 | Content-Type: multipart/mixed; boundary=(boundary) |
| 3833 | |
| 3834 | --(boundary) |
| 3835 | Content-Type: text/plain;charset=UTF-8 |
| 3836 | Content-Transfer-Encoding: 8bit |
| 3837 | |
| 3838 | The original message was received at (date) from [email protected]. |
| 3839 | Message was refused by recipient's mail filtering program. |
| 3840 | Reason given was as follows: |
| 3841 | |
| 3842 | I don't want to read these messages. |
| 3843 | |
| 3844 | Regards. |
| 3845 | |
| 3846 | --(boundary) |
| 3847 | Content-Type: message/delivery-status |
| 3848 | |
| 3849 | Reporting-UA: sieve; GNU Mailutils 3.20 |
| 3850 | Arrival-Date: (date) |
| 3851 | Final-Recipient: RFC822; [email protected] |
| 3852 | Action: deleted |
| 3853 | Disposition: automatic-action/MDN-sent-automatically;deleted |
| 3854 | Last-Attempt-Date: (date) |
| 3855 | |
| 3856 | --(boundary) |
| 3857 | Content-Type: message/rfc822 |
| 3858 | |
| 3859 | From: [email protected] |
| 3860 | To: [email protected] |
| 3861 | Subject: I have a present for you |
| 3862 | X-Caffeine: C8H10N4O2 |
| 3863 | |
| 3864 | Look, I'm sorry about the whole anvil thing, and I really |
| 3865 | didn't mean to try and drop it on you from the top of the |
| 3866 | cliff. I want to try to make it up to you. I've got some |
| 3867 | great birdseed over here at my place--top of the line |
| 3868 | stuff--and if you come by, I'll have it all wrapped up |
| 3869 | for you. I'm really sorry for all the problems I've caused |
| 3870 | for you over the years, but I know we can work this out. |
| 3871 | |
| 3872 | -- |
| 3873 | Wile E. Coyote \"Super Genius\" [email protected] |
| 3874 | |
| 3875 | --(boundary) |
| 3876 | |
| 3877 | MSGID: 0001 |
| 3878 | SENDER: [email protected] |
| 3879 | NRCPT: 1 |
| 3880 | RCPT[0]: [email protected] |
| 3881 | LENGTH: X |
| 3882 | To: [email protected] |
| 3883 | MIME-Version: 1.0 |
| 3884 | Content-Type: multipart/mixed; boundary=(boundary) |
| 3885 | |
| 3886 | --(boundary) |
| 3887 | Content-Type: text/plain;charset=UTF-8 |
| 3888 | Content-Transfer-Encoding: 8bit |
| 3889 | |
| 3890 | The original message was received at (date) from [email protected]. |
| 3891 | Message was refused by recipient's mail filtering program. |
| 3892 | Reason given was as follows: |
| 3893 | |
| 3894 | I don't want to read these messages. |
| 3895 | |
| 3896 | Regards. |
| 3897 | |
| 3898 | --(boundary) |
| 3899 | Content-Type: message/delivery-status |
| 3900 | |
| 3901 | Reporting-UA: sieve; GNU Mailutils 3.20 |
| 3902 | Arrival-Date: (date) |
| 3903 | Final-Recipient: RFC822; [email protected] |
| 3904 | Action: deleted |
| 3905 | Disposition: automatic-action/MDN-sent-automatically;deleted |
| 3906 | Last-Attempt-Date: (date) |
| 3907 | |
| 3908 | --(boundary) |
| 3909 | Content-Type: message/rfc822 |
| 3910 | |
| 3911 | From: [email protected] |
| 3912 | To: [email protected] |
| 3913 | Subject: \$\$\$ YOU, TOO, CAN BE A MILLIONAIRE! \$\$\$ |
| 3914 | Date: TBD |
| 3915 | X-Number: 0015 |
| 3916 | |
| 3917 | YOU MAY HAVE ALREADY WON TEN MILLION DOLLARS, BUT I DOUBT |
| 3918 | IT! SO JUST POST THIS TO SIX HUNDRED NEWSGROUPS! IT WILL |
| 3919 | GUARANTEE THAT YOU GET AT LEAST FIVE RESPONSES WITH MONEY! |
| 3920 | MONEY! MONEY! COLD HARD CASH! YOU WILL RECEIVE OVER |
| 3921 | \$20,000 IN LESS THAN TWO MONTHS! AND IT'S LEGAL!!!!!!!!! |
| 3922 | !!!!!!!!!!!!!!!!!!111111111!!!!!!!11111111111!!1 JUST |
| 3923 | SEND \$5 IN SMALL, UNMARKED BILLS TO THE ADDRESSES BELOW! |
| 3924 | |
| 3925 | --(boundary) |
| 3926 | |
| 3927 | MSGID: 0001 |
| 3928 | SENDER: [email protected] |
| 3929 | NRCPT: 1 |
| 3930 | RCPT[0]: [email protected] |
| 3931 | LENGTH: X |
| 3932 | To: [email protected] |
| 3933 | MIME-Version: 1.0 |
| 3934 | Content-Type: multipart/mixed; boundary=(boundary) |
| 3935 | |
| 3936 | --(boundary) |
| 3937 | Content-Type: text/plain;charset=UTF-8 |
| 3938 | Content-Transfer-Encoding: 8bit |
| 3939 | |
| 3940 | The original message was received at (date) from [email protected]. |
| 3941 | Message was refused by recipient's mail filtering program. |
| 3942 | Reason given was as follows: |
| 3943 | |
| 3944 | I don't want to read these messages. |
| 3945 | |
| 3946 | Regards. |
| 3947 | |
| 3948 | --(boundary) |
| 3949 | Content-Type: message/delivery-status |
| 3950 | |
| 3951 | Reporting-UA: sieve; GNU Mailutils 3.20 |
| 3952 | Arrival-Date: (date) |
| 3953 | Final-Recipient: RFC822; [email protected] |
| 3954 | Action: deleted |
| 3955 | Disposition: automatic-action/MDN-sent-automatically;deleted |
| 3956 | Last-Attempt-Date: (date) |
| 3957 | |
| 3958 | --(boundary) |
| 3959 | Content-Type: message/rfc822 |
| 3960 | |
| 3961 | Received: (from [email protected]) |
| 3962 | by dontmailme.org id fERKR9N16790 |
| 3963 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 3964 | Date: Fri, 28 Dec 2001 23:28:08 +0200 |
| 3965 | From: Bar <[email protected]> |
| 3966 | To: Foo Bar <[email protected]> |
| 3967 | Message-Id: <[email protected]> |
| 3968 | Subject: Coffee |
| 3969 | |
| 3970 | How about some coffee? |
| 3971 | |
| 3972 | --(boundary) |
| 3973 | |
| 3974 | " | \ |
| 3975 | $at_diff - "$at_stdout" || at_failed=: |
| 3976 | at_fn_check_status 0 $at_status "$at_srcdir/reject.at:20" |
| 3977 | $at_failed && at_fn_log_failure |
| 3978 | $at_traceon; } |
| 3979 | |
| 3980 | |
| 3981 | set +x |
| 3982 | $at_times_p && times >"$at_times_file" |
| 3983 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3984 | read at_status <"$at_status_file" |
| 3985 | #AT_STOP_37 |
| 3986 | #AT_START_38 |
| 3987 | at_fn_group_banner 38 'address.at:17' \ |
| 3988 | "address :all" " " 3 |
| 3989 | at_xfail=no |
| 3990 | ( |
| 3991 | printf "%s\n" "38. $at_setup_line: testing $at_desc ..." |
| 3992 | $at_traceon |
| 3993 | |
| 3994 | |
| 3995 | |
| 3996 | |
| 3997 | |
| 3998 | |
| 3999 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4000 | if test -e ./sieve.mbox; then |
| 4001 | |
| 4002 | # First, set all modes to +w |
| 4003 | find ./sieve.mbox | xargs chmod +w |
| 4004 | # Then, remove executable bit from regular files |
| 4005 | find ./sieve.mbox -type f | xargs chmod -x |
| 4006 | |
| 4007 | else |
| 4008 | |
| 4009 | # First, set all modes to +w |
| 4010 | find . | xargs chmod +w |
| 4011 | # Then, remove executable bit from regular files |
| 4012 | find . -type f | xargs chmod -x |
| 4013 | |
| 4014 | fi |
| 4015 | |
| 4016 | |
| 4017 | |
| 4018 | |
| 4019 | |
| 4020 | cat >prog <<'_ATEOF' |
| 4021 | |
| 4022 | if address :is :all "From" "[email protected]" { |
| 4023 | discard; |
| 4024 | } |
| 4025 | |
| 4026 | _ATEOF |
| 4027 | |
| 4028 | { set +x |
| 4029 | printf "%s\n" "$at_srcdir/address.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4030 | " |
| 4031 | at_fn_check_prepare_notrace 'an embedded newline' "address.at:17" |
| 4032 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4033 | |
| 4034 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4035 | at_status=$? at_failed=false |
| 4036 | $at_check_filter |
| 4037 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 4038 | IMPLICIT KEEP on msg uid 2 |
| 4039 | IMPLICIT KEEP on msg uid 3 |
| 4040 | " | \ |
| 4041 | $at_diff - "$at_stderr" || at_failed=: |
| 4042 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4043 | at_fn_check_status 0 $at_status "$at_srcdir/address.at:17" |
| 4044 | $at_failed && at_fn_log_failure |
| 4045 | $at_traceon; } |
| 4046 | |
| 4047 | set +x |
| 4048 | $at_times_p && times >"$at_times_file" |
| 4049 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4050 | read at_status <"$at_status_file" |
| 4051 | #AT_STOP_38 |
| 4052 | #AT_START_39 |
| 4053 | at_fn_group_banner 39 'address.at:28' \ |
| 4054 | "address :domain" " " 3 |
| 4055 | at_xfail=no |
| 4056 | ( |
| 4057 | printf "%s\n" "39. $at_setup_line: testing $at_desc ..." |
| 4058 | $at_traceon |
| 4059 | |
| 4060 | |
| 4061 | |
| 4062 | |
| 4063 | |
| 4064 | |
| 4065 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4066 | if test -e ./sieve.mbox; then |
| 4067 | |
| 4068 | # First, set all modes to +w |
| 4069 | find ./sieve.mbox | xargs chmod +w |
| 4070 | # Then, remove executable bit from regular files |
| 4071 | find ./sieve.mbox -type f | xargs chmod -x |
| 4072 | |
| 4073 | else |
| 4074 | |
| 4075 | # First, set all modes to +w |
| 4076 | find . | xargs chmod +w |
| 4077 | # Then, remove executable bit from regular files |
| 4078 | find . -type f | xargs chmod -x |
| 4079 | |
| 4080 | fi |
| 4081 | |
| 4082 | |
| 4083 | |
| 4084 | |
| 4085 | |
| 4086 | cat >prog <<'_ATEOF' |
| 4087 | |
| 4088 | if address :is :domain "From" "desert.example.org" { |
| 4089 | discard; |
| 4090 | } |
| 4091 | |
| 4092 | _ATEOF |
| 4093 | |
| 4094 | { set +x |
| 4095 | printf "%s\n" "$at_srcdir/address.at:28: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4096 | " |
| 4097 | at_fn_check_prepare_notrace 'an embedded newline' "address.at:28" |
| 4098 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4099 | |
| 4100 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4101 | at_status=$? at_failed=false |
| 4102 | $at_check_filter |
| 4103 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 4104 | IMPLICIT KEEP on msg uid 2 |
| 4105 | IMPLICIT KEEP on msg uid 3 |
| 4106 | " | \ |
| 4107 | $at_diff - "$at_stderr" || at_failed=: |
| 4108 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4109 | at_fn_check_status 0 $at_status "$at_srcdir/address.at:28" |
| 4110 | $at_failed && at_fn_log_failure |
| 4111 | $at_traceon; } |
| 4112 | |
| 4113 | set +x |
| 4114 | $at_times_p && times >"$at_times_file" |
| 4115 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4116 | read at_status <"$at_status_file" |
| 4117 | #AT_STOP_39 |
| 4118 | #AT_START_40 |
| 4119 | at_fn_group_banner 40 'address.at:39' \ |
| 4120 | "address :localpart" " " 3 |
| 4121 | at_xfail=no |
| 4122 | ( |
| 4123 | printf "%s\n" "40. $at_setup_line: testing $at_desc ..." |
| 4124 | $at_traceon |
| 4125 | |
| 4126 | |
| 4127 | |
| 4128 | |
| 4129 | |
| 4130 | |
| 4131 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4132 | if test -e ./sieve.mbox; then |
| 4133 | |
| 4134 | # First, set all modes to +w |
| 4135 | find ./sieve.mbox | xargs chmod +w |
| 4136 | # Then, remove executable bit from regular files |
| 4137 | find ./sieve.mbox -type f | xargs chmod -x |
| 4138 | |
| 4139 | else |
| 4140 | |
| 4141 | # First, set all modes to +w |
| 4142 | find . | xargs chmod +w |
| 4143 | # Then, remove executable bit from regular files |
| 4144 | find . -type f | xargs chmod -x |
| 4145 | |
| 4146 | fi |
| 4147 | |
| 4148 | |
| 4149 | |
| 4150 | |
| 4151 | |
| 4152 | cat >prog <<'_ATEOF' |
| 4153 | |
| 4154 | if address :is :localpart "From" "youcouldberich!" { |
| 4155 | discard; |
| 4156 | } |
| 4157 | |
| 4158 | _ATEOF |
| 4159 | |
| 4160 | { set +x |
| 4161 | printf "%s\n" "$at_srcdir/address.at:39: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4162 | " |
| 4163 | at_fn_check_prepare_notrace 'an embedded newline' "address.at:39" |
| 4164 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4165 | |
| 4166 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4167 | at_status=$? at_failed=false |
| 4168 | $at_check_filter |
| 4169 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 4170 | DISCARD on msg uid 2: marking as deleted |
| 4171 | IMPLICIT KEEP on msg uid 3 |
| 4172 | " | \ |
| 4173 | $at_diff - "$at_stderr" || at_failed=: |
| 4174 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4175 | at_fn_check_status 0 $at_status "$at_srcdir/address.at:39" |
| 4176 | $at_failed && at_fn_log_failure |
| 4177 | $at_traceon; } |
| 4178 | |
| 4179 | set +x |
| 4180 | $at_times_p && times >"$at_times_file" |
| 4181 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4182 | read at_status <"$at_status_file" |
| 4183 | #AT_STOP_40 |
| 4184 | #AT_START_41 |
| 4185 | at_fn_group_banner 41 'address.at:50' \ |
| 4186 | "address :matches" " " 3 |
| 4187 | at_xfail=no |
| 4188 | ( |
| 4189 | printf "%s\n" "41. $at_setup_line: testing $at_desc ..." |
| 4190 | $at_traceon |
| 4191 | |
| 4192 | |
| 4193 | |
| 4194 | |
| 4195 | |
| 4196 | |
| 4197 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4198 | if test -e ./sieve.mbox; then |
| 4199 | |
| 4200 | # First, set all modes to +w |
| 4201 | find ./sieve.mbox | xargs chmod +w |
| 4202 | # Then, remove executable bit from regular files |
| 4203 | find ./sieve.mbox -type f | xargs chmod -x |
| 4204 | |
| 4205 | else |
| 4206 | |
| 4207 | # First, set all modes to +w |
| 4208 | find . | xargs chmod +w |
| 4209 | # Then, remove executable bit from regular files |
| 4210 | find . -type f | xargs chmod -x |
| 4211 | |
| 4212 | fi |
| 4213 | |
| 4214 | |
| 4215 | |
| 4216 | |
| 4217 | |
| 4218 | cat >prog <<'_ATEOF' |
| 4219 | |
| 4220 | if address :matches :all "From" "*invalid" { |
| 4221 | discard; |
| 4222 | } |
| 4223 | |
| 4224 | _ATEOF |
| 4225 | |
| 4226 | { set +x |
| 4227 | printf "%s\n" "$at_srcdir/address.at:50: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4228 | " |
| 4229 | at_fn_check_prepare_notrace 'an embedded newline' "address.at:50" |
| 4230 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4231 | |
| 4232 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4233 | at_status=$? at_failed=false |
| 4234 | $at_check_filter |
| 4235 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 4236 | DISCARD on msg uid 2: marking as deleted |
| 4237 | IMPLICIT KEEP on msg uid 3 |
| 4238 | " | \ |
| 4239 | $at_diff - "$at_stderr" || at_failed=: |
| 4240 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4241 | at_fn_check_status 0 $at_status "$at_srcdir/address.at:50" |
| 4242 | $at_failed && at_fn_log_failure |
| 4243 | $at_traceon; } |
| 4244 | |
| 4245 | set +x |
| 4246 | $at_times_p && times >"$at_times_file" |
| 4247 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4248 | read at_status <"$at_status_file" |
| 4249 | #AT_STOP_41 |
| 4250 | #AT_START_42 |
| 4251 | at_fn_group_banner 42 'allof.at:17' \ |
| 4252 | "allof 00" " " 3 |
| 4253 | at_xfail=no |
| 4254 | ( |
| 4255 | printf "%s\n" "42. $at_setup_line: testing $at_desc ..." |
| 4256 | $at_traceon |
| 4257 | |
| 4258 | |
| 4259 | |
| 4260 | |
| 4261 | |
| 4262 | |
| 4263 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4264 | if test -e ./sieve.mbox; then |
| 4265 | |
| 4266 | # First, set all modes to +w |
| 4267 | find ./sieve.mbox | xargs chmod +w |
| 4268 | # Then, remove executable bit from regular files |
| 4269 | find ./sieve.mbox -type f | xargs chmod -x |
| 4270 | |
| 4271 | else |
| 4272 | |
| 4273 | # First, set all modes to +w |
| 4274 | find . | xargs chmod +w |
| 4275 | # Then, remove executable bit from regular files |
| 4276 | find . -type f | xargs chmod -x |
| 4277 | |
| 4278 | fi |
| 4279 | |
| 4280 | |
| 4281 | |
| 4282 | |
| 4283 | |
| 4284 | cat >prog <<'_ATEOF' |
| 4285 | |
| 4286 | if allof(false,false) { |
| 4287 | discard; |
| 4288 | } |
| 4289 | |
| 4290 | _ATEOF |
| 4291 | |
| 4292 | { set +x |
| 4293 | printf "%s\n" "$at_srcdir/allof.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4294 | " |
| 4295 | at_fn_check_prepare_notrace 'an embedded newline' "allof.at:17" |
| 4296 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4297 | |
| 4298 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4299 | at_status=$? at_failed=false |
| 4300 | $at_check_filter |
| 4301 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 4302 | IMPLICIT KEEP on msg uid 2 |
| 4303 | IMPLICIT KEEP on msg uid 3 |
| 4304 | " | \ |
| 4305 | $at_diff - "$at_stderr" || at_failed=: |
| 4306 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4307 | at_fn_check_status 0 $at_status "$at_srcdir/allof.at:17" |
| 4308 | $at_failed && at_fn_log_failure |
| 4309 | $at_traceon; } |
| 4310 | |
| 4311 | set +x |
| 4312 | $at_times_p && times >"$at_times_file" |
| 4313 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4314 | read at_status <"$at_status_file" |
| 4315 | #AT_STOP_42 |
| 4316 | #AT_START_43 |
| 4317 | at_fn_group_banner 43 'allof.at:28' \ |
| 4318 | "allof 01" " " 3 |
| 4319 | at_xfail=no |
| 4320 | ( |
| 4321 | printf "%s\n" "43. $at_setup_line: testing $at_desc ..." |
| 4322 | $at_traceon |
| 4323 | |
| 4324 | |
| 4325 | |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4330 | if test -e ./sieve.mbox; then |
| 4331 | |
| 4332 | # First, set all modes to +w |
| 4333 | find ./sieve.mbox | xargs chmod +w |
| 4334 | # Then, remove executable bit from regular files |
| 4335 | find ./sieve.mbox -type f | xargs chmod -x |
| 4336 | |
| 4337 | else |
| 4338 | |
| 4339 | # First, set all modes to +w |
| 4340 | find . | xargs chmod +w |
| 4341 | # Then, remove executable bit from regular files |
| 4342 | find . -type f | xargs chmod -x |
| 4343 | |
| 4344 | fi |
| 4345 | |
| 4346 | |
| 4347 | |
| 4348 | |
| 4349 | |
| 4350 | cat >prog <<'_ATEOF' |
| 4351 | |
| 4352 | if allof(false,true) { |
| 4353 | discard; |
| 4354 | } |
| 4355 | |
| 4356 | _ATEOF |
| 4357 | |
| 4358 | { set +x |
| 4359 | printf "%s\n" "$at_srcdir/allof.at:28: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4360 | " |
| 4361 | at_fn_check_prepare_notrace 'an embedded newline' "allof.at:28" |
| 4362 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4363 | |
| 4364 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4365 | at_status=$? at_failed=false |
| 4366 | $at_check_filter |
| 4367 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 4368 | IMPLICIT KEEP on msg uid 2 |
| 4369 | IMPLICIT KEEP on msg uid 3 |
| 4370 | " | \ |
| 4371 | $at_diff - "$at_stderr" || at_failed=: |
| 4372 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4373 | at_fn_check_status 0 $at_status "$at_srcdir/allof.at:28" |
| 4374 | $at_failed && at_fn_log_failure |
| 4375 | $at_traceon; } |
| 4376 | |
| 4377 | set +x |
| 4378 | $at_times_p && times >"$at_times_file" |
| 4379 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4380 | read at_status <"$at_status_file" |
| 4381 | #AT_STOP_43 |
| 4382 | #AT_START_44 |
| 4383 | at_fn_group_banner 44 'allof.at:39' \ |
| 4384 | "allof 11" " " 3 |
| 4385 | at_xfail=no |
| 4386 | ( |
| 4387 | printf "%s\n" "44. $at_setup_line: testing $at_desc ..." |
| 4388 | $at_traceon |
| 4389 | |
| 4390 | |
| 4391 | |
| 4392 | |
| 4393 | |
| 4394 | |
| 4395 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4396 | if test -e ./sieve.mbox; then |
| 4397 | |
| 4398 | # First, set all modes to +w |
| 4399 | find ./sieve.mbox | xargs chmod +w |
| 4400 | # Then, remove executable bit from regular files |
| 4401 | find ./sieve.mbox -type f | xargs chmod -x |
| 4402 | |
| 4403 | else |
| 4404 | |
| 4405 | # First, set all modes to +w |
| 4406 | find . | xargs chmod +w |
| 4407 | # Then, remove executable bit from regular files |
| 4408 | find . -type f | xargs chmod -x |
| 4409 | |
| 4410 | fi |
| 4411 | |
| 4412 | |
| 4413 | |
| 4414 | |
| 4415 | |
| 4416 | cat >prog <<'_ATEOF' |
| 4417 | |
| 4418 | if allof(true,true) { |
| 4419 | discard; |
| 4420 | } |
| 4421 | |
| 4422 | _ATEOF |
| 4423 | |
| 4424 | { set +x |
| 4425 | printf "%s\n" "$at_srcdir/allof.at:39: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4426 | " |
| 4427 | at_fn_check_prepare_notrace 'an embedded newline' "allof.at:39" |
| 4428 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4429 | |
| 4430 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4431 | at_status=$? at_failed=false |
| 4432 | $at_check_filter |
| 4433 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 4434 | DISCARD on msg uid 2: marking as deleted |
| 4435 | DISCARD on msg uid 3: marking as deleted |
| 4436 | " | \ |
| 4437 | $at_diff - "$at_stderr" || at_failed=: |
| 4438 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4439 | at_fn_check_status 0 $at_status "$at_srcdir/allof.at:39" |
| 4440 | $at_failed && at_fn_log_failure |
| 4441 | $at_traceon; } |
| 4442 | |
| 4443 | set +x |
| 4444 | $at_times_p && times >"$at_times_file" |
| 4445 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4446 | read at_status <"$at_status_file" |
| 4447 | #AT_STOP_44 |
| 4448 | #AT_START_45 |
| 4449 | at_fn_group_banner 45 'anyof.at:17' \ |
| 4450 | "anyof 00" " " 3 |
| 4451 | at_xfail=no |
| 4452 | ( |
| 4453 | printf "%s\n" "45. $at_setup_line: testing $at_desc ..." |
| 4454 | $at_traceon |
| 4455 | |
| 4456 | |
| 4457 | |
| 4458 | |
| 4459 | |
| 4460 | |
| 4461 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4462 | if test -e ./sieve.mbox; then |
| 4463 | |
| 4464 | # First, set all modes to +w |
| 4465 | find ./sieve.mbox | xargs chmod +w |
| 4466 | # Then, remove executable bit from regular files |
| 4467 | find ./sieve.mbox -type f | xargs chmod -x |
| 4468 | |
| 4469 | else |
| 4470 | |
| 4471 | # First, set all modes to +w |
| 4472 | find . | xargs chmod +w |
| 4473 | # Then, remove executable bit from regular files |
| 4474 | find . -type f | xargs chmod -x |
| 4475 | |
| 4476 | fi |
| 4477 | |
| 4478 | |
| 4479 | |
| 4480 | |
| 4481 | |
| 4482 | cat >prog <<'_ATEOF' |
| 4483 | |
| 4484 | if anyof(false,false) { |
| 4485 | discard; |
| 4486 | } |
| 4487 | |
| 4488 | _ATEOF |
| 4489 | |
| 4490 | { set +x |
| 4491 | printf "%s\n" "$at_srcdir/anyof.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4492 | " |
| 4493 | at_fn_check_prepare_notrace 'an embedded newline' "anyof.at:17" |
| 4494 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4495 | |
| 4496 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4497 | at_status=$? at_failed=false |
| 4498 | $at_check_filter |
| 4499 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 4500 | IMPLICIT KEEP on msg uid 2 |
| 4501 | IMPLICIT KEEP on msg uid 3 |
| 4502 | " | \ |
| 4503 | $at_diff - "$at_stderr" || at_failed=: |
| 4504 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4505 | at_fn_check_status 0 $at_status "$at_srcdir/anyof.at:17" |
| 4506 | $at_failed && at_fn_log_failure |
| 4507 | $at_traceon; } |
| 4508 | |
| 4509 | set +x |
| 4510 | $at_times_p && times >"$at_times_file" |
| 4511 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4512 | read at_status <"$at_status_file" |
| 4513 | #AT_STOP_45 |
| 4514 | #AT_START_46 |
| 4515 | at_fn_group_banner 46 'anyof.at:28' \ |
| 4516 | "anyof 01" " " 3 |
| 4517 | at_xfail=no |
| 4518 | ( |
| 4519 | printf "%s\n" "46. $at_setup_line: testing $at_desc ..." |
| 4520 | $at_traceon |
| 4521 | |
| 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4528 | if test -e ./sieve.mbox; then |
| 4529 | |
| 4530 | # First, set all modes to +w |
| 4531 | find ./sieve.mbox | xargs chmod +w |
| 4532 | # Then, remove executable bit from regular files |
| 4533 | find ./sieve.mbox -type f | xargs chmod -x |
| 4534 | |
| 4535 | else |
| 4536 | |
| 4537 | # First, set all modes to +w |
| 4538 | find . | xargs chmod +w |
| 4539 | # Then, remove executable bit from regular files |
| 4540 | find . -type f | xargs chmod -x |
| 4541 | |
| 4542 | fi |
| 4543 | |
| 4544 | |
| 4545 | |
| 4546 | |
| 4547 | |
| 4548 | cat >prog <<'_ATEOF' |
| 4549 | |
| 4550 | if anyof(false,true) { |
| 4551 | discard; |
| 4552 | } |
| 4553 | |
| 4554 | _ATEOF |
| 4555 | |
| 4556 | { set +x |
| 4557 | printf "%s\n" "$at_srcdir/anyof.at:28: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4558 | " |
| 4559 | at_fn_check_prepare_notrace 'an embedded newline' "anyof.at:28" |
| 4560 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4561 | |
| 4562 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4563 | at_status=$? at_failed=false |
| 4564 | $at_check_filter |
| 4565 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 4566 | DISCARD on msg uid 2: marking as deleted |
| 4567 | DISCARD on msg uid 3: marking as deleted |
| 4568 | " | \ |
| 4569 | $at_diff - "$at_stderr" || at_failed=: |
| 4570 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4571 | at_fn_check_status 0 $at_status "$at_srcdir/anyof.at:28" |
| 4572 | $at_failed && at_fn_log_failure |
| 4573 | $at_traceon; } |
| 4574 | |
| 4575 | set +x |
| 4576 | $at_times_p && times >"$at_times_file" |
| 4577 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4578 | read at_status <"$at_status_file" |
| 4579 | #AT_STOP_46 |
| 4580 | #AT_START_47 |
| 4581 | at_fn_group_banner 47 'anyof.at:39' \ |
| 4582 | "anyof 11" " " 3 |
| 4583 | at_xfail=no |
| 4584 | ( |
| 4585 | printf "%s\n" "47. $at_setup_line: testing $at_desc ..." |
| 4586 | $at_traceon |
| 4587 | |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | |
| 4592 | |
| 4593 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4594 | if test -e ./sieve.mbox; then |
| 4595 | |
| 4596 | # First, set all modes to +w |
| 4597 | find ./sieve.mbox | xargs chmod +w |
| 4598 | # Then, remove executable bit from regular files |
| 4599 | find ./sieve.mbox -type f | xargs chmod -x |
| 4600 | |
| 4601 | else |
| 4602 | |
| 4603 | # First, set all modes to +w |
| 4604 | find . | xargs chmod +w |
| 4605 | # Then, remove executable bit from regular files |
| 4606 | find . -type f | xargs chmod -x |
| 4607 | |
| 4608 | fi |
| 4609 | |
| 4610 | |
| 4611 | |
| 4612 | |
| 4613 | |
| 4614 | cat >prog <<'_ATEOF' |
| 4615 | |
| 4616 | if anyof(true,true) { |
| 4617 | discard; |
| 4618 | } |
| 4619 | |
| 4620 | _ATEOF |
| 4621 | |
| 4622 | { set +x |
| 4623 | printf "%s\n" "$at_srcdir/anyof.at:39: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4624 | " |
| 4625 | at_fn_check_prepare_notrace 'an embedded newline' "anyof.at:39" |
| 4626 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4627 | |
| 4628 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4629 | at_status=$? at_failed=false |
| 4630 | $at_check_filter |
| 4631 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 4632 | DISCARD on msg uid 2: marking as deleted |
| 4633 | DISCARD on msg uid 3: marking as deleted |
| 4634 | " | \ |
| 4635 | $at_diff - "$at_stderr" || at_failed=: |
| 4636 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4637 | at_fn_check_status 0 $at_status "$at_srcdir/anyof.at:39" |
| 4638 | $at_failed && at_fn_log_failure |
| 4639 | $at_traceon; } |
| 4640 | |
| 4641 | set +x |
| 4642 | $at_times_p && times >"$at_times_file" |
| 4643 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4644 | read at_status <"$at_status_file" |
| 4645 | #AT_STOP_47 |
| 4646 | #AT_START_48 |
| 4647 | at_fn_group_banner 48 'envelope.at:17' \ |
| 4648 | "envelope" " " 3 |
| 4649 | at_xfail=no |
| 4650 | ( |
| 4651 | printf "%s\n" "48. $at_setup_line: testing $at_desc ..." |
| 4652 | $at_traceon |
| 4653 | |
| 4654 | |
| 4655 | |
| 4656 | |
| 4657 | |
| 4658 | |
| 4659 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4660 | if test -e ./sieve.mbox; then |
| 4661 | |
| 4662 | # First, set all modes to +w |
| 4663 | find ./sieve.mbox | xargs chmod +w |
| 4664 | # Then, remove executable bit from regular files |
| 4665 | find ./sieve.mbox -type f | xargs chmod -x |
| 4666 | |
| 4667 | else |
| 4668 | |
| 4669 | # First, set all modes to +w |
| 4670 | find . | xargs chmod +w |
| 4671 | # Then, remove executable bit from regular files |
| 4672 | find . -type f | xargs chmod -x |
| 4673 | |
| 4674 | fi |
| 4675 | |
| 4676 | |
| 4677 | |
| 4678 | |
| 4679 | |
| 4680 | cat >prog <<'_ATEOF' |
| 4681 | |
| 4682 | if envelope "from" "[email protected]" { |
| 4683 | discard; |
| 4684 | } |
| 4685 | |
| 4686 | _ATEOF |
| 4687 | |
| 4688 | { set +x |
| 4689 | printf "%s\n" "$at_srcdir/envelope.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4690 | " |
| 4691 | at_fn_check_prepare_notrace 'an embedded newline' "envelope.at:17" |
| 4692 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4693 | |
| 4694 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4695 | at_status=$? at_failed=false |
| 4696 | $at_check_filter |
| 4697 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 4698 | IMPLICIT KEEP on msg uid 2 |
| 4699 | IMPLICIT KEEP on msg uid 3 |
| 4700 | " | \ |
| 4701 | $at_diff - "$at_stderr" || at_failed=: |
| 4702 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4703 | at_fn_check_status 0 $at_status "$at_srcdir/envelope.at:17" |
| 4704 | $at_failed && at_fn_log_failure |
| 4705 | $at_traceon; } |
| 4706 | |
| 4707 | set +x |
| 4708 | $at_times_p && times >"$at_times_file" |
| 4709 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4710 | read at_status <"$at_status_file" |
| 4711 | #AT_STOP_48 |
| 4712 | #AT_START_49 |
| 4713 | at_fn_group_banner 49 'exists.at:17' \ |
| 4714 | "exists: single header" " " 3 |
| 4715 | at_xfail=no |
| 4716 | ( |
| 4717 | printf "%s\n" "49. $at_setup_line: testing $at_desc ..." |
| 4718 | $at_traceon |
| 4719 | |
| 4720 | |
| 4721 | |
| 4722 | |
| 4723 | |
| 4724 | |
| 4725 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4726 | if test -e ./sieve.mbox; then |
| 4727 | |
| 4728 | # First, set all modes to +w |
| 4729 | find ./sieve.mbox | xargs chmod +w |
| 4730 | # Then, remove executable bit from regular files |
| 4731 | find ./sieve.mbox -type f | xargs chmod -x |
| 4732 | |
| 4733 | else |
| 4734 | |
| 4735 | # First, set all modes to +w |
| 4736 | find . | xargs chmod +w |
| 4737 | # Then, remove executable bit from regular files |
| 4738 | find . -type f | xargs chmod -x |
| 4739 | |
| 4740 | fi |
| 4741 | |
| 4742 | |
| 4743 | |
| 4744 | |
| 4745 | |
| 4746 | cat >prog <<'_ATEOF' |
| 4747 | |
| 4748 | if exists "X-Caffeine" { |
| 4749 | discard; |
| 4750 | } |
| 4751 | |
| 4752 | _ATEOF |
| 4753 | |
| 4754 | { set +x |
| 4755 | printf "%s\n" "$at_srcdir/exists.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4756 | " |
| 4757 | at_fn_check_prepare_notrace 'an embedded newline' "exists.at:17" |
| 4758 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4759 | |
| 4760 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4761 | at_status=$? at_failed=false |
| 4762 | $at_check_filter |
| 4763 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 4764 | IMPLICIT KEEP on msg uid 2 |
| 4765 | IMPLICIT KEEP on msg uid 3 |
| 4766 | " | \ |
| 4767 | $at_diff - "$at_stderr" || at_failed=: |
| 4768 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4769 | at_fn_check_status 0 $at_status "$at_srcdir/exists.at:17" |
| 4770 | $at_failed && at_fn_log_failure |
| 4771 | $at_traceon; } |
| 4772 | |
| 4773 | set +x |
| 4774 | $at_times_p && times >"$at_times_file" |
| 4775 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4776 | read at_status <"$at_status_file" |
| 4777 | #AT_STOP_49 |
| 4778 | #AT_START_50 |
| 4779 | at_fn_group_banner 50 'exists.at:28' \ |
| 4780 | "exists: array" " " 3 |
| 4781 | at_xfail=no |
| 4782 | ( |
| 4783 | printf "%s\n" "50. $at_setup_line: testing $at_desc ..." |
| 4784 | $at_traceon |
| 4785 | |
| 4786 | |
| 4787 | |
| 4788 | |
| 4789 | |
| 4790 | |
| 4791 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4792 | if test -e ./sieve.mbox; then |
| 4793 | |
| 4794 | # First, set all modes to +w |
| 4795 | find ./sieve.mbox | xargs chmod +w |
| 4796 | # Then, remove executable bit from regular files |
| 4797 | find ./sieve.mbox -type f | xargs chmod -x |
| 4798 | |
| 4799 | else |
| 4800 | |
| 4801 | # First, set all modes to +w |
| 4802 | find . | xargs chmod +w |
| 4803 | # Then, remove executable bit from regular files |
| 4804 | find . -type f | xargs chmod -x |
| 4805 | |
| 4806 | fi |
| 4807 | |
| 4808 | |
| 4809 | |
| 4810 | |
| 4811 | |
| 4812 | cat >prog <<'_ATEOF' |
| 4813 | |
| 4814 | if exists ["X-Caffeine", "From"] { |
| 4815 | discard; |
| 4816 | } |
| 4817 | |
| 4818 | _ATEOF |
| 4819 | |
| 4820 | { set +x |
| 4821 | printf "%s\n" "$at_srcdir/exists.at:28: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4822 | " |
| 4823 | at_fn_check_prepare_notrace 'an embedded newline' "exists.at:28" |
| 4824 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4825 | |
| 4826 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4827 | at_status=$? at_failed=false |
| 4828 | $at_check_filter |
| 4829 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 4830 | IMPLICIT KEEP on msg uid 2 |
| 4831 | IMPLICIT KEEP on msg uid 3 |
| 4832 | " | \ |
| 4833 | $at_diff - "$at_stderr" || at_failed=: |
| 4834 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4835 | at_fn_check_status 0 $at_status "$at_srcdir/exists.at:28" |
| 4836 | $at_failed && at_fn_log_failure |
| 4837 | $at_traceon; } |
| 4838 | |
| 4839 | set +x |
| 4840 | $at_times_p && times >"$at_times_file" |
| 4841 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4842 | read at_status <"$at_status_file" |
| 4843 | #AT_STOP_50 |
| 4844 | #AT_START_51 |
| 4845 | at_fn_group_banner 51 'exists.at:39' \ |
| 4846 | "exists: array 2" " " 3 |
| 4847 | at_xfail=no |
| 4848 | ( |
| 4849 | printf "%s\n" "51. $at_setup_line: testing $at_desc ..." |
| 4850 | $at_traceon |
| 4851 | |
| 4852 | |
| 4853 | |
| 4854 | |
| 4855 | |
| 4856 | |
| 4857 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4858 | if test -e ./sieve.mbox; then |
| 4859 | |
| 4860 | # First, set all modes to +w |
| 4861 | find ./sieve.mbox | xargs chmod +w |
| 4862 | # Then, remove executable bit from regular files |
| 4863 | find ./sieve.mbox -type f | xargs chmod -x |
| 4864 | |
| 4865 | else |
| 4866 | |
| 4867 | # First, set all modes to +w |
| 4868 | find . | xargs chmod +w |
| 4869 | # Then, remove executable bit from regular files |
| 4870 | find . -type f | xargs chmod -x |
| 4871 | |
| 4872 | fi |
| 4873 | |
| 4874 | |
| 4875 | |
| 4876 | |
| 4877 | |
| 4878 | cat >prog <<'_ATEOF' |
| 4879 | |
| 4880 | if exists ["X-Caffeine", "X-Status"] { |
| 4881 | discard; |
| 4882 | } |
| 4883 | |
| 4884 | _ATEOF |
| 4885 | |
| 4886 | { set +x |
| 4887 | printf "%s\n" "$at_srcdir/exists.at:39: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4888 | " |
| 4889 | at_fn_check_prepare_notrace 'an embedded newline' "exists.at:39" |
| 4890 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4891 | |
| 4892 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4893 | at_status=$? at_failed=false |
| 4894 | $at_check_filter |
| 4895 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 4896 | IMPLICIT KEEP on msg uid 2 |
| 4897 | IMPLICIT KEEP on msg uid 3 |
| 4898 | " | \ |
| 4899 | $at_diff - "$at_stderr" || at_failed=: |
| 4900 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4901 | at_fn_check_status 0 $at_status "$at_srcdir/exists.at:39" |
| 4902 | $at_failed && at_fn_log_failure |
| 4903 | $at_traceon; } |
| 4904 | |
| 4905 | set +x |
| 4906 | $at_times_p && times >"$at_times_file" |
| 4907 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4908 | read at_status <"$at_status_file" |
| 4909 | #AT_STOP_51 |
| 4910 | #AT_START_52 |
| 4911 | at_fn_group_banner 52 'header.at:17' \ |
| 4912 | "header :is" " " 3 |
| 4913 | at_xfail=no |
| 4914 | ( |
| 4915 | printf "%s\n" "52. $at_setup_line: testing $at_desc ..." |
| 4916 | $at_traceon |
| 4917 | |
| 4918 | |
| 4919 | |
| 4920 | |
| 4921 | |
| 4922 | |
| 4923 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4924 | if test -e ./sieve.mbox; then |
| 4925 | |
| 4926 | # First, set all modes to +w |
| 4927 | find ./sieve.mbox | xargs chmod +w |
| 4928 | # Then, remove executable bit from regular files |
| 4929 | find ./sieve.mbox -type f | xargs chmod -x |
| 4930 | |
| 4931 | else |
| 4932 | |
| 4933 | # First, set all modes to +w |
| 4934 | find . | xargs chmod +w |
| 4935 | # Then, remove executable bit from regular files |
| 4936 | find . -type f | xargs chmod -x |
| 4937 | |
| 4938 | fi |
| 4939 | |
| 4940 | |
| 4941 | |
| 4942 | |
| 4943 | |
| 4944 | cat >prog <<'_ATEOF' |
| 4945 | |
| 4946 | if header :is "X-Caffeine" "C8H10N4O2" { |
| 4947 | discard; |
| 4948 | } |
| 4949 | |
| 4950 | _ATEOF |
| 4951 | |
| 4952 | { set +x |
| 4953 | printf "%s\n" "$at_srcdir/header.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4954 | " |
| 4955 | at_fn_check_prepare_notrace 'an embedded newline' "header.at:17" |
| 4956 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 4957 | |
| 4958 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4959 | at_status=$? at_failed=false |
| 4960 | $at_check_filter |
| 4961 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 4962 | IMPLICIT KEEP on msg uid 2 |
| 4963 | IMPLICIT KEEP on msg uid 3 |
| 4964 | " | \ |
| 4965 | $at_diff - "$at_stderr" || at_failed=: |
| 4966 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4967 | at_fn_check_status 0 $at_status "$at_srcdir/header.at:17" |
| 4968 | $at_failed && at_fn_log_failure |
| 4969 | $at_traceon; } |
| 4970 | |
| 4971 | set +x |
| 4972 | $at_times_p && times >"$at_times_file" |
| 4973 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4974 | read at_status <"$at_status_file" |
| 4975 | #AT_STOP_52 |
| 4976 | #AT_START_53 |
| 4977 | at_fn_group_banner 53 'header.at:28' \ |
| 4978 | "header arrays" " " 3 |
| 4979 | at_xfail=no |
| 4980 | ( |
| 4981 | printf "%s\n" "53. $at_setup_line: testing $at_desc ..." |
| 4982 | $at_traceon |
| 4983 | |
| 4984 | |
| 4985 | |
| 4986 | |
| 4987 | |
| 4988 | |
| 4989 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 4990 | if test -e ./sieve.mbox; then |
| 4991 | |
| 4992 | # First, set all modes to +w |
| 4993 | find ./sieve.mbox | xargs chmod +w |
| 4994 | # Then, remove executable bit from regular files |
| 4995 | find ./sieve.mbox -type f | xargs chmod -x |
| 4996 | |
| 4997 | else |
| 4998 | |
| 4999 | # First, set all modes to +w |
| 5000 | find . | xargs chmod +w |
| 5001 | # Then, remove executable bit from regular files |
| 5002 | find . -type f | xargs chmod -x |
| 5003 | |
| 5004 | fi |
| 5005 | |
| 5006 | |
| 5007 | |
| 5008 | |
| 5009 | |
| 5010 | cat >prog <<'_ATEOF' |
| 5011 | |
| 5012 | if header ["X-Caffeine","Subject"] ["C8H10N4O2","Coffee"] { |
| 5013 | discard; |
| 5014 | } |
| 5015 | |
| 5016 | _ATEOF |
| 5017 | |
| 5018 | { set +x |
| 5019 | printf "%s\n" "$at_srcdir/header.at:28: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5020 | " |
| 5021 | at_fn_check_prepare_notrace 'an embedded newline' "header.at:28" |
| 5022 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5023 | |
| 5024 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5025 | at_status=$? at_failed=false |
| 5026 | $at_check_filter |
| 5027 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 5028 | IMPLICIT KEEP on msg uid 2 |
| 5029 | DISCARD on msg uid 3: marking as deleted |
| 5030 | " | \ |
| 5031 | $at_diff - "$at_stderr" || at_failed=: |
| 5032 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5033 | at_fn_check_status 0 $at_status "$at_srcdir/header.at:28" |
| 5034 | $at_failed && at_fn_log_failure |
| 5035 | $at_traceon; } |
| 5036 | |
| 5037 | set +x |
| 5038 | $at_times_p && times >"$at_times_file" |
| 5039 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5040 | read at_status <"$at_status_file" |
| 5041 | #AT_STOP_53 |
| 5042 | #AT_START_54 |
| 5043 | at_fn_group_banner 54 'header.at:39' \ |
| 5044 | "header :matches" " " 3 |
| 5045 | at_xfail=no |
| 5046 | ( |
| 5047 | printf "%s\n" "54. $at_setup_line: testing $at_desc ..." |
| 5048 | $at_traceon |
| 5049 | |
| 5050 | |
| 5051 | |
| 5052 | |
| 5053 | |
| 5054 | |
| 5055 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 5056 | if test -e ./sieve.mbox; then |
| 5057 | |
| 5058 | # First, set all modes to +w |
| 5059 | find ./sieve.mbox | xargs chmod +w |
| 5060 | # Then, remove executable bit from regular files |
| 5061 | find ./sieve.mbox -type f | xargs chmod -x |
| 5062 | |
| 5063 | else |
| 5064 | |
| 5065 | # First, set all modes to +w |
| 5066 | find . | xargs chmod +w |
| 5067 | # Then, remove executable bit from regular files |
| 5068 | find . -type f | xargs chmod -x |
| 5069 | |
| 5070 | fi |
| 5071 | |
| 5072 | |
| 5073 | |
| 5074 | |
| 5075 | |
| 5076 | cat >prog <<'_ATEOF' |
| 5077 | |
| 5078 | if header :matches "Subject" "*$$$*" { |
| 5079 | discard; |
| 5080 | } |
| 5081 | |
| 5082 | _ATEOF |
| 5083 | |
| 5084 | { set +x |
| 5085 | printf "%s\n" "$at_srcdir/header.at:39: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5086 | " |
| 5087 | at_fn_check_prepare_notrace 'an embedded newline' "header.at:39" |
| 5088 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5089 | |
| 5090 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5091 | at_status=$? at_failed=false |
| 5092 | $at_check_filter |
| 5093 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 5094 | DISCARD on msg uid 2: marking as deleted |
| 5095 | IMPLICIT KEEP on msg uid 3 |
| 5096 | " | \ |
| 5097 | $at_diff - "$at_stderr" || at_failed=: |
| 5098 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5099 | at_fn_check_status 0 $at_status "$at_srcdir/header.at:39" |
| 5100 | $at_failed && at_fn_log_failure |
| 5101 | $at_traceon; } |
| 5102 | |
| 5103 | set +x |
| 5104 | $at_times_p && times >"$at_times_file" |
| 5105 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5106 | read at_status <"$at_status_file" |
| 5107 | #AT_STOP_54 |
| 5108 | #AT_START_55 |
| 5109 | at_fn_group_banner 55 'header.at:51' \ |
| 5110 | "header :mime" " " 3 |
| 5111 | at_xfail=no |
| 5112 | ( |
| 5113 | printf "%s\n" "55. $at_setup_line: testing $at_desc ..." |
| 5114 | $at_traceon |
| 5115 | |
| 5116 | |
| 5117 | |
| 5118 | |
| 5119 | |
| 5120 | |
| 5121 | cp -r $abs_top_srcdir/testsuite/spool/mbox1 . |
| 5122 | if test -e ./mbox1; then |
| 5123 | |
| 5124 | # First, set all modes to +w |
| 5125 | find ./mbox1 | xargs chmod +w |
| 5126 | # Then, remove executable bit from regular files |
| 5127 | find ./mbox1 -type f | xargs chmod -x |
| 5128 | |
| 5129 | else |
| 5130 | |
| 5131 | # First, set all modes to +w |
| 5132 | find . | xargs chmod +w |
| 5133 | # Then, remove executable bit from regular files |
| 5134 | find . -type f | xargs chmod -x |
| 5135 | |
| 5136 | fi |
| 5137 | |
| 5138 | |
| 5139 | |
| 5140 | |
| 5141 | |
| 5142 | cat >prog <<'_ATEOF' |
| 5143 | |
| 5144 | if header :mime :is "Content-Description" "How doth" { |
| 5145 | discard; |
| 5146 | } |
| 5147 | |
| 5148 | _ATEOF |
| 5149 | |
| 5150 | { set +x |
| 5151 | printf "%s\n" "$at_srcdir/header.at:51: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./mbox1 prog |
| 5152 | " |
| 5153 | at_fn_check_prepare_notrace 'an embedded newline' "header.at:51" |
| 5154 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./mbox1 prog |
| 5155 | |
| 5156 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5157 | at_status=$? at_failed=false |
| 5158 | $at_check_filter |
| 5159 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 5160 | IMPLICIT KEEP on msg uid 2 |
| 5161 | DISCARD on msg uid 3: marking as deleted |
| 5162 | IMPLICIT KEEP on msg uid 4 |
| 5163 | IMPLICIT KEEP on msg uid 5 |
| 5164 | " | \ |
| 5165 | $at_diff - "$at_stderr" || at_failed=: |
| 5166 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5167 | at_fn_check_status 0 $at_status "$at_srcdir/header.at:51" |
| 5168 | $at_failed && at_fn_log_failure |
| 5169 | $at_traceon; } |
| 5170 | |
| 5171 | set +x |
| 5172 | $at_times_p && times >"$at_times_file" |
| 5173 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5174 | read at_status <"$at_status_file" |
| 5175 | #AT_STOP_55 |
| 5176 | #AT_START_56 |
| 5177 | at_fn_group_banner 56 'relational.at:21' \ |
| 5178 | "relational address" " " 3 |
| 5179 | at_xfail=no |
| 5180 | ( |
| 5181 | printf "%s\n" "56. $at_setup_line: testing $at_desc ..." |
| 5182 | $at_traceon |
| 5183 | |
| 5184 | |
| 5185 | |
| 5186 | |
| 5187 | |
| 5188 | |
| 5189 | cp -r $abs_top_srcdir/testsuite/spool/relational.mbox . |
| 5190 | if test -e ./relational.mbox; then |
| 5191 | |
| 5192 | # First, set all modes to +w |
| 5193 | find ./relational.mbox | xargs chmod +w |
| 5194 | # Then, remove executable bit from regular files |
| 5195 | find ./relational.mbox -type f | xargs chmod -x |
| 5196 | |
| 5197 | else |
| 5198 | |
| 5199 | # First, set all modes to +w |
| 5200 | find . | xargs chmod +w |
| 5201 | # Then, remove executable bit from regular files |
| 5202 | find . -type f | xargs chmod -x |
| 5203 | |
| 5204 | fi |
| 5205 | |
| 5206 | |
| 5207 | |
| 5208 | |
| 5209 | |
| 5210 | cat >prog <<'_ATEOF' |
| 5211 | |
| 5212 | require ["relational", "comparator-i;ascii-numeric"]; |
| 5213 | |
| 5214 | if address :count "ge" :comparator "i;ascii-numeric" ["to", "cc"] ["3"] |
| 5215 | { |
| 5216 | discard; |
| 5217 | } |
| 5218 | |
| 5219 | _ATEOF |
| 5220 | |
| 5221 | { set +x |
| 5222 | printf "%s\n" "$at_srcdir/relational.at:21: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --set \":mailbox:folder=\`pwd\`\" --set \":mailbox:mailbox-pattern=\`pwd\`/\"'\${user}' -f ./relational.mbox prog |
| 5223 | " |
| 5224 | at_fn_check_prepare_notrace 'a `...` command substitution' "relational.at:21" |
| 5225 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --set ":mailbox:folder=`pwd`" --set ":mailbox:mailbox-pattern=`pwd`/"'${user}' -f ./relational.mbox prog |
| 5226 | |
| 5227 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5228 | at_status=$? at_failed=false |
| 5229 | $at_check_filter |
| 5230 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 5231 | IMPLICIT KEEP on msg uid 2 |
| 5232 | IMPLICIT KEEP on msg uid 3 |
| 5233 | IMPLICIT KEEP on msg uid 4 |
| 5234 | IMPLICIT KEEP on msg uid 5 |
| 5235 | IMPLICIT KEEP on msg uid 6 |
| 5236 | IMPLICIT KEEP on msg uid 7 |
| 5237 | IMPLICIT KEEP on msg uid 8 |
| 5238 | DISCARD on msg uid 9: marking as deleted |
| 5239 | " | \ |
| 5240 | $at_diff - "$at_stderr" || at_failed=: |
| 5241 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5242 | at_fn_check_status 0 $at_status "$at_srcdir/relational.at:21" |
| 5243 | $at_failed && at_fn_log_failure |
| 5244 | $at_traceon; } |
| 5245 | |
| 5246 | set +x |
| 5247 | $at_times_p && times >"$at_times_file" |
| 5248 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5249 | read at_status <"$at_status_file" |
| 5250 | #AT_STOP_56 |
| 5251 | #AT_START_57 |
| 5252 | at_fn_group_banner 57 'relational.at:41' \ |
| 5253 | "relational header" " " 3 |
| 5254 | at_xfail=no |
| 5255 | ( |
| 5256 | printf "%s\n" "57. $at_setup_line: testing $at_desc ..." |
| 5257 | $at_traceon |
| 5258 | |
| 5259 | |
| 5260 | |
| 5261 | |
| 5262 | |
| 5263 | |
| 5264 | cp -r $abs_top_srcdir/testsuite/spool/relational.mbox . |
| 5265 | if test -e ./relational.mbox; then |
| 5266 | |
| 5267 | # First, set all modes to +w |
| 5268 | find ./relational.mbox | xargs chmod +w |
| 5269 | # Then, remove executable bit from regular files |
| 5270 | find ./relational.mbox -type f | xargs chmod -x |
| 5271 | |
| 5272 | else |
| 5273 | |
| 5274 | # First, set all modes to +w |
| 5275 | find . | xargs chmod +w |
| 5276 | # Then, remove executable bit from regular files |
| 5277 | find . -type f | xargs chmod -x |
| 5278 | |
| 5279 | fi |
| 5280 | |
| 5281 | |
| 5282 | |
| 5283 | |
| 5284 | |
| 5285 | cat >prog <<'_ATEOF' |
| 5286 | |
| 5287 | require ["relational", "comparator-i;ascii-numeric"]; |
| 5288 | |
| 5289 | if header :count "gt" ["received"] ["2"] |
| 5290 | { |
| 5291 | discard; |
| 5292 | } |
| 5293 | |
| 5294 | _ATEOF |
| 5295 | |
| 5296 | { set +x |
| 5297 | printf "%s\n" "$at_srcdir/relational.at:41: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --set \":mailbox:folder=\`pwd\`\" --set \":mailbox:mailbox-pattern=\`pwd\`/\"'\${user}' -f ./relational.mbox prog |
| 5298 | " |
| 5299 | at_fn_check_prepare_notrace 'a `...` command substitution' "relational.at:41" |
| 5300 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --set ":mailbox:folder=`pwd`" --set ":mailbox:mailbox-pattern=`pwd`/"'${user}' -f ./relational.mbox prog |
| 5301 | |
| 5302 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5303 | at_status=$? at_failed=false |
| 5304 | $at_check_filter |
| 5305 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 5306 | IMPLICIT KEEP on msg uid 2 |
| 5307 | IMPLICIT KEEP on msg uid 3 |
| 5308 | IMPLICIT KEEP on msg uid 4 |
| 5309 | IMPLICIT KEEP on msg uid 5 |
| 5310 | IMPLICIT KEEP on msg uid 6 |
| 5311 | IMPLICIT KEEP on msg uid 7 |
| 5312 | IMPLICIT KEEP on msg uid 8 |
| 5313 | DISCARD on msg uid 9: marking as deleted |
| 5314 | " | \ |
| 5315 | $at_diff - "$at_stderr" || at_failed=: |
| 5316 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5317 | at_fn_check_status 0 $at_status "$at_srcdir/relational.at:41" |
| 5318 | $at_failed && at_fn_log_failure |
| 5319 | $at_traceon; } |
| 5320 | |
| 5321 | set +x |
| 5322 | $at_times_p && times >"$at_times_file" |
| 5323 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5324 | read at_status <"$at_status_file" |
| 5325 | #AT_STOP_57 |
| 5326 | #AT_START_58 |
| 5327 | at_fn_group_banner 58 'relational.at:63' \ |
| 5328 | "relational big test" " " 3 |
| 5329 | at_xfail=no |
| 5330 | ( |
| 5331 | printf "%s\n" "58. $at_setup_line: testing $at_desc ..." |
| 5332 | $at_traceon |
| 5333 | |
| 5334 | |
| 5335 | |
| 5336 | |
| 5337 | |
| 5338 | |
| 5339 | cp -r $abs_top_srcdir/testsuite/spool/relational.mbox . |
| 5340 | if test -e ./relational.mbox; then |
| 5341 | |
| 5342 | # First, set all modes to +w |
| 5343 | find ./relational.mbox | xargs chmod +w |
| 5344 | # Then, remove executable bit from regular files |
| 5345 | find ./relational.mbox -type f | xargs chmod -x |
| 5346 | |
| 5347 | else |
| 5348 | |
| 5349 | # First, set all modes to +w |
| 5350 | find . | xargs chmod +w |
| 5351 | # Then, remove executable bit from regular files |
| 5352 | find . -type f | xargs chmod -x |
| 5353 | |
| 5354 | fi |
| 5355 | |
| 5356 | |
| 5357 | |
| 5358 | |
| 5359 | |
| 5360 | cat >prog <<'_ATEOF' |
| 5361 | |
| 5362 | require ["relational", "comparator-i;ascii-numeric", "fileinto"]; |
| 5363 | |
| 5364 | if header :value "lt" :comparator "i;ascii-numeric" ["x-priority"] ["3"] |
| 5365 | { |
| 5366 | fileinto "%Priority"; |
| 5367 | } |
| 5368 | elsif address :count "gt" :comparator "i;ascii-numeric" ["to"] ["5"] |
| 5369 | { |
| 5370 | # everything with more than 5 recipients in the "to" field |
| 5371 | # is considered SPAM |
| 5372 | fileinto "%SPAM"; |
| 5373 | } |
| 5374 | elsif address :value "gt" :all :comparator "i;ascii-casemap" ["from"] ["M"] |
| 5375 | { |
| 5376 | fileinto "%From_N-Z"; |
| 5377 | } |
| 5378 | else |
| 5379 | { |
| 5380 | fileinto "%From_A-M"; |
| 5381 | } |
| 5382 | |
| 5383 | if allof (address :count "eq" :comparator "i;ascii-numeric" |
| 5384 | ["to", "cc"] ["1"] , |
| 5385 | address :all :comparator "i;ascii-casemap" |
| 5386 | ["to", "cc"] ["[email protected]"]) |
| 5387 | { |
| 5388 | fileinto "%Only_me"; |
| 5389 | } |
| 5390 | |
| 5391 | _ATEOF |
| 5392 | |
| 5393 | { set +x |
| 5394 | printf "%s\n" "$at_srcdir/relational.at:63: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --set \":mailbox:folder=\`pwd\`\" --set \":mailbox:mailbox-pattern=\`pwd\`/\"'\${user}' -f ./relational.mbox prog |
| 5395 | |
| 5396 | test -f \"From_A-M\" || echo \"From_A-M missing\" |
| 5397 | test -f \"From_N-Z\" || echo \"From_N-Z missing\" |
| 5398 | test -f \"Priority\" || echo \"Priority missing\" |
| 5399 | test -f \"Only_me\" || echo \"Only_me missing\" |
| 5400 | test -f \"SPAM\" || echo \"SPAM missing\" |
| 5401 | " |
| 5402 | at_fn_check_prepare_notrace 'a `...` command substitution' "relational.at:63" |
| 5403 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --set ":mailbox:folder=`pwd`" --set ":mailbox:mailbox-pattern=`pwd`/"'${user}' -f ./relational.mbox prog |
| 5404 | |
| 5405 | test -f "From_A-M" || echo "From_A-M missing" |
| 5406 | test -f "From_N-Z" || echo "From_N-Z missing" |
| 5407 | test -f "Priority" || echo "Priority missing" |
| 5408 | test -f "Only_me" || echo "Only_me missing" |
| 5409 | test -f "SPAM" || echo "SPAM missing" |
| 5410 | |
| 5411 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5412 | at_status=$? at_failed=false |
| 5413 | $at_check_filter |
| 5414 | echo >>"$at_stderr"; printf "%s\n" "FILEINTO on msg uid 1: delivering into %From_A-M |
| 5415 | FILEINTO on msg uid 2: delivering into %From_N-Z |
| 5416 | FILEINTO on msg uid 3: delivering into %Priority |
| 5417 | FILEINTO on msg uid 4: delivering into %Priority |
| 5418 | FILEINTO on msg uid 5: delivering into %Priority |
| 5419 | FILEINTO on msg uid 6: delivering into %From_A-M |
| 5420 | FILEINTO on msg uid 7: delivering into %From_A-M |
| 5421 | FILEINTO on msg uid 8: delivering into %From_A-M |
| 5422 | FILEINTO on msg uid 8: delivering into %Only_me |
| 5423 | FILEINTO on msg uid 9: delivering into %SPAM |
| 5424 | " | \ |
| 5425 | $at_diff - "$at_stderr" || at_failed=: |
| 5426 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5427 | at_fn_check_status 0 $at_status "$at_srcdir/relational.at:63" |
| 5428 | $at_failed && at_fn_log_failure |
| 5429 | $at_traceon; } |
| 5430 | |
| 5431 | set +x |
| 5432 | $at_times_p && times >"$at_times_file" |
| 5433 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5434 | read at_status <"$at_status_file" |
| 5435 | #AT_STOP_58 |
| 5436 | #AT_START_59 |
| 5437 | at_fn_group_banner 59 'size.at:17' \ |
| 5438 | "size :under" " " 3 |
| 5439 | at_xfail=no |
| 5440 | ( |
| 5441 | printf "%s\n" "59. $at_setup_line: testing $at_desc ..." |
| 5442 | $at_traceon |
| 5443 | |
| 5444 | |
| 5445 | |
| 5446 | |
| 5447 | |
| 5448 | |
| 5449 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 5450 | if test -e ./sieve.mbox; then |
| 5451 | |
| 5452 | # First, set all modes to +w |
| 5453 | find ./sieve.mbox | xargs chmod +w |
| 5454 | # Then, remove executable bit from regular files |
| 5455 | find ./sieve.mbox -type f | xargs chmod -x |
| 5456 | |
| 5457 | else |
| 5458 | |
| 5459 | # First, set all modes to +w |
| 5460 | find . | xargs chmod +w |
| 5461 | # Then, remove executable bit from regular files |
| 5462 | find . -type f | xargs chmod -x |
| 5463 | |
| 5464 | fi |
| 5465 | |
| 5466 | |
| 5467 | |
| 5468 | |
| 5469 | |
| 5470 | cat >prog <<'_ATEOF' |
| 5471 | |
| 5472 | if size :under 400 { |
| 5473 | discard; |
| 5474 | } |
| 5475 | |
| 5476 | _ATEOF |
| 5477 | |
| 5478 | { set +x |
| 5479 | printf "%s\n" "$at_srcdir/size.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5480 | " |
| 5481 | at_fn_check_prepare_notrace 'an embedded newline' "size.at:17" |
| 5482 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5483 | |
| 5484 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5485 | at_status=$? at_failed=false |
| 5486 | $at_check_filter |
| 5487 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 5488 | IMPLICIT KEEP on msg uid 2 |
| 5489 | DISCARD on msg uid 3: marking as deleted |
| 5490 | " | \ |
| 5491 | $at_diff - "$at_stderr" || at_failed=: |
| 5492 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5493 | at_fn_check_status 0 $at_status "$at_srcdir/size.at:17" |
| 5494 | $at_failed && at_fn_log_failure |
| 5495 | $at_traceon; } |
| 5496 | |
| 5497 | set +x |
| 5498 | $at_times_p && times >"$at_times_file" |
| 5499 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5500 | read at_status <"$at_status_file" |
| 5501 | #AT_STOP_59 |
| 5502 | #AT_START_60 |
| 5503 | at_fn_group_banner 60 'size.at:28' \ |
| 5504 | "size :over" " " 3 |
| 5505 | at_xfail=no |
| 5506 | ( |
| 5507 | printf "%s\n" "60. $at_setup_line: testing $at_desc ..." |
| 5508 | $at_traceon |
| 5509 | |
| 5510 | |
| 5511 | |
| 5512 | |
| 5513 | |
| 5514 | |
| 5515 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 5516 | if test -e ./sieve.mbox; then |
| 5517 | |
| 5518 | # First, set all modes to +w |
| 5519 | find ./sieve.mbox | xargs chmod +w |
| 5520 | # Then, remove executable bit from regular files |
| 5521 | find ./sieve.mbox -type f | xargs chmod -x |
| 5522 | |
| 5523 | else |
| 5524 | |
| 5525 | # First, set all modes to +w |
| 5526 | find . | xargs chmod +w |
| 5527 | # Then, remove executable bit from regular files |
| 5528 | find . -type f | xargs chmod -x |
| 5529 | |
| 5530 | fi |
| 5531 | |
| 5532 | |
| 5533 | |
| 5534 | |
| 5535 | |
| 5536 | cat >prog <<'_ATEOF' |
| 5537 | |
| 5538 | if size :over 500 { |
| 5539 | discard; |
| 5540 | } |
| 5541 | |
| 5542 | _ATEOF |
| 5543 | |
| 5544 | { set +x |
| 5545 | printf "%s\n" "$at_srcdir/size.at:28: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5546 | " |
| 5547 | at_fn_check_prepare_notrace 'an embedded newline' "size.at:28" |
| 5548 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5549 | |
| 5550 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5551 | at_status=$? at_failed=false |
| 5552 | $at_check_filter |
| 5553 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 5554 | DISCARD on msg uid 2: marking as deleted |
| 5555 | IMPLICIT KEEP on msg uid 3 |
| 5556 | " | \ |
| 5557 | $at_diff - "$at_stderr" || at_failed=: |
| 5558 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5559 | at_fn_check_status 0 $at_status "$at_srcdir/size.at:28" |
| 5560 | $at_failed && at_fn_log_failure |
| 5561 | $at_traceon; } |
| 5562 | |
| 5563 | set +x |
| 5564 | $at_times_p && times >"$at_times_file" |
| 5565 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5566 | read at_status <"$at_status_file" |
| 5567 | #AT_STOP_60 |
| 5568 | #AT_START_61 |
| 5569 | at_fn_group_banner 61 'mul-addr.at:18' \ |
| 5570 | "multiple addresses" " " 3 |
| 5571 | at_xfail=no |
| 5572 | ( |
| 5573 | printf "%s\n" "61. $at_setup_line: testing $at_desc ..." |
| 5574 | $at_traceon |
| 5575 | |
| 5576 | |
| 5577 | |
| 5578 | |
| 5579 | |
| 5580 | |
| 5581 | cp -r $abs_top_srcdir/testsuite/spool/relational.mbox . |
| 5582 | if test -e ./relational.mbox; then |
| 5583 | |
| 5584 | # First, set all modes to +w |
| 5585 | find ./relational.mbox | xargs chmod +w |
| 5586 | # Then, remove executable bit from regular files |
| 5587 | find ./relational.mbox -type f | xargs chmod -x |
| 5588 | |
| 5589 | else |
| 5590 | |
| 5591 | # First, set all modes to +w |
| 5592 | find . | xargs chmod +w |
| 5593 | # Then, remove executable bit from regular files |
| 5594 | find . -type f | xargs chmod -x |
| 5595 | |
| 5596 | fi |
| 5597 | |
| 5598 | |
| 5599 | |
| 5600 | |
| 5601 | |
| 5602 | cat >prog <<'_ATEOF' |
| 5603 | |
| 5604 | if address :localpart :is ["To", "Cc"] [ "foo", "oof" ] |
| 5605 | { |
| 5606 | discard; |
| 5607 | } |
| 5608 | |
| 5609 | _ATEOF |
| 5610 | |
| 5611 | { set +x |
| 5612 | printf "%s\n" "$at_srcdir/mul-addr.at:18: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./relational.mbox prog |
| 5613 | " |
| 5614 | at_fn_check_prepare_notrace 'an embedded newline' "mul-addr.at:18" |
| 5615 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./relational.mbox prog |
| 5616 | |
| 5617 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5618 | at_status=$? at_failed=false |
| 5619 | $at_check_filter |
| 5620 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 5621 | DISCARD on msg uid 2: marking as deleted |
| 5622 | DISCARD on msg uid 3: marking as deleted |
| 5623 | DISCARD on msg uid 4: marking as deleted |
| 5624 | DISCARD on msg uid 5: marking as deleted |
| 5625 | DISCARD on msg uid 6: marking as deleted |
| 5626 | DISCARD on msg uid 7: marking as deleted |
| 5627 | IMPLICIT KEEP on msg uid 8 |
| 5628 | DISCARD on msg uid 9: marking as deleted |
| 5629 | " | \ |
| 5630 | $at_diff - "$at_stderr" || at_failed=: |
| 5631 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5632 | at_fn_check_status 0 $at_status "$at_srcdir/mul-addr.at:18" |
| 5633 | $at_failed && at_fn_log_failure |
| 5634 | $at_traceon; } |
| 5635 | |
| 5636 | set +x |
| 5637 | $at_times_p && times >"$at_times_file" |
| 5638 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5639 | read at_status <"$at_status_file" |
| 5640 | #AT_STOP_61 |
| 5641 | #AT_START_62 |
| 5642 | at_fn_group_banner 62 'i-casemap.at:17' \ |
| 5643 | "i-casemap :is" " " 4 |
| 5644 | at_xfail=no |
| 5645 | ( |
| 5646 | printf "%s\n" "62. $at_setup_line: testing $at_desc ..." |
| 5647 | $at_traceon |
| 5648 | |
| 5649 | |
| 5650 | |
| 5651 | |
| 5652 | |
| 5653 | |
| 5654 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 5655 | if test -e ./sieve.mbox; then |
| 5656 | |
| 5657 | # First, set all modes to +w |
| 5658 | find ./sieve.mbox | xargs chmod +w |
| 5659 | # Then, remove executable bit from regular files |
| 5660 | find ./sieve.mbox -type f | xargs chmod -x |
| 5661 | |
| 5662 | else |
| 5663 | |
| 5664 | # First, set all modes to +w |
| 5665 | find . | xargs chmod +w |
| 5666 | # Then, remove executable bit from regular files |
| 5667 | find . -type f | xargs chmod -x |
| 5668 | |
| 5669 | fi |
| 5670 | |
| 5671 | |
| 5672 | |
| 5673 | |
| 5674 | |
| 5675 | cat >prog <<'_ATEOF' |
| 5676 | |
| 5677 | require "comparator-i;ascii-casemap"; |
| 5678 | |
| 5679 | if header :comparator "i;ascii-casemap" :is "to" "[email protected]" |
| 5680 | { |
| 5681 | discard; |
| 5682 | } |
| 5683 | |
| 5684 | _ATEOF |
| 5685 | |
| 5686 | { set +x |
| 5687 | printf "%s\n" "$at_srcdir/i-casemap.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5688 | " |
| 5689 | at_fn_check_prepare_notrace 'an embedded newline' "i-casemap.at:17" |
| 5690 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5691 | |
| 5692 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5693 | at_status=$? at_failed=false |
| 5694 | $at_check_filter |
| 5695 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 5696 | IMPLICIT KEEP on msg uid 2 |
| 5697 | IMPLICIT KEEP on msg uid 3 |
| 5698 | " | \ |
| 5699 | $at_diff - "$at_stderr" || at_failed=: |
| 5700 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5701 | at_fn_check_status 0 $at_status "$at_srcdir/i-casemap.at:17" |
| 5702 | $at_failed && at_fn_log_failure |
| 5703 | $at_traceon; } |
| 5704 | |
| 5705 | set +x |
| 5706 | $at_times_p && times >"$at_times_file" |
| 5707 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5708 | read at_status <"$at_status_file" |
| 5709 | #AT_STOP_62 |
| 5710 | #AT_START_63 |
| 5711 | at_fn_group_banner 63 'i-casemap.at:31' \ |
| 5712 | "i-casemap :matches" " " 4 |
| 5713 | at_xfail=no |
| 5714 | ( |
| 5715 | printf "%s\n" "63. $at_setup_line: testing $at_desc ..." |
| 5716 | $at_traceon |
| 5717 | |
| 5718 | |
| 5719 | |
| 5720 | |
| 5721 | |
| 5722 | |
| 5723 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 5724 | if test -e ./sieve.mbox; then |
| 5725 | |
| 5726 | # First, set all modes to +w |
| 5727 | find ./sieve.mbox | xargs chmod +w |
| 5728 | # Then, remove executable bit from regular files |
| 5729 | find ./sieve.mbox -type f | xargs chmod -x |
| 5730 | |
| 5731 | else |
| 5732 | |
| 5733 | # First, set all modes to +w |
| 5734 | find . | xargs chmod +w |
| 5735 | # Then, remove executable bit from regular files |
| 5736 | find . -type f | xargs chmod -x |
| 5737 | |
| 5738 | fi |
| 5739 | |
| 5740 | |
| 5741 | |
| 5742 | |
| 5743 | |
| 5744 | cat >prog <<'_ATEOF' |
| 5745 | |
| 5746 | require "comparator-i;ascii-casemap"; |
| 5747 | |
| 5748 | if header :comparator "i;ascii-casemap" :matches "subject" "*you, too,*" |
| 5749 | { |
| 5750 | discard; |
| 5751 | } |
| 5752 | |
| 5753 | _ATEOF |
| 5754 | |
| 5755 | { set +x |
| 5756 | printf "%s\n" "$at_srcdir/i-casemap.at:31: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5757 | " |
| 5758 | at_fn_check_prepare_notrace 'an embedded newline' "i-casemap.at:31" |
| 5759 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5760 | |
| 5761 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5762 | at_status=$? at_failed=false |
| 5763 | $at_check_filter |
| 5764 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 5765 | DISCARD on msg uid 2: marking as deleted |
| 5766 | IMPLICIT KEEP on msg uid 3 |
| 5767 | " | \ |
| 5768 | $at_diff - "$at_stderr" || at_failed=: |
| 5769 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5770 | at_fn_check_status 0 $at_status "$at_srcdir/i-casemap.at:31" |
| 5771 | $at_failed && at_fn_log_failure |
| 5772 | $at_traceon; } |
| 5773 | |
| 5774 | set +x |
| 5775 | $at_times_p && times >"$at_times_file" |
| 5776 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5777 | read at_status <"$at_status_file" |
| 5778 | #AT_STOP_63 |
| 5779 | #AT_START_64 |
| 5780 | at_fn_group_banner 64 'i-casemap.at:45' \ |
| 5781 | "i-casemap :contains" " " 4 |
| 5782 | at_xfail=no |
| 5783 | ( |
| 5784 | printf "%s\n" "64. $at_setup_line: testing $at_desc ..." |
| 5785 | $at_traceon |
| 5786 | |
| 5787 | |
| 5788 | |
| 5789 | |
| 5790 | |
| 5791 | |
| 5792 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 5793 | if test -e ./sieve.mbox; then |
| 5794 | |
| 5795 | # First, set all modes to +w |
| 5796 | find ./sieve.mbox | xargs chmod +w |
| 5797 | # Then, remove executable bit from regular files |
| 5798 | find ./sieve.mbox -type f | xargs chmod -x |
| 5799 | |
| 5800 | else |
| 5801 | |
| 5802 | # First, set all modes to +w |
| 5803 | find . | xargs chmod +w |
| 5804 | # Then, remove executable bit from regular files |
| 5805 | find . -type f | xargs chmod -x |
| 5806 | |
| 5807 | fi |
| 5808 | |
| 5809 | |
| 5810 | |
| 5811 | |
| 5812 | |
| 5813 | cat >prog <<'_ATEOF' |
| 5814 | |
| 5815 | require "comparator-i;ascii-casemap"; |
| 5816 | |
| 5817 | if header :comparator "i;ascii-casemap" :contains ["from", "to"] "ExAmPLe" |
| 5818 | { |
| 5819 | discard; |
| 5820 | } |
| 5821 | |
| 5822 | _ATEOF |
| 5823 | |
| 5824 | { set +x |
| 5825 | printf "%s\n" "$at_srcdir/i-casemap.at:45: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5826 | " |
| 5827 | at_fn_check_prepare_notrace 'an embedded newline' "i-casemap.at:45" |
| 5828 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5829 | |
| 5830 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5831 | at_status=$? at_failed=false |
| 5832 | $at_check_filter |
| 5833 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 5834 | DISCARD on msg uid 2: marking as deleted |
| 5835 | IMPLICIT KEEP on msg uid 3 |
| 5836 | " | \ |
| 5837 | $at_diff - "$at_stderr" || at_failed=: |
| 5838 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5839 | at_fn_check_status 0 $at_status "$at_srcdir/i-casemap.at:45" |
| 5840 | $at_failed && at_fn_log_failure |
| 5841 | $at_traceon; } |
| 5842 | |
| 5843 | set +x |
| 5844 | $at_times_p && times >"$at_times_file" |
| 5845 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5846 | read at_status <"$at_status_file" |
| 5847 | #AT_STOP_64 |
| 5848 | #AT_START_65 |
| 5849 | at_fn_group_banner 65 'i-casemap.at:59' \ |
| 5850 | "i-casemap :regex" " " 4 |
| 5851 | at_xfail=no |
| 5852 | ( |
| 5853 | printf "%s\n" "65. $at_setup_line: testing $at_desc ..." |
| 5854 | $at_traceon |
| 5855 | |
| 5856 | |
| 5857 | |
| 5858 | |
| 5859 | |
| 5860 | |
| 5861 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 5862 | if test -e ./sieve.mbox; then |
| 5863 | |
| 5864 | # First, set all modes to +w |
| 5865 | find ./sieve.mbox | xargs chmod +w |
| 5866 | # Then, remove executable bit from regular files |
| 5867 | find ./sieve.mbox -type f | xargs chmod -x |
| 5868 | |
| 5869 | else |
| 5870 | |
| 5871 | # First, set all modes to +w |
| 5872 | find . | xargs chmod +w |
| 5873 | # Then, remove executable bit from regular files |
| 5874 | find . -type f | xargs chmod -x |
| 5875 | |
| 5876 | fi |
| 5877 | |
| 5878 | |
| 5879 | |
| 5880 | |
| 5881 | |
| 5882 | cat >prog <<'_ATEOF' |
| 5883 | |
| 5884 | require "comparator-i;ascii-casemap"; |
| 5885 | |
| 5886 | if header :comparator "i;ascii-casemap" :regex "subject" ".*you.*" |
| 5887 | { |
| 5888 | discard; |
| 5889 | } |
| 5890 | |
| 5891 | _ATEOF |
| 5892 | |
| 5893 | { set +x |
| 5894 | printf "%s\n" "$at_srcdir/i-casemap.at:59: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5895 | " |
| 5896 | at_fn_check_prepare_notrace 'an embedded newline' "i-casemap.at:59" |
| 5897 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5898 | |
| 5899 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5900 | at_status=$? at_failed=false |
| 5901 | $at_check_filter |
| 5902 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 5903 | DISCARD on msg uid 2: marking as deleted |
| 5904 | IMPLICIT KEEP on msg uid 3 |
| 5905 | " | \ |
| 5906 | $at_diff - "$at_stderr" || at_failed=: |
| 5907 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5908 | at_fn_check_status 0 $at_status "$at_srcdir/i-casemap.at:59" |
| 5909 | $at_failed && at_fn_log_failure |
| 5910 | $at_traceon; } |
| 5911 | |
| 5912 | set +x |
| 5913 | $at_times_p && times >"$at_times_file" |
| 5914 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5915 | read at_status <"$at_status_file" |
| 5916 | #AT_STOP_65 |
| 5917 | #AT_START_66 |
| 5918 | at_fn_group_banner 66 'i-numeric.at:17' \ |
| 5919 | "i-numeric :is" " " 4 |
| 5920 | at_xfail=no |
| 5921 | ( |
| 5922 | printf "%s\n" "66. $at_setup_line: testing $at_desc ..." |
| 5923 | $at_traceon |
| 5924 | |
| 5925 | |
| 5926 | |
| 5927 | |
| 5928 | |
| 5929 | |
| 5930 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 5931 | if test -e ./sieve.mbox; then |
| 5932 | |
| 5933 | # First, set all modes to +w |
| 5934 | find ./sieve.mbox | xargs chmod +w |
| 5935 | # Then, remove executable bit from regular files |
| 5936 | find ./sieve.mbox -type f | xargs chmod -x |
| 5937 | |
| 5938 | else |
| 5939 | |
| 5940 | # First, set all modes to +w |
| 5941 | find . | xargs chmod +w |
| 5942 | # Then, remove executable bit from regular files |
| 5943 | find . -type f | xargs chmod -x |
| 5944 | |
| 5945 | fi |
| 5946 | |
| 5947 | |
| 5948 | |
| 5949 | |
| 5950 | |
| 5951 | cat >prog <<'_ATEOF' |
| 5952 | |
| 5953 | require "comparator-i;ascii-numeric"; |
| 5954 | |
| 5955 | if header :comparator "i;ascii-numeric" :is "X-Number" "15" |
| 5956 | { |
| 5957 | discard; |
| 5958 | } |
| 5959 | |
| 5960 | _ATEOF |
| 5961 | |
| 5962 | { set +x |
| 5963 | printf "%s\n" "$at_srcdir/i-numeric.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5964 | " |
| 5965 | at_fn_check_prepare_notrace 'an embedded newline' "i-numeric.at:17" |
| 5966 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 5967 | |
| 5968 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5969 | at_status=$? at_failed=false |
| 5970 | $at_check_filter |
| 5971 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 5972 | DISCARD on msg uid 2: marking as deleted |
| 5973 | IMPLICIT KEEP on msg uid 3 |
| 5974 | " | \ |
| 5975 | $at_diff - "$at_stderr" || at_failed=: |
| 5976 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5977 | at_fn_check_status 0 $at_status "$at_srcdir/i-numeric.at:17" |
| 5978 | $at_failed && at_fn_log_failure |
| 5979 | $at_traceon; } |
| 5980 | |
| 5981 | set +x |
| 5982 | $at_times_p && times >"$at_times_file" |
| 5983 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5984 | read at_status <"$at_status_file" |
| 5985 | #AT_STOP_66 |
| 5986 | #AT_START_67 |
| 5987 | at_fn_group_banner 67 'i-numeric.at:31' \ |
| 5988 | "i-numeric with contains" " " 4 |
| 5989 | at_xfail=no |
| 5990 | ( |
| 5991 | printf "%s\n" "67. $at_setup_line: testing $at_desc ..." |
| 5992 | $at_traceon |
| 5993 | |
| 5994 | |
| 5995 | |
| 5996 | cat >prog <<'_ATEOF' |
| 5997 | |
| 5998 | require "comparator-i;ascii-numeric"; |
| 5999 | |
| 6000 | if header :comparator "i;ascii-numeric" :contains "X-Number" "15" |
| 6001 | { |
| 6002 | discard; |
| 6003 | } |
| 6004 | |
| 6005 | _ATEOF |
| 6006 | |
| 6007 | { set +x |
| 6008 | printf "%s\n" "$at_srcdir/i-numeric.at:33: sieve --no-config --set '.mailbox.mailbox-type=mbox' -c prog" |
| 6009 | at_fn_check_prepare_trace "i-numeric.at:33" |
| 6010 | ( $at_check_trace; sieve --no-config --set '.mailbox.mailbox-type=mbox' -c prog |
| 6011 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6012 | at_status=$? at_failed=false |
| 6013 | $at_check_filter |
| 6014 | echo >>"$at_stderr"; printf "%s\n" "sieve: prog:4.41-49: comparator \`i;ascii-numeric' is incompatible with match type \`contains' in call to \`header' |
| 6015 | " | \ |
| 6016 | $at_diff - "$at_stderr" || at_failed=: |
| 6017 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6018 | at_fn_check_status 78 $at_status "$at_srcdir/i-numeric.at:33" |
| 6019 | $at_failed && at_fn_log_failure |
| 6020 | $at_traceon; } |
| 6021 | |
| 6022 | set +x |
| 6023 | $at_times_p && times >"$at_times_file" |
| 6024 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6025 | read at_status <"$at_status_file" |
| 6026 | #AT_STOP_67 |
| 6027 | #AT_START_68 |
| 6028 | at_fn_group_banner 68 'i-octet.at:17' \ |
| 6029 | "i-octet :is" " " 4 |
| 6030 | at_xfail=no |
| 6031 | ( |
| 6032 | printf "%s\n" "68. $at_setup_line: testing $at_desc ..." |
| 6033 | $at_traceon |
| 6034 | |
| 6035 | |
| 6036 | |
| 6037 | |
| 6038 | |
| 6039 | |
| 6040 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 6041 | if test -e ./sieve.mbox; then |
| 6042 | |
| 6043 | # First, set all modes to +w |
| 6044 | find ./sieve.mbox | xargs chmod +w |
| 6045 | # Then, remove executable bit from regular files |
| 6046 | find ./sieve.mbox -type f | xargs chmod -x |
| 6047 | |
| 6048 | else |
| 6049 | |
| 6050 | # First, set all modes to +w |
| 6051 | find . | xargs chmod +w |
| 6052 | # Then, remove executable bit from regular files |
| 6053 | find . -type f | xargs chmod -x |
| 6054 | |
| 6055 | fi |
| 6056 | |
| 6057 | |
| 6058 | |
| 6059 | |
| 6060 | |
| 6061 | cat >prog <<'_ATEOF' |
| 6062 | |
| 6063 | require "comparator-i;octet"; |
| 6064 | |
| 6065 | if header :comparator "i;octet" :is "to" "[email protected]" |
| 6066 | { |
| 6067 | discard; |
| 6068 | } |
| 6069 | |
| 6070 | _ATEOF |
| 6071 | |
| 6072 | { set +x |
| 6073 | printf "%s\n" "$at_srcdir/i-octet.at:17: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 6074 | " |
| 6075 | at_fn_check_prepare_notrace 'an embedded newline' "i-octet.at:17" |
| 6076 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 6077 | |
| 6078 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6079 | at_status=$? at_failed=false |
| 6080 | $at_check_filter |
| 6081 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 6082 | IMPLICIT KEEP on msg uid 2 |
| 6083 | IMPLICIT KEEP on msg uid 3 |
| 6084 | " | \ |
| 6085 | $at_diff - "$at_stderr" || at_failed=: |
| 6086 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6087 | at_fn_check_status 0 $at_status "$at_srcdir/i-octet.at:17" |
| 6088 | $at_failed && at_fn_log_failure |
| 6089 | $at_traceon; } |
| 6090 | |
| 6091 | set +x |
| 6092 | $at_times_p && times >"$at_times_file" |
| 6093 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6094 | read at_status <"$at_status_file" |
| 6095 | #AT_STOP_68 |
| 6096 | #AT_START_69 |
| 6097 | at_fn_group_banner 69 'i-octet.at:31' \ |
| 6098 | "i-octet :matches" " " 4 |
| 6099 | at_xfail=no |
| 6100 | ( |
| 6101 | printf "%s\n" "69. $at_setup_line: testing $at_desc ..." |
| 6102 | $at_traceon |
| 6103 | |
| 6104 | |
| 6105 | |
| 6106 | |
| 6107 | |
| 6108 | |
| 6109 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 6110 | if test -e ./sieve.mbox; then |
| 6111 | |
| 6112 | # First, set all modes to +w |
| 6113 | find ./sieve.mbox | xargs chmod +w |
| 6114 | # Then, remove executable bit from regular files |
| 6115 | find ./sieve.mbox -type f | xargs chmod -x |
| 6116 | |
| 6117 | else |
| 6118 | |
| 6119 | # First, set all modes to +w |
| 6120 | find . | xargs chmod +w |
| 6121 | # Then, remove executable bit from regular files |
| 6122 | find . -type f | xargs chmod -x |
| 6123 | |
| 6124 | fi |
| 6125 | |
| 6126 | |
| 6127 | |
| 6128 | |
| 6129 | |
| 6130 | cat >prog <<'_ATEOF' |
| 6131 | |
| 6132 | require "comparator-i;octet"; |
| 6133 | |
| 6134 | if header :comparator "i;octet" :matches "subject" "$$$*$$$" |
| 6135 | { |
| 6136 | discard; |
| 6137 | } |
| 6138 | |
| 6139 | _ATEOF |
| 6140 | |
| 6141 | { set +x |
| 6142 | printf "%s\n" "$at_srcdir/i-octet.at:31: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 6143 | " |
| 6144 | at_fn_check_prepare_notrace 'an embedded newline' "i-octet.at:31" |
| 6145 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 6146 | |
| 6147 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6148 | at_status=$? at_failed=false |
| 6149 | $at_check_filter |
| 6150 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 6151 | DISCARD on msg uid 2: marking as deleted |
| 6152 | IMPLICIT KEEP on msg uid 3 |
| 6153 | " | \ |
| 6154 | $at_diff - "$at_stderr" || at_failed=: |
| 6155 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6156 | at_fn_check_status 0 $at_status "$at_srcdir/i-octet.at:31" |
| 6157 | $at_failed && at_fn_log_failure |
| 6158 | $at_traceon; } |
| 6159 | |
| 6160 | set +x |
| 6161 | $at_times_p && times >"$at_times_file" |
| 6162 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6163 | read at_status <"$at_status_file" |
| 6164 | #AT_STOP_69 |
| 6165 | #AT_START_70 |
| 6166 | at_fn_group_banner 70 'i-octet.at:45' \ |
| 6167 | "i-octet :contains" " " 4 |
| 6168 | at_xfail=no |
| 6169 | ( |
| 6170 | printf "%s\n" "70. $at_setup_line: testing $at_desc ..." |
| 6171 | $at_traceon |
| 6172 | |
| 6173 | |
| 6174 | |
| 6175 | |
| 6176 | |
| 6177 | |
| 6178 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 6179 | if test -e ./sieve.mbox; then |
| 6180 | |
| 6181 | # First, set all modes to +w |
| 6182 | find ./sieve.mbox | xargs chmod +w |
| 6183 | # Then, remove executable bit from regular files |
| 6184 | find ./sieve.mbox -type f | xargs chmod -x |
| 6185 | |
| 6186 | else |
| 6187 | |
| 6188 | # First, set all modes to +w |
| 6189 | find . | xargs chmod +w |
| 6190 | # Then, remove executable bit from regular files |
| 6191 | find . -type f | xargs chmod -x |
| 6192 | |
| 6193 | fi |
| 6194 | |
| 6195 | |
| 6196 | |
| 6197 | |
| 6198 | |
| 6199 | cat >prog <<'_ATEOF' |
| 6200 | |
| 6201 | require "comparator-i;octet"; |
| 6202 | |
| 6203 | if header :comparator "i;octet" :contains ["from", "to"] "example" |
| 6204 | { |
| 6205 | discard; |
| 6206 | } |
| 6207 | |
| 6208 | _ATEOF |
| 6209 | |
| 6210 | { set +x |
| 6211 | printf "%s\n" "$at_srcdir/i-octet.at:45: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 6212 | " |
| 6213 | at_fn_check_prepare_notrace 'an embedded newline' "i-octet.at:45" |
| 6214 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 6215 | |
| 6216 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6217 | at_status=$? at_failed=false |
| 6218 | $at_check_filter |
| 6219 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 6220 | DISCARD on msg uid 2: marking as deleted |
| 6221 | IMPLICIT KEEP on msg uid 3 |
| 6222 | " | \ |
| 6223 | $at_diff - "$at_stderr" || at_failed=: |
| 6224 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6225 | at_fn_check_status 0 $at_status "$at_srcdir/i-octet.at:45" |
| 6226 | $at_failed && at_fn_log_failure |
| 6227 | $at_traceon; } |
| 6228 | |
| 6229 | set +x |
| 6230 | $at_times_p && times >"$at_times_file" |
| 6231 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6232 | read at_status <"$at_status_file" |
| 6233 | #AT_STOP_70 |
| 6234 | #AT_START_71 |
| 6235 | at_fn_group_banner 71 'i-octet.at:59' \ |
| 6236 | "i-octet :regex" " " 4 |
| 6237 | at_xfail=no |
| 6238 | ( |
| 6239 | printf "%s\n" "71. $at_setup_line: testing $at_desc ..." |
| 6240 | $at_traceon |
| 6241 | |
| 6242 | |
| 6243 | |
| 6244 | |
| 6245 | |
| 6246 | |
| 6247 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 6248 | if test -e ./sieve.mbox; then |
| 6249 | |
| 6250 | # First, set all modes to +w |
| 6251 | find ./sieve.mbox | xargs chmod +w |
| 6252 | # Then, remove executable bit from regular files |
| 6253 | find ./sieve.mbox -type f | xargs chmod -x |
| 6254 | |
| 6255 | else |
| 6256 | |
| 6257 | # First, set all modes to +w |
| 6258 | find . | xargs chmod +w |
| 6259 | # Then, remove executable bit from regular files |
| 6260 | find . -type f | xargs chmod -x |
| 6261 | |
| 6262 | fi |
| 6263 | |
| 6264 | |
| 6265 | |
| 6266 | |
| 6267 | |
| 6268 | cat >prog <<'_ATEOF' |
| 6269 | |
| 6270 | require "comparator-i;octet"; |
| 6271 | |
| 6272 | if header :comparator "i;octet" :regex "subject" ".*you.*" |
| 6273 | { |
| 6274 | discard; |
| 6275 | } |
| 6276 | |
| 6277 | _ATEOF |
| 6278 | |
| 6279 | { set +x |
| 6280 | printf "%s\n" "$at_srcdir/i-octet.at:59: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 6281 | " |
| 6282 | at_fn_check_prepare_notrace 'an embedded newline' "i-octet.at:59" |
| 6283 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 6284 | |
| 6285 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6286 | at_status=$? at_failed=false |
| 6287 | $at_check_filter |
| 6288 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 6289 | IMPLICIT KEEP on msg uid 2 |
| 6290 | IMPLICIT KEEP on msg uid 3 |
| 6291 | " | \ |
| 6292 | $at_diff - "$at_stderr" || at_failed=: |
| 6293 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6294 | at_fn_check_status 0 $at_status "$at_srcdir/i-octet.at:59" |
| 6295 | $at_failed && at_fn_log_failure |
| 6296 | $at_traceon; } |
| 6297 | |
| 6298 | set +x |
| 6299 | $at_times_p && times >"$at_times_file" |
| 6300 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6301 | read at_status <"$at_status_file" |
| 6302 | #AT_STOP_71 |
| 6303 | #AT_START_72 |
| 6304 | at_fn_group_banner 72 'ext.at:17' \ |
| 6305 | "loadable extensions: numaddr" " " 5 |
| 6306 | at_xfail=no |
| 6307 | ( |
| 6308 | printf "%s\n" "72. $at_setup_line: testing $at_desc ..." |
| 6309 | $at_traceon |
| 6310 | |
| 6311 | |
| 6312 | |
| 6313 | { set +x |
| 6314 | printf "%s\n" "$at_srcdir/ext.at:20: |
| 6315 | |
| 6316 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6317 | |
| 6318 | |
| 6319 | cat >prog <<'_ATEOF' |
| 6320 | |
| 6321 | require \"test-numaddr\"; |
| 6322 | |
| 6323 | if numaddr [ \"to\", \"cc\" ] :over 5 |
| 6324 | { |
| 6325 | discard; |
| 6326 | } |
| 6327 | _ATEOF |
| 6328 | |
| 6329 | |
| 6330 | |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 | cp -r \$abs_top_srcdir/testsuite/spool/bigto.mbox . |
| 6335 | if test -e ./bigto.mbox; then |
| 6336 | |
| 6337 | # First, set all modes to +w |
| 6338 | find ./bigto.mbox | xargs chmod +w |
| 6339 | # Then, remove executable bit from regular files |
| 6340 | find ./bigto.mbox -type f | xargs chmod -x |
| 6341 | |
| 6342 | else |
| 6343 | |
| 6344 | # First, set all modes to +w |
| 6345 | find . | xargs chmod +w |
| 6346 | # Then, remove executable bit from regular files |
| 6347 | find . -type f | xargs chmod -x |
| 6348 | |
| 6349 | fi |
| 6350 | |
| 6351 | |
| 6352 | |
| 6353 | |
| 6354 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --clearpath --libdir-prefix=\"\${abs_top_builddir}/examples\" -f ./bigto.mbox prog |
| 6355 | " |
| 6356 | at_fn_check_prepare_notrace 'a ${...} parameter expansion' "ext.at:20" |
| 6357 | ( $at_check_trace; |
| 6358 | |
| 6359 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6360 | |
| 6361 | |
| 6362 | cat >prog <<'_ATEOF' |
| 6363 | |
| 6364 | require "test-numaddr"; |
| 6365 | |
| 6366 | if numaddr [ "to", "cc" ] :over 5 |
| 6367 | { |
| 6368 | discard; |
| 6369 | } |
| 6370 | _ATEOF |
| 6371 | |
| 6372 | |
| 6373 | |
| 6374 | |
| 6375 | |
| 6376 | |
| 6377 | cp -r $abs_top_srcdir/testsuite/spool/bigto.mbox . |
| 6378 | if test -e ./bigto.mbox; then |
| 6379 | |
| 6380 | # First, set all modes to +w |
| 6381 | find ./bigto.mbox | xargs chmod +w |
| 6382 | # Then, remove executable bit from regular files |
| 6383 | find ./bigto.mbox -type f | xargs chmod -x |
| 6384 | |
| 6385 | else |
| 6386 | |
| 6387 | # First, set all modes to +w |
| 6388 | find . | xargs chmod +w |
| 6389 | # Then, remove executable bit from regular files |
| 6390 | find . -type f | xargs chmod -x |
| 6391 | |
| 6392 | fi |
| 6393 | |
| 6394 | |
| 6395 | |
| 6396 | |
| 6397 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --clearpath --libdir-prefix="${abs_top_builddir}/examples" -f ./bigto.mbox prog |
| 6398 | |
| 6399 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6400 | at_status=$? at_failed=false |
| 6401 | $at_check_filter |
| 6402 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 6403 | " | \ |
| 6404 | $at_diff - "$at_stderr" || at_failed=: |
| 6405 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6406 | at_fn_check_status 0 $at_status "$at_srcdir/ext.at:20" |
| 6407 | $at_failed && at_fn_log_failure |
| 6408 | $at_traceon; } |
| 6409 | |
| 6410 | |
| 6411 | set +x |
| 6412 | $at_times_p && times >"$at_times_file" |
| 6413 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6414 | read at_status <"$at_status_file" |
| 6415 | #AT_STOP_72 |
| 6416 | #AT_START_73 |
| 6417 | at_fn_group_banner 73 'moderator.at:19' \ |
| 6418 | "moderator: program discard" " " 5 |
| 6419 | at_xfail=no |
| 6420 | ( |
| 6421 | printf "%s\n" "73. $at_setup_line: testing $at_desc ..." |
| 6422 | $at_traceon |
| 6423 | |
| 6424 | |
| 6425 | |
| 6426 | { set +x |
| 6427 | printf "%s\n" "$at_srcdir/moderator.at:19: |
| 6428 | |
| 6429 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6430 | |
| 6431 | cwd=\`pwd\` |
| 6432 | cat >>prog<<EOT |
| 6433 | require \"moderator\"; |
| 6434 | |
| 6435 | moderator :program \"discard;\"; |
| 6436 | |
| 6437 | EOT |
| 6438 | cp \${abs_top_srcdir}/sieve/tests/moderator.mbox mailbox |
| 6439 | chmod +w mailbox |
| 6440 | |
| 6441 | MAIL_DUMP=\`pwd\`/mail.dump |
| 6442 | export MAIL_DUMP |
| 6443 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit 1 |
| 6444 | cat \$MAIL_DUMP |
| 6445 | |
| 6446 | " |
| 6447 | at_fn_check_prepare_notrace 'a `...` command substitution' "moderator.at:19" |
| 6448 | ( $at_check_trace; |
| 6449 | |
| 6450 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6451 | |
| 6452 | cwd=`pwd` |
| 6453 | cat >>prog<<EOT |
| 6454 | require "moderator"; |
| 6455 | |
| 6456 | moderator :program "discard;"; |
| 6457 | |
| 6458 | EOT |
| 6459 | cp ${abs_top_srcdir}/sieve/tests/moderator.mbox mailbox |
| 6460 | chmod +w mailbox |
| 6461 | |
| 6462 | MAIL_DUMP=`pwd`/mail.dump |
| 6463 | export MAIL_DUMP |
| 6464 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit 1 |
| 6465 | cat $MAIL_DUMP |
| 6466 | |
| 6467 | |
| 6468 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6469 | at_status=$? at_failed=false |
| 6470 | $at_check_filter |
| 6471 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 0: marking as deleted |
| 6472 | MODERATOR on msg uid 1: discarding message |
| 6473 | " | \ |
| 6474 | $at_diff - "$at_stderr" || at_failed=: |
| 6475 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 6476 | SENDER: [email protected] |
| 6477 | NRCPT: 1 |
| 6478 | RCPT[0]: [email protected] |
| 6479 | LENGTH: 94 |
| 6480 | To: [email protected] |
| 6481 | Subject: confirm 7e02c99a82a21a2349291a4f142ee2347bb5fd0b |
| 6482 | |
| 6483 | |
| 6484 | " | \ |
| 6485 | $at_diff - "$at_stdout" || at_failed=: |
| 6486 | at_fn_check_status 0 $at_status "$at_srcdir/moderator.at:19" |
| 6487 | $at_failed && at_fn_log_failure |
| 6488 | $at_traceon; } |
| 6489 | |
| 6490 | |
| 6491 | set +x |
| 6492 | $at_times_p && times >"$at_times_file" |
| 6493 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6494 | read at_status <"$at_status_file" |
| 6495 | #AT_STOP_73 |
| 6496 | #AT_START_74 |
| 6497 | at_fn_group_banner 74 'moderator.at:46' \ |
| 6498 | "moderator: program address discard" " " 5 |
| 6499 | at_xfail=no |
| 6500 | ( |
| 6501 | printf "%s\n" "74. $at_setup_line: testing $at_desc ..." |
| 6502 | $at_traceon |
| 6503 | |
| 6504 | |
| 6505 | |
| 6506 | { set +x |
| 6507 | printf "%s\n" "$at_srcdir/moderator.at:46: |
| 6508 | |
| 6509 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6510 | |
| 6511 | cwd=\`pwd\` |
| 6512 | cat >>prog<<EOT |
| 6513 | require \"moderator\"; |
| 6514 | |
| 6515 | moderator :program \"discard;\" :address \"<[email protected]>\"; |
| 6516 | |
| 6517 | EOT |
| 6518 | cp \${abs_top_srcdir}/sieve/tests/moderator.mbox mailbox |
| 6519 | chmod +w mailbox |
| 6520 | |
| 6521 | MAIL_DUMP=\`pwd\`/mail.dump |
| 6522 | export MAIL_DUMP |
| 6523 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit 1 |
| 6524 | cat \$MAIL_DUMP |
| 6525 | |
| 6526 | " |
| 6527 | at_fn_check_prepare_notrace 'a `...` command substitution' "moderator.at:46" |
| 6528 | ( $at_check_trace; |
| 6529 | |
| 6530 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6531 | |
| 6532 | cwd=`pwd` |
| 6533 | cat >>prog<<EOT |
| 6534 | require "moderator"; |
| 6535 | |
| 6536 | moderator :program "discard;" :address "<[email protected]>"; |
| 6537 | |
| 6538 | EOT |
| 6539 | cp ${abs_top_srcdir}/sieve/tests/moderator.mbox mailbox |
| 6540 | chmod +w mailbox |
| 6541 | |
| 6542 | MAIL_DUMP=`pwd`/mail.dump |
| 6543 | export MAIL_DUMP |
| 6544 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit 1 |
| 6545 | cat $MAIL_DUMP |
| 6546 | |
| 6547 | |
| 6548 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6549 | at_status=$? at_failed=false |
| 6550 | $at_check_filter |
| 6551 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 0: marking as deleted |
| 6552 | MODERATOR on msg uid 1: discarding message |
| 6553 | " | \ |
| 6554 | $at_diff - "$at_stderr" || at_failed=: |
| 6555 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 6556 | SENDER: [email protected] |
| 6557 | NRCPT: 1 |
| 6558 | RCPT[0]: [email protected] |
| 6559 | LENGTH: 123 |
| 6560 | To: [email protected] |
| 6561 | Subject: confirm 7e02c99a82a21a2349291a4f142ee2347bb5fd0b |
| 6562 | From: <[email protected]> |
| 6563 | |
| 6564 | |
| 6565 | " | \ |
| 6566 | $at_diff - "$at_stdout" || at_failed=: |
| 6567 | at_fn_check_status 0 $at_status "$at_srcdir/moderator.at:46" |
| 6568 | $at_failed && at_fn_log_failure |
| 6569 | $at_traceon; } |
| 6570 | |
| 6571 | |
| 6572 | set +x |
| 6573 | $at_times_p && times >"$at_times_file" |
| 6574 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6575 | read at_status <"$at_status_file" |
| 6576 | #AT_STOP_74 |
| 6577 | #AT_START_75 |
| 6578 | at_fn_group_banner 75 'moderator.at:74' \ |
| 6579 | "moderator: program keep" " " 5 |
| 6580 | at_xfail=no |
| 6581 | ( |
| 6582 | printf "%s\n" "75. $at_setup_line: testing $at_desc ..." |
| 6583 | $at_traceon |
| 6584 | |
| 6585 | |
| 6586 | |
| 6587 | { set +x |
| 6588 | printf "%s\n" "$at_srcdir/moderator.at:74: |
| 6589 | |
| 6590 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6591 | |
| 6592 | cwd=\`pwd\` |
| 6593 | cat >>prog<<EOT |
| 6594 | require \"moderator\"; |
| 6595 | |
| 6596 | moderator :program \"keep;\"; |
| 6597 | |
| 6598 | EOT |
| 6599 | cp \${abs_top_srcdir}/sieve/tests/moderator.mbox mailbox |
| 6600 | chmod +w mailbox |
| 6601 | |
| 6602 | MAIL_DUMP=\`pwd\`/mta.diag |
| 6603 | export MAIL_DUMP |
| 6604 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit \$? |
| 6605 | test -f \$MAIL_DUMP && echo \$MAIL_DUMP |
| 6606 | exit 0 |
| 6607 | |
| 6608 | " |
| 6609 | at_fn_check_prepare_notrace 'a `...` command substitution' "moderator.at:74" |
| 6610 | ( $at_check_trace; |
| 6611 | |
| 6612 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6613 | |
| 6614 | cwd=`pwd` |
| 6615 | cat >>prog<<EOT |
| 6616 | require "moderator"; |
| 6617 | |
| 6618 | moderator :program "keep;"; |
| 6619 | |
| 6620 | EOT |
| 6621 | cp ${abs_top_srcdir}/sieve/tests/moderator.mbox mailbox |
| 6622 | chmod +w mailbox |
| 6623 | |
| 6624 | MAIL_DUMP=`pwd`/mta.diag |
| 6625 | export MAIL_DUMP |
| 6626 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit $? |
| 6627 | test -f $MAIL_DUMP && echo $MAIL_DUMP |
| 6628 | exit 0 |
| 6629 | |
| 6630 | |
| 6631 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6632 | at_status=$? at_failed=false |
| 6633 | $at_check_filter |
| 6634 | echo >>"$at_stderr"; printf "%s\n" "KEEP on msg uid 0 |
| 6635 | MODERATOR on msg uid 1: keeping message |
| 6636 | " | \ |
| 6637 | $at_diff - "$at_stderr" || at_failed=: |
| 6638 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6639 | at_fn_check_status 0 $at_status "$at_srcdir/moderator.at:74" |
| 6640 | $at_failed && at_fn_log_failure |
| 6641 | $at_traceon; } |
| 6642 | |
| 6643 | |
| 6644 | set +x |
| 6645 | $at_times_p && times >"$at_times_file" |
| 6646 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6647 | read at_status <"$at_status_file" |
| 6648 | #AT_STOP_75 |
| 6649 | #AT_START_76 |
| 6650 | at_fn_group_banner 76 'pipeact.at:28' \ |
| 6651 | "pipe action: pipe entire message" " " 5 |
| 6652 | at_xfail=no |
| 6653 | ( |
| 6654 | printf "%s\n" "76. $at_setup_line: testing $at_desc ..." |
| 6655 | $at_traceon |
| 6656 | |
| 6657 | |
| 6658 | |
| 6659 | { set +x |
| 6660 | printf "%s\n" "$at_srcdir/pipeact.at:28: |
| 6661 | |
| 6662 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6663 | |
| 6664 | cwd=\`pwd\` |
| 6665 | cat >>prog<<EOT |
| 6666 | require \"pipe\"; |
| 6667 | if header :is \"Subject\" \"Coffee\" |
| 6668 | { |
| 6669 | pipe \"\$cwd/savemsg \$cwd/sieve.out\"; |
| 6670 | } |
| 6671 | |
| 6672 | EOT |
| 6673 | |
| 6674 | |
| 6675 | |
| 6676 | |
| 6677 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 6678 | if test -e mailbox/sieve.mbox; then |
| 6679 | |
| 6680 | # First, set all modes to +w |
| 6681 | find mailbox/sieve.mbox | xargs chmod +w |
| 6682 | # Then, remove executable bit from regular files |
| 6683 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 6684 | |
| 6685 | else |
| 6686 | |
| 6687 | # First, set all modes to +w |
| 6688 | find mailbox | xargs chmod +w |
| 6689 | # Then, remove executable bit from regular files |
| 6690 | find mailbox -type f | xargs chmod -x |
| 6691 | |
| 6692 | fi |
| 6693 | |
| 6694 | |
| 6695 | |
| 6696 | |
| 6697 | cat >savemsg <<'_ATEOF' |
| 6698 | #! /bin/sh |
| 6699 | echo \"Message begin\" >> \$1 |
| 6700 | cat - >> \$1 |
| 6701 | echo \"Message end\" >> \$1 |
| 6702 | _ATEOF |
| 6703 | |
| 6704 | chmod +x savemsg |
| 6705 | |
| 6706 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 6707 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' sieve.out |
| 6708 | |
| 6709 | " |
| 6710 | at_fn_check_prepare_notrace 'a `...` command substitution' "pipeact.at:28" |
| 6711 | ( $at_check_trace; |
| 6712 | |
| 6713 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6714 | |
| 6715 | cwd=`pwd` |
| 6716 | cat >>prog<<EOT |
| 6717 | require "pipe"; |
| 6718 | if header :is "Subject" "Coffee" |
| 6719 | { |
| 6720 | pipe "$cwd/savemsg $cwd/sieve.out"; |
| 6721 | } |
| 6722 | |
| 6723 | EOT |
| 6724 | |
| 6725 | |
| 6726 | |
| 6727 | |
| 6728 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 6729 | if test -e mailbox/sieve.mbox; then |
| 6730 | |
| 6731 | # First, set all modes to +w |
| 6732 | find mailbox/sieve.mbox | xargs chmod +w |
| 6733 | # Then, remove executable bit from regular files |
| 6734 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 6735 | |
| 6736 | else |
| 6737 | |
| 6738 | # First, set all modes to +w |
| 6739 | find mailbox | xargs chmod +w |
| 6740 | # Then, remove executable bit from regular files |
| 6741 | find mailbox -type f | xargs chmod -x |
| 6742 | |
| 6743 | fi |
| 6744 | |
| 6745 | |
| 6746 | |
| 6747 | |
| 6748 | cat >savemsg <<'_ATEOF' |
| 6749 | #! /bin/sh |
| 6750 | echo "Message begin" >> $1 |
| 6751 | cat - >> $1 |
| 6752 | echo "Message end" >> $1 |
| 6753 | _ATEOF |
| 6754 | |
| 6755 | chmod +x savemsg |
| 6756 | |
| 6757 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 6758 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' sieve.out |
| 6759 | |
| 6760 | |
| 6761 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6762 | at_status=$? at_failed=false |
| 6763 | $at_check_filter |
| 6764 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 6765 | IMPLICIT KEEP on msg uid 2 |
| 6766 | PIPE on msg uid 3 |
| 6767 | " | \ |
| 6768 | $at_diff - "$at_stderr" || at_failed=: |
| 6769 | echo >>"$at_stdout"; printf "%s\n" "Message begin |
| 6770 | From [email protected] Fri Dec 28 23:28:09 2001 |
| 6771 | Received: (from [email protected]) |
| 6772 | by dontmailme.org id fERKR9N16790 |
| 6773 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 6774 | Date: Fri, 28 Dec 2001 23:28:08 +0200 |
| 6775 | From: Bar <[email protected]> |
| 6776 | To: Foo Bar <[email protected]> |
| 6777 | Message-Id: <[email protected]> |
| 6778 | Subject: Coffee |
| 6779 | |
| 6780 | How about some coffee? |
| 6781 | Message end |
| 6782 | " | \ |
| 6783 | $at_diff - "$at_stdout" || at_failed=: |
| 6784 | at_fn_check_status 0 $at_status "$at_srcdir/pipeact.at:28" |
| 6785 | $at_failed && at_fn_log_failure |
| 6786 | $at_traceon; } |
| 6787 | |
| 6788 | |
| 6789 | set +x |
| 6790 | $at_times_p && times >"$at_times_file" |
| 6791 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6792 | read at_status <"$at_status_file" |
| 6793 | #AT_STOP_76 |
| 6794 | #AT_START_77 |
| 6795 | at_fn_group_banner 77 'pipeact.at:59' \ |
| 6796 | "pipe action: pipe envelope" " " 5 |
| 6797 | at_xfail=no |
| 6798 | ( |
| 6799 | printf "%s\n" "77. $at_setup_line: testing $at_desc ..." |
| 6800 | $at_traceon |
| 6801 | |
| 6802 | |
| 6803 | |
| 6804 | { set +x |
| 6805 | printf "%s\n" "$at_srcdir/pipeact.at:59: |
| 6806 | |
| 6807 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6808 | |
| 6809 | cwd=\`pwd\` |
| 6810 | cat >>prog<<EOT |
| 6811 | require \"pipe\"; |
| 6812 | if header :is \"Subject\" \"Coffee\" |
| 6813 | { |
| 6814 | pipe :envelope \"\$cwd/savemsg \$cwd/sieve.out\"; |
| 6815 | } |
| 6816 | |
| 6817 | EOT |
| 6818 | |
| 6819 | |
| 6820 | |
| 6821 | |
| 6822 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 6823 | if test -e mailbox/sieve.mbox; then |
| 6824 | |
| 6825 | # First, set all modes to +w |
| 6826 | find mailbox/sieve.mbox | xargs chmod +w |
| 6827 | # Then, remove executable bit from regular files |
| 6828 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 6829 | |
| 6830 | else |
| 6831 | |
| 6832 | # First, set all modes to +w |
| 6833 | find mailbox | xargs chmod +w |
| 6834 | # Then, remove executable bit from regular files |
| 6835 | find mailbox -type f | xargs chmod -x |
| 6836 | |
| 6837 | fi |
| 6838 | |
| 6839 | |
| 6840 | |
| 6841 | |
| 6842 | cat >savemsg <<'_ATEOF' |
| 6843 | #! /bin/sh |
| 6844 | echo \"Message begin\" >> \$1 |
| 6845 | cat - >> \$1 |
| 6846 | echo \"Message end\" >> \$1 |
| 6847 | _ATEOF |
| 6848 | |
| 6849 | chmod +x savemsg |
| 6850 | |
| 6851 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 6852 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' sieve.out |
| 6853 | |
| 6854 | " |
| 6855 | at_fn_check_prepare_notrace 'a `...` command substitution' "pipeact.at:59" |
| 6856 | ( $at_check_trace; |
| 6857 | |
| 6858 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6859 | |
| 6860 | cwd=`pwd` |
| 6861 | cat >>prog<<EOT |
| 6862 | require "pipe"; |
| 6863 | if header :is "Subject" "Coffee" |
| 6864 | { |
| 6865 | pipe :envelope "$cwd/savemsg $cwd/sieve.out"; |
| 6866 | } |
| 6867 | |
| 6868 | EOT |
| 6869 | |
| 6870 | |
| 6871 | |
| 6872 | |
| 6873 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 6874 | if test -e mailbox/sieve.mbox; then |
| 6875 | |
| 6876 | # First, set all modes to +w |
| 6877 | find mailbox/sieve.mbox | xargs chmod +w |
| 6878 | # Then, remove executable bit from regular files |
| 6879 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 6880 | |
| 6881 | else |
| 6882 | |
| 6883 | # First, set all modes to +w |
| 6884 | find mailbox | xargs chmod +w |
| 6885 | # Then, remove executable bit from regular files |
| 6886 | find mailbox -type f | xargs chmod -x |
| 6887 | |
| 6888 | fi |
| 6889 | |
| 6890 | |
| 6891 | |
| 6892 | |
| 6893 | cat >savemsg <<'_ATEOF' |
| 6894 | #! /bin/sh |
| 6895 | echo "Message begin" >> $1 |
| 6896 | cat - >> $1 |
| 6897 | echo "Message end" >> $1 |
| 6898 | _ATEOF |
| 6899 | |
| 6900 | chmod +x savemsg |
| 6901 | |
| 6902 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 6903 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' sieve.out |
| 6904 | |
| 6905 | |
| 6906 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6907 | at_status=$? at_failed=false |
| 6908 | $at_check_filter |
| 6909 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 6910 | IMPLICIT KEEP on msg uid 2 |
| 6911 | PIPE on msg uid 3 |
| 6912 | " | \ |
| 6913 | $at_diff - "$at_stderr" || at_failed=: |
| 6914 | echo >>"$at_stdout"; printf "%s\n" "Message begin |
| 6915 | From [email protected] Fri Dec 28 23:28:09 2001 |
| 6916 | Message end |
| 6917 | " | \ |
| 6918 | $at_diff - "$at_stdout" || at_failed=: |
| 6919 | at_fn_check_status 0 $at_status "$at_srcdir/pipeact.at:59" |
| 6920 | $at_failed && at_fn_log_failure |
| 6921 | $at_traceon; } |
| 6922 | |
| 6923 | |
| 6924 | set +x |
| 6925 | $at_times_p && times >"$at_times_file" |
| 6926 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6927 | read at_status <"$at_status_file" |
| 6928 | #AT_STOP_77 |
| 6929 | #AT_START_78 |
| 6930 | at_fn_group_banner 78 'pipeact.at:80' \ |
| 6931 | "pipe action: pipe header" " " 5 |
| 6932 | at_xfail=no |
| 6933 | ( |
| 6934 | printf "%s\n" "78. $at_setup_line: testing $at_desc ..." |
| 6935 | $at_traceon |
| 6936 | |
| 6937 | |
| 6938 | |
| 6939 | { set +x |
| 6940 | printf "%s\n" "$at_srcdir/pipeact.at:80: |
| 6941 | |
| 6942 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6943 | |
| 6944 | cwd=\`pwd\` |
| 6945 | cat >>prog<<EOT |
| 6946 | require \"pipe\"; |
| 6947 | if header :is \"Subject\" \"Coffee\" |
| 6948 | { |
| 6949 | pipe :header \"\$cwd/savemsg \$cwd/sieve.out\"; |
| 6950 | } |
| 6951 | |
| 6952 | EOT |
| 6953 | |
| 6954 | |
| 6955 | |
| 6956 | |
| 6957 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 6958 | if test -e mailbox/sieve.mbox; then |
| 6959 | |
| 6960 | # First, set all modes to +w |
| 6961 | find mailbox/sieve.mbox | xargs chmod +w |
| 6962 | # Then, remove executable bit from regular files |
| 6963 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 6964 | |
| 6965 | else |
| 6966 | |
| 6967 | # First, set all modes to +w |
| 6968 | find mailbox | xargs chmod +w |
| 6969 | # Then, remove executable bit from regular files |
| 6970 | find mailbox -type f | xargs chmod -x |
| 6971 | |
| 6972 | fi |
| 6973 | |
| 6974 | |
| 6975 | |
| 6976 | |
| 6977 | cat >savemsg <<'_ATEOF' |
| 6978 | #! /bin/sh |
| 6979 | echo \"Message begin\" >> \$1 |
| 6980 | cat - >> \$1 |
| 6981 | echo \"Message end\" >> \$1 |
| 6982 | _ATEOF |
| 6983 | |
| 6984 | chmod +x savemsg |
| 6985 | |
| 6986 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 6987 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' sieve.out |
| 6988 | |
| 6989 | " |
| 6990 | at_fn_check_prepare_notrace 'a `...` command substitution' "pipeact.at:80" |
| 6991 | ( $at_check_trace; |
| 6992 | |
| 6993 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 6994 | |
| 6995 | cwd=`pwd` |
| 6996 | cat >>prog<<EOT |
| 6997 | require "pipe"; |
| 6998 | if header :is "Subject" "Coffee" |
| 6999 | { |
| 7000 | pipe :header "$cwd/savemsg $cwd/sieve.out"; |
| 7001 | } |
| 7002 | |
| 7003 | EOT |
| 7004 | |
| 7005 | |
| 7006 | |
| 7007 | |
| 7008 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7009 | if test -e mailbox/sieve.mbox; then |
| 7010 | |
| 7011 | # First, set all modes to +w |
| 7012 | find mailbox/sieve.mbox | xargs chmod +w |
| 7013 | # Then, remove executable bit from regular files |
| 7014 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7015 | |
| 7016 | else |
| 7017 | |
| 7018 | # First, set all modes to +w |
| 7019 | find mailbox | xargs chmod +w |
| 7020 | # Then, remove executable bit from regular files |
| 7021 | find mailbox -type f | xargs chmod -x |
| 7022 | |
| 7023 | fi |
| 7024 | |
| 7025 | |
| 7026 | |
| 7027 | |
| 7028 | cat >savemsg <<'_ATEOF' |
| 7029 | #! /bin/sh |
| 7030 | echo "Message begin" >> $1 |
| 7031 | cat - >> $1 |
| 7032 | echo "Message end" >> $1 |
| 7033 | _ATEOF |
| 7034 | |
| 7035 | chmod +x savemsg |
| 7036 | |
| 7037 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 7038 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' sieve.out |
| 7039 | |
| 7040 | |
| 7041 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7042 | at_status=$? at_failed=false |
| 7043 | $at_check_filter |
| 7044 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 7045 | IMPLICIT KEEP on msg uid 2 |
| 7046 | PIPE on msg uid 3 |
| 7047 | " | \ |
| 7048 | $at_diff - "$at_stderr" || at_failed=: |
| 7049 | echo >>"$at_stdout"; printf "%s\n" "Message begin |
| 7050 | Received: (from [email protected]) |
| 7051 | by dontmailme.org id fERKR9N16790 |
| 7052 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 7053 | Date: Fri, 28 Dec 2001 23:28:08 +0200 |
| 7054 | From: Bar <[email protected]> |
| 7055 | To: Foo Bar <[email protected]> |
| 7056 | Message-Id: <[email protected]> |
| 7057 | Subject: Coffee |
| 7058 | |
| 7059 | Message end |
| 7060 | " | \ |
| 7061 | $at_diff - "$at_stdout" || at_failed=: |
| 7062 | at_fn_check_status 0 $at_status "$at_srcdir/pipeact.at:80" |
| 7063 | $at_failed && at_fn_log_failure |
| 7064 | $at_traceon; } |
| 7065 | |
| 7066 | |
| 7067 | set +x |
| 7068 | $at_times_p && times >"$at_times_file" |
| 7069 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7070 | read at_status <"$at_status_file" |
| 7071 | #AT_STOP_78 |
| 7072 | #AT_START_79 |
| 7073 | at_fn_group_banner 79 'pipeact.at:109' \ |
| 7074 | "pipe action: pipe body" " " 5 |
| 7075 | at_xfail=no |
| 7076 | ( |
| 7077 | printf "%s\n" "79. $at_setup_line: testing $at_desc ..." |
| 7078 | $at_traceon |
| 7079 | |
| 7080 | |
| 7081 | |
| 7082 | { set +x |
| 7083 | printf "%s\n" "$at_srcdir/pipeact.at:109: |
| 7084 | |
| 7085 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7086 | |
| 7087 | cwd=\`pwd\` |
| 7088 | cat >>prog<<EOT |
| 7089 | require \"pipe\"; |
| 7090 | if header :is \"Subject\" \"Coffee\" |
| 7091 | { |
| 7092 | pipe :body \"\$cwd/savemsg \$cwd/sieve.out\"; |
| 7093 | } |
| 7094 | |
| 7095 | EOT |
| 7096 | |
| 7097 | |
| 7098 | |
| 7099 | |
| 7100 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7101 | if test -e mailbox/sieve.mbox; then |
| 7102 | |
| 7103 | # First, set all modes to +w |
| 7104 | find mailbox/sieve.mbox | xargs chmod +w |
| 7105 | # Then, remove executable bit from regular files |
| 7106 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7107 | |
| 7108 | else |
| 7109 | |
| 7110 | # First, set all modes to +w |
| 7111 | find mailbox | xargs chmod +w |
| 7112 | # Then, remove executable bit from regular files |
| 7113 | find mailbox -type f | xargs chmod -x |
| 7114 | |
| 7115 | fi |
| 7116 | |
| 7117 | |
| 7118 | |
| 7119 | |
| 7120 | cat >savemsg <<'_ATEOF' |
| 7121 | #! /bin/sh |
| 7122 | echo \"Message begin\" >> \$1 |
| 7123 | cat - >> \$1 |
| 7124 | echo \"Message end\" >> \$1 |
| 7125 | _ATEOF |
| 7126 | |
| 7127 | chmod +x savemsg |
| 7128 | |
| 7129 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 7130 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' sieve.out |
| 7131 | |
| 7132 | " |
| 7133 | at_fn_check_prepare_notrace 'a `...` command substitution' "pipeact.at:109" |
| 7134 | ( $at_check_trace; |
| 7135 | |
| 7136 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7137 | |
| 7138 | cwd=`pwd` |
| 7139 | cat >>prog<<EOT |
| 7140 | require "pipe"; |
| 7141 | if header :is "Subject" "Coffee" |
| 7142 | { |
| 7143 | pipe :body "$cwd/savemsg $cwd/sieve.out"; |
| 7144 | } |
| 7145 | |
| 7146 | EOT |
| 7147 | |
| 7148 | |
| 7149 | |
| 7150 | |
| 7151 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7152 | if test -e mailbox/sieve.mbox; then |
| 7153 | |
| 7154 | # First, set all modes to +w |
| 7155 | find mailbox/sieve.mbox | xargs chmod +w |
| 7156 | # Then, remove executable bit from regular files |
| 7157 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7158 | |
| 7159 | else |
| 7160 | |
| 7161 | # First, set all modes to +w |
| 7162 | find mailbox | xargs chmod +w |
| 7163 | # Then, remove executable bit from regular files |
| 7164 | find mailbox -type f | xargs chmod -x |
| 7165 | |
| 7166 | fi |
| 7167 | |
| 7168 | |
| 7169 | |
| 7170 | |
| 7171 | cat >savemsg <<'_ATEOF' |
| 7172 | #! /bin/sh |
| 7173 | echo "Message begin" >> $1 |
| 7174 | cat - >> $1 |
| 7175 | echo "Message end" >> $1 |
| 7176 | _ATEOF |
| 7177 | |
| 7178 | chmod +x savemsg |
| 7179 | |
| 7180 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 7181 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' sieve.out |
| 7182 | |
| 7183 | |
| 7184 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7185 | at_status=$? at_failed=false |
| 7186 | $at_check_filter |
| 7187 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 7188 | IMPLICIT KEEP on msg uid 2 |
| 7189 | PIPE on msg uid 3 |
| 7190 | " | \ |
| 7191 | $at_diff - "$at_stderr" || at_failed=: |
| 7192 | echo >>"$at_stdout"; printf "%s\n" "Message begin |
| 7193 | How about some coffee? |
| 7194 | Message end |
| 7195 | " | \ |
| 7196 | $at_diff - "$at_stdout" || at_failed=: |
| 7197 | at_fn_check_status 0 $at_status "$at_srcdir/pipeact.at:109" |
| 7198 | $at_failed && at_fn_log_failure |
| 7199 | $at_traceon; } |
| 7200 | |
| 7201 | |
| 7202 | set +x |
| 7203 | $at_times_p && times >"$at_times_file" |
| 7204 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7205 | read at_status <"$at_status_file" |
| 7206 | #AT_STOP_79 |
| 7207 | #AT_START_80 |
| 7208 | at_fn_group_banner 80 'pipeact.at:130' \ |
| 7209 | "pipe action: pipe combined" " " 5 |
| 7210 | at_xfail=no |
| 7211 | ( |
| 7212 | printf "%s\n" "80. $at_setup_line: testing $at_desc ..." |
| 7213 | $at_traceon |
| 7214 | |
| 7215 | |
| 7216 | |
| 7217 | { set +x |
| 7218 | printf "%s\n" "$at_srcdir/pipeact.at:130: |
| 7219 | |
| 7220 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7221 | |
| 7222 | cwd=\`pwd\` |
| 7223 | cat >>prog<<EOT |
| 7224 | require \"pipe\"; |
| 7225 | if header :is \"Subject\" \"Coffee\" |
| 7226 | { |
| 7227 | pipe :envelope :body \"\$cwd/savemsg \$cwd/sieve.out\"; |
| 7228 | } |
| 7229 | |
| 7230 | EOT |
| 7231 | |
| 7232 | |
| 7233 | |
| 7234 | |
| 7235 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7236 | if test -e mailbox/sieve.mbox; then |
| 7237 | |
| 7238 | # First, set all modes to +w |
| 7239 | find mailbox/sieve.mbox | xargs chmod +w |
| 7240 | # Then, remove executable bit from regular files |
| 7241 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7242 | |
| 7243 | else |
| 7244 | |
| 7245 | # First, set all modes to +w |
| 7246 | find mailbox | xargs chmod +w |
| 7247 | # Then, remove executable bit from regular files |
| 7248 | find mailbox -type f | xargs chmod -x |
| 7249 | |
| 7250 | fi |
| 7251 | |
| 7252 | |
| 7253 | |
| 7254 | |
| 7255 | cat >savemsg <<'_ATEOF' |
| 7256 | #! /bin/sh |
| 7257 | echo \"Message begin\" >> \$1 |
| 7258 | cat - >> \$1 |
| 7259 | echo \"Message end\" >> \$1 |
| 7260 | _ATEOF |
| 7261 | |
| 7262 | chmod +x savemsg |
| 7263 | |
| 7264 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 7265 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' sieve.out |
| 7266 | |
| 7267 | " |
| 7268 | at_fn_check_prepare_notrace 'a `...` command substitution' "pipeact.at:130" |
| 7269 | ( $at_check_trace; |
| 7270 | |
| 7271 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7272 | |
| 7273 | cwd=`pwd` |
| 7274 | cat >>prog<<EOT |
| 7275 | require "pipe"; |
| 7276 | if header :is "Subject" "Coffee" |
| 7277 | { |
| 7278 | pipe :envelope :body "$cwd/savemsg $cwd/sieve.out"; |
| 7279 | } |
| 7280 | |
| 7281 | EOT |
| 7282 | |
| 7283 | |
| 7284 | |
| 7285 | |
| 7286 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7287 | if test -e mailbox/sieve.mbox; then |
| 7288 | |
| 7289 | # First, set all modes to +w |
| 7290 | find mailbox/sieve.mbox | xargs chmod +w |
| 7291 | # Then, remove executable bit from regular files |
| 7292 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7293 | |
| 7294 | else |
| 7295 | |
| 7296 | # First, set all modes to +w |
| 7297 | find mailbox | xargs chmod +w |
| 7298 | # Then, remove executable bit from regular files |
| 7299 | find mailbox -type f | xargs chmod -x |
| 7300 | |
| 7301 | fi |
| 7302 | |
| 7303 | |
| 7304 | |
| 7305 | |
| 7306 | cat >savemsg <<'_ATEOF' |
| 7307 | #! /bin/sh |
| 7308 | echo "Message begin" >> $1 |
| 7309 | cat - >> $1 |
| 7310 | echo "Message end" >> $1 |
| 7311 | _ATEOF |
| 7312 | |
| 7313 | chmod +x savemsg |
| 7314 | |
| 7315 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 7316 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' sieve.out |
| 7317 | |
| 7318 | |
| 7319 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7320 | at_status=$? at_failed=false |
| 7321 | $at_check_filter |
| 7322 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 7323 | IMPLICIT KEEP on msg uid 2 |
| 7324 | PIPE on msg uid 3 |
| 7325 | " | \ |
| 7326 | $at_diff - "$at_stderr" || at_failed=: |
| 7327 | echo >>"$at_stdout"; printf "%s\n" "Message begin |
| 7328 | From [email protected] Fri Dec 28 23:28:09 2001 |
| 7329 | How about some coffee? |
| 7330 | Message end |
| 7331 | " | \ |
| 7332 | $at_diff - "$at_stdout" || at_failed=: |
| 7333 | at_fn_check_status 0 $at_status "$at_srcdir/pipeact.at:130" |
| 7334 | $at_failed && at_fn_log_failure |
| 7335 | $at_traceon; } |
| 7336 | |
| 7337 | |
| 7338 | set +x |
| 7339 | $at_times_p && times >"$at_times_file" |
| 7340 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7341 | read at_status <"$at_status_file" |
| 7342 | #AT_STOP_80 |
| 7343 | #AT_START_81 |
| 7344 | at_fn_group_banner 81 'pipetest.at:19' \ |
| 7345 | "pipe test: " " " 5 |
| 7346 | at_xfail=no |
| 7347 | ( |
| 7348 | printf "%s\n" "81. $at_setup_line: testing $at_desc ..." |
| 7349 | $at_traceon |
| 7350 | |
| 7351 | |
| 7352 | |
| 7353 | { set +x |
| 7354 | printf "%s\n" "$at_srcdir/pipetest.at:19: |
| 7355 | |
| 7356 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7357 | |
| 7358 | cwd=\`pwd\` |
| 7359 | cat >>prog<<EOT |
| 7360 | require \"pipe\"; |
| 7361 | if pipe :header \"\$cwd/ckmsg\" |
| 7362 | { |
| 7363 | discard; |
| 7364 | } |
| 7365 | |
| 7366 | EOT |
| 7367 | |
| 7368 | |
| 7369 | |
| 7370 | |
| 7371 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7372 | if test -e mailbox/sieve.mbox; then |
| 7373 | |
| 7374 | # First, set all modes to +w |
| 7375 | find mailbox/sieve.mbox | xargs chmod +w |
| 7376 | # Then, remove executable bit from regular files |
| 7377 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7378 | |
| 7379 | else |
| 7380 | |
| 7381 | # First, set all modes to +w |
| 7382 | find mailbox | xargs chmod +w |
| 7383 | # Then, remove executable bit from regular files |
| 7384 | find mailbox -type f | xargs chmod -x |
| 7385 | |
| 7386 | fi |
| 7387 | |
| 7388 | |
| 7389 | |
| 7390 | cat >ckmsg <<'_ATEOF' |
| 7391 | #! /bin/sh |
| 7392 | grep \"^From:.*example\\.org\" >/dev/null |
| 7393 | _ATEOF |
| 7394 | |
| 7395 | chmod +x ckmsg |
| 7396 | |
| 7397 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 7398 | |
| 7399 | " |
| 7400 | at_fn_check_prepare_notrace 'a `...` command substitution' "pipetest.at:19" |
| 7401 | ( $at_check_trace; |
| 7402 | |
| 7403 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7404 | |
| 7405 | cwd=`pwd` |
| 7406 | cat >>prog<<EOT |
| 7407 | require "pipe"; |
| 7408 | if pipe :header "$cwd/ckmsg" |
| 7409 | { |
| 7410 | discard; |
| 7411 | } |
| 7412 | |
| 7413 | EOT |
| 7414 | |
| 7415 | |
| 7416 | |
| 7417 | |
| 7418 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7419 | if test -e mailbox/sieve.mbox; then |
| 7420 | |
| 7421 | # First, set all modes to +w |
| 7422 | find mailbox/sieve.mbox | xargs chmod +w |
| 7423 | # Then, remove executable bit from regular files |
| 7424 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7425 | |
| 7426 | else |
| 7427 | |
| 7428 | # First, set all modes to +w |
| 7429 | find mailbox | xargs chmod +w |
| 7430 | # Then, remove executable bit from regular files |
| 7431 | find mailbox -type f | xargs chmod -x |
| 7432 | |
| 7433 | fi |
| 7434 | |
| 7435 | |
| 7436 | |
| 7437 | cat >ckmsg <<'_ATEOF' |
| 7438 | #! /bin/sh |
| 7439 | grep "^From:.*example\.org" >/dev/null |
| 7440 | _ATEOF |
| 7441 | |
| 7442 | chmod +x ckmsg |
| 7443 | |
| 7444 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 7445 | |
| 7446 | |
| 7447 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7448 | at_status=$? at_failed=false |
| 7449 | $at_check_filter |
| 7450 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 7451 | IMPLICIT KEEP on msg uid 2 |
| 7452 | IMPLICIT KEEP on msg uid 3 |
| 7453 | " | \ |
| 7454 | $at_diff - "$at_stderr" || at_failed=: |
| 7455 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7456 | at_fn_check_status 0 $at_status "$at_srcdir/pipetest.at:19" |
| 7457 | $at_failed && at_fn_log_failure |
| 7458 | $at_traceon; } |
| 7459 | |
| 7460 | |
| 7461 | set +x |
| 7462 | $at_times_p && times >"$at_times_file" |
| 7463 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7464 | read at_status <"$at_status_file" |
| 7465 | #AT_STOP_81 |
| 7466 | #AT_START_82 |
| 7467 | at_fn_group_banner 82 'list.at:19' \ |
| 7468 | "list: " " " 5 |
| 7469 | at_xfail=no |
| 7470 | ( |
| 7471 | printf "%s\n" "82. $at_setup_line: testing $at_desc ..." |
| 7472 | $at_traceon |
| 7473 | |
| 7474 | |
| 7475 | |
| 7476 | { set +x |
| 7477 | printf "%s\n" "$at_srcdir/list.at:19: |
| 7478 | |
| 7479 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7480 | |
| 7481 | cwd=\`pwd\` |
| 7482 | cat >>prog<<EOT |
| 7483 | require \"test-list\"; |
| 7484 | if list :matches :delim \" ,\" [ \"X-Spam-Keywords\", \"X-Spamd-Keywords\" ] |
| 7485 | [ \"HTML_*\", \"FORGED_*\" ] |
| 7486 | { |
| 7487 | discard; |
| 7488 | } |
| 7489 | |
| 7490 | EOT |
| 7491 | cat >mailbox <<'_ATEOF' |
| 7492 | From [email protected] Thu Dec 23 00:38:09 2010 |
| 7493 | Date: Thu, 23 Dec 2010 00:38:09 +0200 |
| 7494 | From: Foo Bar <[email protected]> |
| 7495 | To: <[email protected]> |
| 7496 | Subject: Test 1 |
| 7497 | X-Spam-Keywords: x, y, z |
| 7498 | X-Spamd-Keywords: i, j, k |
| 7499 | |
| 7500 | text 1 |
| 7501 | |
| 7502 | From [email protected] Thu Dec 23 00:40:00 2010 |
| 7503 | Date: Thu, 23 Dec 2010 00:40:00 +0200 |
| 7504 | From: Foo Bar <[email protected]> |
| 7505 | To: <[email protected]> |
| 7506 | Subject: Test 2 |
| 7507 | X-Spam-Keywords: x, y, z |
| 7508 | X-Spamd-Keywords: HTML_50 |
| 7509 | |
| 7510 | text 2 |
| 7511 | |
| 7512 | From [email protected] Thu Dec 23 00:42:00 2010 |
| 7513 | Date: Thu, 23 Dec 2010 00:42:00 +0200 |
| 7514 | From: Foo Bar <[email protected]> |
| 7515 | To: <[email protected]> |
| 7516 | Subject: Test 3 |
| 7517 | X-Spam-Keywords: x, y, z |
| 7518 | X-Spamd-Keywords: QUUX, FORGED_SENDER |
| 7519 | |
| 7520 | test 3 |
| 7521 | |
| 7522 | From [email protected] Thu Dec 23 00:44:00 2010 |
| 7523 | Date: Thu, 23 Dec 2010 00:44:00 +0200 |
| 7524 | From: Foo Bar <[email protected]> |
| 7525 | To: <[email protected]> |
| 7526 | Subject: Test 4 |
| 7527 | |
| 7528 | test 3 |
| 7529 | |
| 7530 | _ATEOF |
| 7531 | |
| 7532 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 7533 | |
| 7534 | " |
| 7535 | at_fn_check_prepare_notrace 'a `...` command substitution' "list.at:19" |
| 7536 | ( $at_check_trace; |
| 7537 | |
| 7538 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7539 | |
| 7540 | cwd=`pwd` |
| 7541 | cat >>prog<<EOT |
| 7542 | require "test-list"; |
| 7543 | if list :matches :delim " ," [ "X-Spam-Keywords", "X-Spamd-Keywords" ] |
| 7544 | [ "HTML_*", "FORGED_*" ] |
| 7545 | { |
| 7546 | discard; |
| 7547 | } |
| 7548 | |
| 7549 | EOT |
| 7550 | cat >mailbox <<'_ATEOF' |
| 7551 | From [email protected] Thu Dec 23 00:38:09 2010 |
| 7552 | Date: Thu, 23 Dec 2010 00:38:09 +0200 |
| 7553 | From: Foo Bar <[email protected]> |
| 7554 | To: <[email protected]> |
| 7555 | Subject: Test 1 |
| 7556 | X-Spam-Keywords: x, y, z |
| 7557 | X-Spamd-Keywords: i, j, k |
| 7558 | |
| 7559 | text 1 |
| 7560 | |
| 7561 | From [email protected] Thu Dec 23 00:40:00 2010 |
| 7562 | Date: Thu, 23 Dec 2010 00:40:00 +0200 |
| 7563 | From: Foo Bar <[email protected]> |
| 7564 | To: <[email protected]> |
| 7565 | Subject: Test 2 |
| 7566 | X-Spam-Keywords: x, y, z |
| 7567 | X-Spamd-Keywords: HTML_50 |
| 7568 | |
| 7569 | text 2 |
| 7570 | |
| 7571 | From [email protected] Thu Dec 23 00:42:00 2010 |
| 7572 | Date: Thu, 23 Dec 2010 00:42:00 +0200 |
| 7573 | From: Foo Bar <[email protected]> |
| 7574 | To: <[email protected]> |
| 7575 | Subject: Test 3 |
| 7576 | X-Spam-Keywords: x, y, z |
| 7577 | X-Spamd-Keywords: QUUX, FORGED_SENDER |
| 7578 | |
| 7579 | test 3 |
| 7580 | |
| 7581 | From [email protected] Thu Dec 23 00:44:00 2010 |
| 7582 | Date: Thu, 23 Dec 2010 00:44:00 +0200 |
| 7583 | From: Foo Bar <[email protected]> |
| 7584 | To: <[email protected]> |
| 7585 | Subject: Test 4 |
| 7586 | |
| 7587 | test 3 |
| 7588 | |
| 7589 | _ATEOF |
| 7590 | |
| 7591 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 7592 | |
| 7593 | |
| 7594 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7595 | at_status=$? at_failed=false |
| 7596 | $at_check_filter |
| 7597 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 7598 | DISCARD on msg uid 2: marking as deleted |
| 7599 | DISCARD on msg uid 3: marking as deleted |
| 7600 | IMPLICIT KEEP on msg uid 4 |
| 7601 | " | \ |
| 7602 | $at_diff - "$at_stderr" || at_failed=: |
| 7603 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7604 | at_fn_check_status 0 $at_status "$at_srcdir/list.at:19" |
| 7605 | $at_failed && at_fn_log_failure |
| 7606 | $at_traceon; } |
| 7607 | |
| 7608 | |
| 7609 | set +x |
| 7610 | $at_times_p && times >"$at_times_file" |
| 7611 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7612 | read at_status <"$at_status_file" |
| 7613 | #AT_STOP_82 |
| 7614 | #AT_START_83 |
| 7615 | at_fn_group_banner 83 'addheader.at:20' \ |
| 7616 | "addheader: prepend header" " " 6 |
| 7617 | at_xfail=no |
| 7618 | ( |
| 7619 | printf "%s\n" "83. $at_setup_line: testing $at_desc ..." |
| 7620 | $at_traceon |
| 7621 | |
| 7622 | |
| 7623 | |
| 7624 | { set +x |
| 7625 | printf "%s\n" "$at_srcdir/addheader.at:20: |
| 7626 | |
| 7627 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7628 | |
| 7629 | cwd=\`pwd\` |
| 7630 | cat >>prog<<EOT |
| 7631 | require \"editheader\"; |
| 7632 | addheader \"X-Sieve-Filtered\" \"<[email protected]>\"; |
| 7633 | |
| 7634 | EOT |
| 7635 | |
| 7636 | |
| 7637 | |
| 7638 | |
| 7639 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7640 | if test -e mailbox/sieve.mbox; then |
| 7641 | |
| 7642 | # First, set all modes to +w |
| 7643 | find mailbox/sieve.mbox | xargs chmod +w |
| 7644 | # Then, remove executable bit from regular files |
| 7645 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7646 | |
| 7647 | else |
| 7648 | |
| 7649 | # First, set all modes to +w |
| 7650 | find mailbox | xargs chmod +w |
| 7651 | # Then, remove executable bit from regular files |
| 7652 | find mailbox -type f | xargs chmod -x |
| 7653 | |
| 7654 | fi |
| 7655 | |
| 7656 | |
| 7657 | |
| 7658 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 7659 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' mailbox |
| 7660 | |
| 7661 | " |
| 7662 | at_fn_check_prepare_notrace 'a `...` command substitution' "addheader.at:20" |
| 7663 | ( $at_check_trace; |
| 7664 | |
| 7665 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7666 | |
| 7667 | cwd=`pwd` |
| 7668 | cat >>prog<<EOT |
| 7669 | require "editheader"; |
| 7670 | addheader "X-Sieve-Filtered" "<[email protected]>"; |
| 7671 | |
| 7672 | EOT |
| 7673 | |
| 7674 | |
| 7675 | |
| 7676 | |
| 7677 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7678 | if test -e mailbox/sieve.mbox; then |
| 7679 | |
| 7680 | # First, set all modes to +w |
| 7681 | find mailbox/sieve.mbox | xargs chmod +w |
| 7682 | # Then, remove executable bit from regular files |
| 7683 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7684 | |
| 7685 | else |
| 7686 | |
| 7687 | # First, set all modes to +w |
| 7688 | find mailbox | xargs chmod +w |
| 7689 | # Then, remove executable bit from regular files |
| 7690 | find mailbox -type f | xargs chmod -x |
| 7691 | |
| 7692 | fi |
| 7693 | |
| 7694 | |
| 7695 | |
| 7696 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 7697 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' mailbox |
| 7698 | |
| 7699 | |
| 7700 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7701 | at_status=$? at_failed=false |
| 7702 | $at_check_filter |
| 7703 | echo >>"$at_stderr"; printf "%s\n" "ADDHEADER on msg uid 1: X-Sieve-Filtered: <[email protected]> |
| 7704 | ADDHEADER on msg uid 2: X-Sieve-Filtered: <[email protected]> |
| 7705 | ADDHEADER on msg uid 3: X-Sieve-Filtered: <[email protected]> |
| 7706 | " | \ |
| 7707 | $at_diff - "$at_stderr" || at_failed=: |
| 7708 | echo >>"$at_stdout"; printf "%s\n" "From [email protected] Sun May 6 22:16:47 2001 |
| 7709 | X-Sieve-Filtered: <[email protected]> |
| 7710 | From: [email protected] |
| 7711 | To: [email protected] |
| 7712 | Subject: I have a present for you |
| 7713 | X-Caffeine: C8H10N4O2 |
| 7714 | |
| 7715 | Look, I'm sorry about the whole anvil thing, and I really |
| 7716 | didn't mean to try and drop it on you from the top of the |
| 7717 | cliff. I want to try to make it up to you. I've got some |
| 7718 | great birdseed over here at my place--top of the line |
| 7719 | stuff--and if you come by, I'll have it all wrapped up |
| 7720 | for you. I'm really sorry for all the problems I've caused |
| 7721 | for you over the years, but I know we can work this out. |
| 7722 | |
| 7723 | -- |
| 7724 | Wile E. Coyote \"Super Genius\" [email protected] |
| 7725 | |
| 7726 | From [email protected] Sun May 6 22:17:15 2001 |
| 7727 | X-Sieve-Filtered: <[email protected]> |
| 7728 | From: [email protected] |
| 7729 | To: [email protected] |
| 7730 | Subject: \$\$\$ YOU, TOO, CAN BE A MILLIONAIRE! \$\$\$ |
| 7731 | Date: TBD |
| 7732 | X-Number: 0015 |
| 7733 | |
| 7734 | YOU MAY HAVE ALREADY WON TEN MILLION DOLLARS, BUT I DOUBT |
| 7735 | IT! SO JUST POST THIS TO SIX HUNDRED NEWSGROUPS! IT WILL |
| 7736 | GUARANTEE THAT YOU GET AT LEAST FIVE RESPONSES WITH MONEY! |
| 7737 | MONEY! MONEY! COLD HARD CASH! YOU WILL RECEIVE OVER |
| 7738 | \$20,000 IN LESS THAN TWO MONTHS! AND IT'S LEGAL!!!!!!!!! |
| 7739 | !!!!!!!!!!!!!!!!!!111111111!!!!!!!11111111111!!1 JUST |
| 7740 | SEND \$5 IN SMALL, UNMARKED BILLS TO THE ADDRESSES BELOW! |
| 7741 | |
| 7742 | From [email protected] Fri Dec 28 23:28:09 2001 |
| 7743 | X-Sieve-Filtered: <[email protected]> |
| 7744 | Received: (from [email protected]) |
| 7745 | by dontmailme.org id fERKR9N16790 |
| 7746 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 7747 | Date: Fri, 28 Dec 2001 23:28:08 +0200 |
| 7748 | From: Bar <[email protected]> |
| 7749 | To: Foo Bar <[email protected]> |
| 7750 | Message-Id: <[email protected]> |
| 7751 | Subject: Coffee |
| 7752 | |
| 7753 | How about some coffee? |
| 7754 | |
| 7755 | " | \ |
| 7756 | $at_diff - "$at_stdout" || at_failed=: |
| 7757 | at_fn_check_status 0 $at_status "$at_srcdir/addheader.at:20" |
| 7758 | $at_failed && at_fn_log_failure |
| 7759 | $at_traceon; } |
| 7760 | |
| 7761 | |
| 7762 | set +x |
| 7763 | $at_times_p && times >"$at_times_file" |
| 7764 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7765 | read at_status <"$at_status_file" |
| 7766 | #AT_STOP_83 |
| 7767 | #AT_START_84 |
| 7768 | at_fn_group_banner 84 'addheader.at:81' \ |
| 7769 | "addheader: append header" " " 6 |
| 7770 | at_xfail=no |
| 7771 | ( |
| 7772 | printf "%s\n" "84. $at_setup_line: testing $at_desc ..." |
| 7773 | $at_traceon |
| 7774 | |
| 7775 | |
| 7776 | |
| 7777 | { set +x |
| 7778 | printf "%s\n" "$at_srcdir/addheader.at:81: |
| 7779 | |
| 7780 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7781 | |
| 7782 | cwd=\`pwd\` |
| 7783 | cat >>prog<<EOT |
| 7784 | require \"editheader\"; |
| 7785 | addheader :last \"X-Sieve-Filtered\" \"<[email protected]>\"; |
| 7786 | |
| 7787 | EOT |
| 7788 | |
| 7789 | |
| 7790 | |
| 7791 | |
| 7792 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7793 | if test -e mailbox/sieve.mbox; then |
| 7794 | |
| 7795 | # First, set all modes to +w |
| 7796 | find mailbox/sieve.mbox | xargs chmod +w |
| 7797 | # Then, remove executable bit from regular files |
| 7798 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7799 | |
| 7800 | else |
| 7801 | |
| 7802 | # First, set all modes to +w |
| 7803 | find mailbox | xargs chmod +w |
| 7804 | # Then, remove executable bit from regular files |
| 7805 | find mailbox -type f | xargs chmod -x |
| 7806 | |
| 7807 | fi |
| 7808 | |
| 7809 | |
| 7810 | |
| 7811 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 7812 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' mailbox |
| 7813 | |
| 7814 | " |
| 7815 | at_fn_check_prepare_notrace 'a `...` command substitution' "addheader.at:81" |
| 7816 | ( $at_check_trace; |
| 7817 | |
| 7818 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7819 | |
| 7820 | cwd=`pwd` |
| 7821 | cat >>prog<<EOT |
| 7822 | require "editheader"; |
| 7823 | addheader :last "X-Sieve-Filtered" "<[email protected]>"; |
| 7824 | |
| 7825 | EOT |
| 7826 | |
| 7827 | |
| 7828 | |
| 7829 | |
| 7830 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 7831 | if test -e mailbox/sieve.mbox; then |
| 7832 | |
| 7833 | # First, set all modes to +w |
| 7834 | find mailbox/sieve.mbox | xargs chmod +w |
| 7835 | # Then, remove executable bit from regular files |
| 7836 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 7837 | |
| 7838 | else |
| 7839 | |
| 7840 | # First, set all modes to +w |
| 7841 | find mailbox | xargs chmod +w |
| 7842 | # Then, remove executable bit from regular files |
| 7843 | find mailbox -type f | xargs chmod -x |
| 7844 | |
| 7845 | fi |
| 7846 | |
| 7847 | |
| 7848 | |
| 7849 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 7850 | sed -e '/^X-IMAPbase:/d' -e '/^X-UID:/d' mailbox |
| 7851 | |
| 7852 | |
| 7853 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7854 | at_status=$? at_failed=false |
| 7855 | $at_check_filter |
| 7856 | echo >>"$at_stderr"; printf "%s\n" "ADDHEADER on msg uid 1: X-Sieve-Filtered: <[email protected]> |
| 7857 | ADDHEADER on msg uid 2: X-Sieve-Filtered: <[email protected]> |
| 7858 | ADDHEADER on msg uid 3: X-Sieve-Filtered: <[email protected]> |
| 7859 | " | \ |
| 7860 | $at_diff - "$at_stderr" || at_failed=: |
| 7861 | echo >>"$at_stdout"; printf "%s\n" "From [email protected] Sun May 6 22:16:47 2001 |
| 7862 | From: [email protected] |
| 7863 | To: [email protected] |
| 7864 | Subject: I have a present for you |
| 7865 | X-Caffeine: C8H10N4O2 |
| 7866 | X-Sieve-Filtered: <[email protected]> |
| 7867 | |
| 7868 | Look, I'm sorry about the whole anvil thing, and I really |
| 7869 | didn't mean to try and drop it on you from the top of the |
| 7870 | cliff. I want to try to make it up to you. I've got some |
| 7871 | great birdseed over here at my place--top of the line |
| 7872 | stuff--and if you come by, I'll have it all wrapped up |
| 7873 | for you. I'm really sorry for all the problems I've caused |
| 7874 | for you over the years, but I know we can work this out. |
| 7875 | |
| 7876 | -- |
| 7877 | Wile E. Coyote \"Super Genius\" [email protected] |
| 7878 | |
| 7879 | From [email protected] Sun May 6 22:17:15 2001 |
| 7880 | From: [email protected] |
| 7881 | To: [email protected] |
| 7882 | Subject: \$\$\$ YOU, TOO, CAN BE A MILLIONAIRE! \$\$\$ |
| 7883 | Date: TBD |
| 7884 | X-Number: 0015 |
| 7885 | X-Sieve-Filtered: <[email protected]> |
| 7886 | |
| 7887 | YOU MAY HAVE ALREADY WON TEN MILLION DOLLARS, BUT I DOUBT |
| 7888 | IT! SO JUST POST THIS TO SIX HUNDRED NEWSGROUPS! IT WILL |
| 7889 | GUARANTEE THAT YOU GET AT LEAST FIVE RESPONSES WITH MONEY! |
| 7890 | MONEY! MONEY! COLD HARD CASH! YOU WILL RECEIVE OVER |
| 7891 | \$20,000 IN LESS THAN TWO MONTHS! AND IT'S LEGAL!!!!!!!!! |
| 7892 | !!!!!!!!!!!!!!!!!!111111111!!!!!!!11111111111!!1 JUST |
| 7893 | SEND \$5 IN SMALL, UNMARKED BILLS TO THE ADDRESSES BELOW! |
| 7894 | |
| 7895 | From [email protected] Fri Dec 28 23:28:09 2001 |
| 7896 | Received: (from [email protected]) |
| 7897 | by dontmailme.org id fERKR9N16790 |
| 7898 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 7899 | Date: Fri, 28 Dec 2001 23:28:08 +0200 |
| 7900 | From: Bar <[email protected]> |
| 7901 | To: Foo Bar <[email protected]> |
| 7902 | Message-Id: <[email protected]> |
| 7903 | Subject: Coffee |
| 7904 | X-Sieve-Filtered: <[email protected]> |
| 7905 | |
| 7906 | How about some coffee? |
| 7907 | |
| 7908 | " | \ |
| 7909 | $at_diff - "$at_stdout" || at_failed=: |
| 7910 | at_fn_check_status 0 $at_status "$at_srcdir/addheader.at:81" |
| 7911 | $at_failed && at_fn_log_failure |
| 7912 | $at_traceon; } |
| 7913 | |
| 7914 | |
| 7915 | set +x |
| 7916 | $at_times_p && times >"$at_times_file" |
| 7917 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7918 | read at_status <"$at_status_file" |
| 7919 | #AT_STOP_84 |
| 7920 | #AT_START_85 |
| 7921 | at_fn_group_banner 85 'delheader.at:38' \ |
| 7922 | "deleteheader: delete all" " " 7 |
| 7923 | at_xfail=no |
| 7924 | ( |
| 7925 | printf "%s\n" "85. $at_setup_line: testing $at_desc ..." |
| 7926 | $at_traceon |
| 7927 | |
| 7928 | |
| 7929 | |
| 7930 | { set +x |
| 7931 | printf "%s\n" "$at_srcdir/delheader.at:38: |
| 7932 | |
| 7933 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7934 | |
| 7935 | cwd=\`pwd\` |
| 7936 | cat >>prog<<EOT |
| 7937 | require \"editheader\"; |
| 7938 | deleteheader \"X-Agent\"; |
| 7939 | |
| 7940 | EOT |
| 7941 | |
| 7942 | cat >mailbox <<'_ATEOF' |
| 7943 | From [email protected] Sun May 6 22:16:47 2001 |
| 7944 | From: [email protected] |
| 7945 | To: [email protected] |
| 7946 | X-Agent: Agent A |
| 7947 | Received: (from [email protected]) |
| 7948 | by example.org id fERKR9N16790 |
| 7949 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 7950 | X-Agent: Agent 22 |
| 7951 | X-Agent: Agent C |
| 7952 | Subject: Ping |
| 7953 | |
| 7954 | Test message, please discard. |
| 7955 | |
| 7956 | _ATEOF |
| 7957 | |
| 7958 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 7959 | sed '/^X-IMAPbase:/d;/^Status:/d;/^X-UID:/d;s/ *\$//' mailbox |
| 7960 | |
| 7961 | " |
| 7962 | at_fn_check_prepare_notrace 'a `...` command substitution' "delheader.at:38" |
| 7963 | ( $at_check_trace; |
| 7964 | |
| 7965 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 7966 | |
| 7967 | cwd=`pwd` |
| 7968 | cat >>prog<<EOT |
| 7969 | require "editheader"; |
| 7970 | deleteheader "X-Agent"; |
| 7971 | |
| 7972 | EOT |
| 7973 | |
| 7974 | cat >mailbox <<'_ATEOF' |
| 7975 | From [email protected] Sun May 6 22:16:47 2001 |
| 7976 | From: [email protected] |
| 7977 | To: [email protected] |
| 7978 | X-Agent: Agent A |
| 7979 | Received: (from [email protected]) |
| 7980 | by example.org id fERKR9N16790 |
| 7981 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 7982 | X-Agent: Agent 22 |
| 7983 | X-Agent: Agent C |
| 7984 | Subject: Ping |
| 7985 | |
| 7986 | Test message, please discard. |
| 7987 | |
| 7988 | _ATEOF |
| 7989 | |
| 7990 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 7991 | sed '/^X-IMAPbase:/d;/^Status:/d;/^X-UID:/d;s/ *$//' mailbox |
| 7992 | |
| 7993 | |
| 7994 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7995 | at_status=$? at_failed=false |
| 7996 | $at_check_filter |
| 7997 | echo >>"$at_stderr"; printf "%s\n" "DELETEHEADER on msg uid 1: X-Agent |
| 7998 | " | \ |
| 7999 | $at_diff - "$at_stderr" || at_failed=: |
| 8000 | echo >>"$at_stdout"; printf "%s\n" "From [email protected] Sun May 6 22:16:47 2001 |
| 8001 | From: [email protected] |
| 8002 | To: [email protected] |
| 8003 | Received: (from [email protected]) |
| 8004 | by example.org id fERKR9N16790 |
| 8005 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 8006 | Subject: Ping |
| 8007 | |
| 8008 | Test message, please discard. |
| 8009 | |
| 8010 | " | \ |
| 8011 | $at_diff - "$at_stdout" || at_failed=: |
| 8012 | at_fn_check_status 0 $at_status "$at_srcdir/delheader.at:38" |
| 8013 | $at_failed && at_fn_log_failure |
| 8014 | $at_traceon; } |
| 8015 | |
| 8016 | |
| 8017 | set +x |
| 8018 | $at_times_p && times >"$at_times_file" |
| 8019 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8020 | read at_status <"$at_status_file" |
| 8021 | #AT_STOP_85 |
| 8022 | #AT_START_86 |
| 8023 | at_fn_group_banner 86 'delheader.at:60' \ |
| 8024 | "deleteheader: delete index" " " 7 |
| 8025 | at_xfail=no |
| 8026 | ( |
| 8027 | printf "%s\n" "86. $at_setup_line: testing $at_desc ..." |
| 8028 | $at_traceon |
| 8029 | |
| 8030 | |
| 8031 | |
| 8032 | { set +x |
| 8033 | printf "%s\n" "$at_srcdir/delheader.at:60: |
| 8034 | |
| 8035 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8036 | |
| 8037 | cwd=\`pwd\` |
| 8038 | cat >>prog<<EOT |
| 8039 | require \"editheader\"; |
| 8040 | deleteheader :index 1 \"X-Agent\"; |
| 8041 | |
| 8042 | EOT |
| 8043 | |
| 8044 | cat >mailbox <<'_ATEOF' |
| 8045 | From [email protected] Sun May 6 22:16:47 2001 |
| 8046 | From: [email protected] |
| 8047 | To: [email protected] |
| 8048 | X-Agent: Agent A |
| 8049 | Received: (from [email protected]) |
| 8050 | by example.org id fERKR9N16790 |
| 8051 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 8052 | X-Agent: Agent 22 |
| 8053 | X-Agent: Agent C |
| 8054 | Subject: Ping |
| 8055 | |
| 8056 | Test message, please discard. |
| 8057 | |
| 8058 | _ATEOF |
| 8059 | |
| 8060 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 8061 | sed '/^X-IMAPbase:/d;/^Status:/d;/^X-UID:/d;s/ *\$//' mailbox |
| 8062 | |
| 8063 | " |
| 8064 | at_fn_check_prepare_notrace 'a `...` command substitution' "delheader.at:60" |
| 8065 | ( $at_check_trace; |
| 8066 | |
| 8067 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8068 | |
| 8069 | cwd=`pwd` |
| 8070 | cat >>prog<<EOT |
| 8071 | require "editheader"; |
| 8072 | deleteheader :index 1 "X-Agent"; |
| 8073 | |
| 8074 | EOT |
| 8075 | |
| 8076 | cat >mailbox <<'_ATEOF' |
| 8077 | From [email protected] Sun May 6 22:16:47 2001 |
| 8078 | From: [email protected] |
| 8079 | To: [email protected] |
| 8080 | X-Agent: Agent A |
| 8081 | Received: (from [email protected]) |
| 8082 | by example.org id fERKR9N16790 |
| 8083 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 8084 | X-Agent: Agent 22 |
| 8085 | X-Agent: Agent C |
| 8086 | Subject: Ping |
| 8087 | |
| 8088 | Test message, please discard. |
| 8089 | |
| 8090 | _ATEOF |
| 8091 | |
| 8092 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 8093 | sed '/^X-IMAPbase:/d;/^Status:/d;/^X-UID:/d;s/ *$//' mailbox |
| 8094 | |
| 8095 | |
| 8096 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8097 | at_status=$? at_failed=false |
| 8098 | $at_check_filter |
| 8099 | echo >>"$at_stderr"; printf "%s\n" "DELETEHEADER on msg uid 1: X-Agent |
| 8100 | " | \ |
| 8101 | $at_diff - "$at_stderr" || at_failed=: |
| 8102 | echo >>"$at_stdout"; printf "%s\n" "From [email protected] Sun May 6 22:16:47 2001 |
| 8103 | From: [email protected] |
| 8104 | To: [email protected] |
| 8105 | Received: (from [email protected]) |
| 8106 | by example.org id fERKR9N16790 |
| 8107 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 8108 | X-Agent: Agent 22 |
| 8109 | X-Agent: Agent C |
| 8110 | Subject: Ping |
| 8111 | |
| 8112 | Test message, please discard. |
| 8113 | |
| 8114 | " | \ |
| 8115 | $at_diff - "$at_stdout" || at_failed=: |
| 8116 | at_fn_check_status 0 $at_status "$at_srcdir/delheader.at:60" |
| 8117 | $at_failed && at_fn_log_failure |
| 8118 | $at_traceon; } |
| 8119 | |
| 8120 | |
| 8121 | set +x |
| 8122 | $at_times_p && times >"$at_times_file" |
| 8123 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8124 | read at_status <"$at_status_file" |
| 8125 | #AT_STOP_86 |
| 8126 | #AT_START_87 |
| 8127 | at_fn_group_banner 87 'delheader.at:84' \ |
| 8128 | "deleteheader: delete index backwards" " " 7 |
| 8129 | at_xfail=no |
| 8130 | ( |
| 8131 | printf "%s\n" "87. $at_setup_line: testing $at_desc ..." |
| 8132 | $at_traceon |
| 8133 | |
| 8134 | |
| 8135 | |
| 8136 | { set +x |
| 8137 | printf "%s\n" "$at_srcdir/delheader.at:84: |
| 8138 | |
| 8139 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8140 | |
| 8141 | cwd=\`pwd\` |
| 8142 | cat >>prog<<EOT |
| 8143 | require \"editheader\"; |
| 8144 | deleteheader :index 2 :last \"X-Agent\"; |
| 8145 | |
| 8146 | EOT |
| 8147 | |
| 8148 | cat >mailbox <<'_ATEOF' |
| 8149 | From [email protected] Sun May 6 22:16:47 2001 |
| 8150 | From: [email protected] |
| 8151 | To: [email protected] |
| 8152 | X-Agent: Agent A |
| 8153 | Received: (from [email protected]) |
| 8154 | by example.org id fERKR9N16790 |
| 8155 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 8156 | X-Agent: Agent 22 |
| 8157 | X-Agent: Agent C |
| 8158 | Subject: Ping |
| 8159 | |
| 8160 | Test message, please discard. |
| 8161 | |
| 8162 | _ATEOF |
| 8163 | |
| 8164 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 8165 | sed '/^X-IMAPbase:/d;/^Status:/d;/^X-UID:/d;s/ *\$//' mailbox |
| 8166 | |
| 8167 | " |
| 8168 | at_fn_check_prepare_notrace 'a `...` command substitution' "delheader.at:84" |
| 8169 | ( $at_check_trace; |
| 8170 | |
| 8171 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8172 | |
| 8173 | cwd=`pwd` |
| 8174 | cat >>prog<<EOT |
| 8175 | require "editheader"; |
| 8176 | deleteheader :index 2 :last "X-Agent"; |
| 8177 | |
| 8178 | EOT |
| 8179 | |
| 8180 | cat >mailbox <<'_ATEOF' |
| 8181 | From [email protected] Sun May 6 22:16:47 2001 |
| 8182 | From: [email protected] |
| 8183 | To: [email protected] |
| 8184 | X-Agent: Agent A |
| 8185 | Received: (from [email protected]) |
| 8186 | by example.org id fERKR9N16790 |
| 8187 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 8188 | X-Agent: Agent 22 |
| 8189 | X-Agent: Agent C |
| 8190 | Subject: Ping |
| 8191 | |
| 8192 | Test message, please discard. |
| 8193 | |
| 8194 | _ATEOF |
| 8195 | |
| 8196 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 8197 | sed '/^X-IMAPbase:/d;/^Status:/d;/^X-UID:/d;s/ *$//' mailbox |
| 8198 | |
| 8199 | |
| 8200 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8201 | at_status=$? at_failed=false |
| 8202 | $at_check_filter |
| 8203 | echo >>"$at_stderr"; printf "%s\n" "DELETEHEADER on msg uid 1: X-Agent |
| 8204 | " | \ |
| 8205 | $at_diff - "$at_stderr" || at_failed=: |
| 8206 | echo >>"$at_stdout"; printf "%s\n" "From [email protected] Sun May 6 22:16:47 2001 |
| 8207 | From: [email protected] |
| 8208 | To: [email protected] |
| 8209 | X-Agent: Agent A |
| 8210 | Received: (from [email protected]) |
| 8211 | by example.org id fERKR9N16790 |
| 8212 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 8213 | X-Agent: Agent C |
| 8214 | Subject: Ping |
| 8215 | |
| 8216 | Test message, please discard. |
| 8217 | |
| 8218 | " | \ |
| 8219 | $at_diff - "$at_stdout" || at_failed=: |
| 8220 | at_fn_check_status 0 $at_status "$at_srcdir/delheader.at:84" |
| 8221 | $at_failed && at_fn_log_failure |
| 8222 | $at_traceon; } |
| 8223 | |
| 8224 | |
| 8225 | set +x |
| 8226 | $at_times_p && times >"$at_times_file" |
| 8227 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8228 | read at_status <"$at_status_file" |
| 8229 | #AT_STOP_87 |
| 8230 | #AT_START_88 |
| 8231 | at_fn_group_banner 88 'delheader.at:108' \ |
| 8232 | "deleteheader: delete regex" " " 7 |
| 8233 | at_xfail=no |
| 8234 | ( |
| 8235 | printf "%s\n" "88. $at_setup_line: testing $at_desc ..." |
| 8236 | $at_traceon |
| 8237 | |
| 8238 | |
| 8239 | |
| 8240 | { set +x |
| 8241 | printf "%s\n" "$at_srcdir/delheader.at:108: |
| 8242 | |
| 8243 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8244 | |
| 8245 | cwd=\`pwd\` |
| 8246 | cat >>prog<<EOT |
| 8247 | require \"editheader\"; |
| 8248 | deleteheader :regex \"X-Agent\" \"Agent [A-Z]\"; |
| 8249 | |
| 8250 | EOT |
| 8251 | |
| 8252 | cat >mailbox <<'_ATEOF' |
| 8253 | From [email protected] Sun May 6 22:16:47 2001 |
| 8254 | From: [email protected] |
| 8255 | To: [email protected] |
| 8256 | X-Agent: Agent A |
| 8257 | Received: (from [email protected]) |
| 8258 | by example.org id fERKR9N16790 |
| 8259 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 8260 | X-Agent: Agent 22 |
| 8261 | X-Agent: Agent C |
| 8262 | Subject: Ping |
| 8263 | |
| 8264 | Test message, please discard. |
| 8265 | |
| 8266 | _ATEOF |
| 8267 | |
| 8268 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog |
| 8269 | sed '/^X-IMAPbase:/d;/^Status:/d;/^X-UID:/d;s/ *\$//' mailbox |
| 8270 | |
| 8271 | " |
| 8272 | at_fn_check_prepare_notrace 'a `...` command substitution' "delheader.at:108" |
| 8273 | ( $at_check_trace; |
| 8274 | |
| 8275 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8276 | |
| 8277 | cwd=`pwd` |
| 8278 | cat >>prog<<EOT |
| 8279 | require "editheader"; |
| 8280 | deleteheader :regex "X-Agent" "Agent [A-Z]"; |
| 8281 | |
| 8282 | EOT |
| 8283 | |
| 8284 | cat >mailbox <<'_ATEOF' |
| 8285 | From [email protected] Sun May 6 22:16:47 2001 |
| 8286 | From: [email protected] |
| 8287 | To: [email protected] |
| 8288 | X-Agent: Agent A |
| 8289 | Received: (from [email protected]) |
| 8290 | by example.org id fERKR9N16790 |
| 8291 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 8292 | X-Agent: Agent 22 |
| 8293 | X-Agent: Agent C |
| 8294 | Subject: Ping |
| 8295 | |
| 8296 | Test message, please discard. |
| 8297 | |
| 8298 | _ATEOF |
| 8299 | |
| 8300 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog |
| 8301 | sed '/^X-IMAPbase:/d;/^Status:/d;/^X-UID:/d;s/ *$//' mailbox |
| 8302 | |
| 8303 | |
| 8304 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8305 | at_status=$? at_failed=false |
| 8306 | $at_check_filter |
| 8307 | echo >>"$at_stderr"; printf "%s\n" "DELETEHEADER on msg uid 1: X-Agent (values) |
| 8308 | " | \ |
| 8309 | $at_diff - "$at_stderr" || at_failed=: |
| 8310 | echo >>"$at_stdout"; printf "%s\n" "From [email protected] Sun May 6 22:16:47 2001 |
| 8311 | From: [email protected] |
| 8312 | To: [email protected] |
| 8313 | Received: (from [email protected]) |
| 8314 | by example.org id fERKR9N16790 |
| 8315 | for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 |
| 8316 | X-Agent: Agent 22 |
| 8317 | Subject: Ping |
| 8318 | |
| 8319 | Test message, please discard. |
| 8320 | |
| 8321 | " | \ |
| 8322 | $at_diff - "$at_stdout" || at_failed=: |
| 8323 | at_fn_check_status 0 $at_status "$at_srcdir/delheader.at:108" |
| 8324 | $at_failed && at_fn_log_failure |
| 8325 | $at_traceon; } |
| 8326 | |
| 8327 | |
| 8328 | set +x |
| 8329 | $at_times_p && times >"$at_times_file" |
| 8330 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8331 | read at_status <"$at_status_file" |
| 8332 | #AT_STOP_88 |
| 8333 | #AT_START_89 |
| 8334 | at_fn_group_banner 89 'vacation.at:20' \ |
| 8335 | "vacation: default" " " 8 |
| 8336 | at_xfail=no |
| 8337 | ( |
| 8338 | printf "%s\n" "89. $at_setup_line: testing $at_desc ..." |
| 8339 | $at_traceon |
| 8340 | |
| 8341 | |
| 8342 | |
| 8343 | { set +x |
| 8344 | printf "%s\n" "$at_srcdir/vacation.at:20: |
| 8345 | |
| 8346 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8347 | |
| 8348 | cwd=\`pwd\` |
| 8349 | cat >>prog<<EOT |
| 8350 | require \"vacation\"; |
| 8351 | |
| 8352 | vacation :database \"vacation.db\" \"I'm on vacation\"; |
| 8353 | |
| 8354 | EOT |
| 8355 | |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 8360 | if test -e mailbox/sieve.mbox; then |
| 8361 | |
| 8362 | # First, set all modes to +w |
| 8363 | find mailbox/sieve.mbox | xargs chmod +w |
| 8364 | # Then, remove executable bit from regular files |
| 8365 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 8366 | |
| 8367 | else |
| 8368 | |
| 8369 | # First, set all modes to +w |
| 8370 | find mailbox | xargs chmod +w |
| 8371 | # Then, remove executable bit from regular files |
| 8372 | find mailbox -type f | xargs chmod -x |
| 8373 | |
| 8374 | fi |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | MAIL_DUMP=\`pwd\`/mta.diag |
| 8379 | MAIL_DUMP_APPEND=1 |
| 8380 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 8381 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit 1 |
| 8382 | cat \$MAIL_DUMP |
| 8383 | |
| 8384 | " |
| 8385 | at_fn_check_prepare_notrace 'a `...` command substitution' "vacation.at:20" |
| 8386 | ( $at_check_trace; |
| 8387 | |
| 8388 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8389 | |
| 8390 | cwd=`pwd` |
| 8391 | cat >>prog<<EOT |
| 8392 | require "vacation"; |
| 8393 | |
| 8394 | vacation :database "vacation.db" "I'm on vacation"; |
| 8395 | |
| 8396 | EOT |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | |
| 8401 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 8402 | if test -e mailbox/sieve.mbox; then |
| 8403 | |
| 8404 | # First, set all modes to +w |
| 8405 | find mailbox/sieve.mbox | xargs chmod +w |
| 8406 | # Then, remove executable bit from regular files |
| 8407 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 8408 | |
| 8409 | else |
| 8410 | |
| 8411 | # First, set all modes to +w |
| 8412 | find mailbox | xargs chmod +w |
| 8413 | # Then, remove executable bit from regular files |
| 8414 | find mailbox -type f | xargs chmod -x |
| 8415 | |
| 8416 | fi |
| 8417 | |
| 8418 | |
| 8419 | |
| 8420 | MAIL_DUMP=`pwd`/mta.diag |
| 8421 | MAIL_DUMP_APPEND=1 |
| 8422 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 8423 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit 1 |
| 8424 | cat $MAIL_DUMP |
| 8425 | |
| 8426 | |
| 8427 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8428 | at_status=$? at_failed=false |
| 8429 | $at_check_filter |
| 8430 | echo >>"$at_stderr"; printf "%s\n" "VACATION on msg uid 1 |
| 8431 | VACATION on msg uid 2 |
| 8432 | VACATION on msg uid 3 |
| 8433 | " | \ |
| 8434 | $at_diff - "$at_stderr" || at_failed=: |
| 8435 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 8436 | SENDER: [email protected] |
| 8437 | NRCPT: 1 |
| 8438 | RCPT[0]: [email protected] |
| 8439 | LENGTH: 320 |
| 8440 | MIME-Version: 1.0 |
| 8441 | Content-Type: text/plain;charset=UTF-8 |
| 8442 | Content-Transfer-Encoding: 8bit |
| 8443 | To: [email protected] |
| 8444 | Subject: =?UTF-8?Q?Re:_Coffee?= |
| 8445 | In-Reply-To: Your message of Fri, 28 Dec 2001 23:28:08 +0200 |
| 8446 | <[email protected]> |
| 8447 | References: <[email protected]> |
| 8448 | |
| 8449 | I'm on vacation |
| 8450 | " | \ |
| 8451 | $at_diff - "$at_stdout" || at_failed=: |
| 8452 | at_fn_check_status 0 $at_status "$at_srcdir/vacation.at:20" |
| 8453 | $at_failed && at_fn_log_failure |
| 8454 | $at_traceon; } |
| 8455 | |
| 8456 | |
| 8457 | set +x |
| 8458 | $at_times_p && times >"$at_times_file" |
| 8459 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8460 | read at_status <"$at_status_file" |
| 8461 | #AT_STOP_89 |
| 8462 | #AT_START_90 |
| 8463 | at_fn_group_banner 90 'vacation.at:53' \ |
| 8464 | "vacation: aliases" " " 8 |
| 8465 | at_xfail=no |
| 8466 | ( |
| 8467 | printf "%s\n" "90. $at_setup_line: testing $at_desc ..." |
| 8468 | $at_traceon |
| 8469 | |
| 8470 | |
| 8471 | |
| 8472 | { set +x |
| 8473 | printf "%s\n" "$at_srcdir/vacation.at:53: |
| 8474 | |
| 8475 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8476 | |
| 8477 | cwd=\`pwd\` |
| 8478 | cat >>prog<<EOT |
| 8479 | require \"vacation\"; |
| 8480 | |
| 8481 | vacation :database \"vacation.db\" :aliases [ \"[email protected]\" ] \"I'm on vacation\"; |
| 8482 | |
| 8483 | EOT |
| 8484 | |
| 8485 | |
| 8486 | |
| 8487 | |
| 8488 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 8489 | if test -e mailbox/sieve.mbox; then |
| 8490 | |
| 8491 | # First, set all modes to +w |
| 8492 | find mailbox/sieve.mbox | xargs chmod +w |
| 8493 | # Then, remove executable bit from regular files |
| 8494 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 8495 | |
| 8496 | else |
| 8497 | |
| 8498 | # First, set all modes to +w |
| 8499 | find mailbox | xargs chmod +w |
| 8500 | # Then, remove executable bit from regular files |
| 8501 | find mailbox -type f | xargs chmod -x |
| 8502 | |
| 8503 | fi |
| 8504 | |
| 8505 | |
| 8506 | |
| 8507 | MAIL_DUMP=\`pwd\`/mta.diag |
| 8508 | MAIL_DUMP_APPEND=1 |
| 8509 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 8510 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit 1 |
| 8511 | cat \$MAIL_DUMP |
| 8512 | |
| 8513 | " |
| 8514 | at_fn_check_prepare_notrace 'a `...` command substitution' "vacation.at:53" |
| 8515 | ( $at_check_trace; |
| 8516 | |
| 8517 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8518 | |
| 8519 | cwd=`pwd` |
| 8520 | cat >>prog<<EOT |
| 8521 | require "vacation"; |
| 8522 | |
| 8523 | vacation :database "vacation.db" :aliases [ "[email protected]" ] "I'm on vacation"; |
| 8524 | |
| 8525 | EOT |
| 8526 | |
| 8527 | |
| 8528 | |
| 8529 | |
| 8530 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 8531 | if test -e mailbox/sieve.mbox; then |
| 8532 | |
| 8533 | # First, set all modes to +w |
| 8534 | find mailbox/sieve.mbox | xargs chmod +w |
| 8535 | # Then, remove executable bit from regular files |
| 8536 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 8537 | |
| 8538 | else |
| 8539 | |
| 8540 | # First, set all modes to +w |
| 8541 | find mailbox | xargs chmod +w |
| 8542 | # Then, remove executable bit from regular files |
| 8543 | find mailbox -type f | xargs chmod -x |
| 8544 | |
| 8545 | fi |
| 8546 | |
| 8547 | |
| 8548 | |
| 8549 | MAIL_DUMP=`pwd`/mta.diag |
| 8550 | MAIL_DUMP_APPEND=1 |
| 8551 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 8552 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit 1 |
| 8553 | cat $MAIL_DUMP |
| 8554 | |
| 8555 | |
| 8556 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8557 | at_status=$? at_failed=false |
| 8558 | $at_check_filter |
| 8559 | echo >>"$at_stderr"; printf "%s\n" "VACATION on msg uid 1 |
| 8560 | VACATION on msg uid 2 |
| 8561 | VACATION on msg uid 3 |
| 8562 | " | \ |
| 8563 | $at_diff - "$at_stderr" || at_failed=: |
| 8564 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 8565 | SENDER: [email protected] |
| 8566 | NRCPT: 1 |
| 8567 | RCPT[0]: [email protected] |
| 8568 | LENGTH: 239 |
| 8569 | MIME-Version: 1.0 |
| 8570 | Content-Type: text/plain;charset=UTF-8 |
| 8571 | Content-Transfer-Encoding: 8bit |
| 8572 | To: [email protected] |
| 8573 | Subject: =?UTF-8?Q?Re:_I_have_a_present_for_you?= |
| 8574 | In-Reply-To: Your message of Sun May 6 22:16:47 2001 |
| 8575 | |
| 8576 | I'm on vacation |
| 8577 | MSGID: 0001 |
| 8578 | SENDER: [email protected] |
| 8579 | NRCPT: 1 |
| 8580 | RCPT[0]: [email protected] |
| 8581 | LENGTH: 320 |
| 8582 | MIME-Version: 1.0 |
| 8583 | Content-Type: text/plain;charset=UTF-8 |
| 8584 | Content-Transfer-Encoding: 8bit |
| 8585 | To: [email protected] |
| 8586 | Subject: =?UTF-8?Q?Re:_Coffee?= |
| 8587 | In-Reply-To: Your message of Fri, 28 Dec 2001 23:28:08 +0200 |
| 8588 | <[email protected]> |
| 8589 | References: <[email protected]> |
| 8590 | |
| 8591 | I'm on vacation |
| 8592 | " | \ |
| 8593 | $at_diff - "$at_stdout" || at_failed=: |
| 8594 | at_fn_check_status 0 $at_status "$at_srcdir/vacation.at:53" |
| 8595 | $at_failed && at_fn_log_failure |
| 8596 | $at_traceon; } |
| 8597 | |
| 8598 | |
| 8599 | set +x |
| 8600 | $at_times_p && times >"$at_times_file" |
| 8601 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8602 | read at_status <"$at_status_file" |
| 8603 | #AT_STOP_90 |
| 8604 | #AT_START_91 |
| 8605 | at_fn_group_banner 91 'vacation.at:99' \ |
| 8606 | "vacation: always_reply" " " 8 |
| 8607 | at_xfail=no |
| 8608 | ( |
| 8609 | printf "%s\n" "91. $at_setup_line: testing $at_desc ..." |
| 8610 | $at_traceon |
| 8611 | |
| 8612 | |
| 8613 | |
| 8614 | { set +x |
| 8615 | printf "%s\n" "$at_srcdir/vacation.at:99: |
| 8616 | |
| 8617 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8618 | |
| 8619 | cwd=\`pwd\` |
| 8620 | cat >>prog<<EOT |
| 8621 | require \"vacation\"; |
| 8622 | |
| 8623 | vacation :database \"vacation.db\" :always_reply \"I'm on vacation\"; |
| 8624 | |
| 8625 | EOT |
| 8626 | |
| 8627 | |
| 8628 | |
| 8629 | |
| 8630 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 8631 | if test -e mailbox/sieve.mbox; then |
| 8632 | |
| 8633 | # First, set all modes to +w |
| 8634 | find mailbox/sieve.mbox | xargs chmod +w |
| 8635 | # Then, remove executable bit from regular files |
| 8636 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 8637 | |
| 8638 | else |
| 8639 | |
| 8640 | # First, set all modes to +w |
| 8641 | find mailbox | xargs chmod +w |
| 8642 | # Then, remove executable bit from regular files |
| 8643 | find mailbox -type f | xargs chmod -x |
| 8644 | |
| 8645 | fi |
| 8646 | |
| 8647 | |
| 8648 | |
| 8649 | MAIL_DUMP=\`pwd\`/mta.diag |
| 8650 | MAIL_DUMP_APPEND=1 |
| 8651 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 8652 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit 1 |
| 8653 | cat \$MAIL_DUMP |
| 8654 | |
| 8655 | " |
| 8656 | at_fn_check_prepare_notrace 'a `...` command substitution' "vacation.at:99" |
| 8657 | ( $at_check_trace; |
| 8658 | |
| 8659 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8660 | |
| 8661 | cwd=`pwd` |
| 8662 | cat >>prog<<EOT |
| 8663 | require "vacation"; |
| 8664 | |
| 8665 | vacation :database "vacation.db" :always_reply "I'm on vacation"; |
| 8666 | |
| 8667 | EOT |
| 8668 | |
| 8669 | |
| 8670 | |
| 8671 | |
| 8672 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 8673 | if test -e mailbox/sieve.mbox; then |
| 8674 | |
| 8675 | # First, set all modes to +w |
| 8676 | find mailbox/sieve.mbox | xargs chmod +w |
| 8677 | # Then, remove executable bit from regular files |
| 8678 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 8679 | |
| 8680 | else |
| 8681 | |
| 8682 | # First, set all modes to +w |
| 8683 | find mailbox | xargs chmod +w |
| 8684 | # Then, remove executable bit from regular files |
| 8685 | find mailbox -type f | xargs chmod -x |
| 8686 | |
| 8687 | fi |
| 8688 | |
| 8689 | |
| 8690 | |
| 8691 | MAIL_DUMP=`pwd`/mta.diag |
| 8692 | MAIL_DUMP_APPEND=1 |
| 8693 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 8694 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit 1 |
| 8695 | cat $MAIL_DUMP |
| 8696 | |
| 8697 | |
| 8698 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8699 | at_status=$? at_failed=false |
| 8700 | $at_check_filter |
| 8701 | echo >>"$at_stderr"; printf "%s\n" "VACATION on msg uid 1 |
| 8702 | VACATION on msg uid 2 |
| 8703 | VACATION on msg uid 3 |
| 8704 | " | \ |
| 8705 | $at_diff - "$at_stderr" || at_failed=: |
| 8706 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 8707 | SENDER: [email protected] |
| 8708 | NRCPT: 1 |
| 8709 | RCPT[0]: [email protected] |
| 8710 | LENGTH: 239 |
| 8711 | MIME-Version: 1.0 |
| 8712 | Content-Type: text/plain;charset=UTF-8 |
| 8713 | Content-Transfer-Encoding: 8bit |
| 8714 | To: [email protected] |
| 8715 | Subject: =?UTF-8?Q?Re:_I_have_a_present_for_you?= |
| 8716 | In-Reply-To: Your message of Sun May 6 22:16:47 2001 |
| 8717 | |
| 8718 | I'm on vacation |
| 8719 | MSGID: 0001 |
| 8720 | SENDER: [email protected] |
| 8721 | NRCPT: 1 |
| 8722 | RCPT[0]: [email protected] |
| 8723 | LENGTH: 231 |
| 8724 | MIME-Version: 1.0 |
| 8725 | Content-Type: text/plain;charset=UTF-8 |
| 8726 | Content-Transfer-Encoding: 8bit |
| 8727 | To: [email protected] |
| 8728 | Subject: =?UTF-8?Q?Re:_\$\$\$_YOU,_TOO,_CAN_BE_A_MILLIONAIRE!_\$\$\$?= |
| 8729 | In-Reply-To: Your message of TBD |
| 8730 | |
| 8731 | I'm on vacation |
| 8732 | MSGID: 0001 |
| 8733 | SENDER: [email protected] |
| 8734 | NRCPT: 1 |
| 8735 | RCPT[0]: [email protected] |
| 8736 | LENGTH: 320 |
| 8737 | MIME-Version: 1.0 |
| 8738 | Content-Type: text/plain;charset=UTF-8 |
| 8739 | Content-Transfer-Encoding: 8bit |
| 8740 | To: [email protected] |
| 8741 | Subject: =?UTF-8?Q?Re:_Coffee?= |
| 8742 | In-Reply-To: Your message of Fri, 28 Dec 2001 23:28:08 +0200 |
| 8743 | <[email protected]> |
| 8744 | References: <[email protected]> |
| 8745 | |
| 8746 | I'm on vacation |
| 8747 | " | \ |
| 8748 | $at_diff - "$at_stdout" || at_failed=: |
| 8749 | at_fn_check_status 0 $at_status "$at_srcdir/vacation.at:99" |
| 8750 | $at_failed && at_fn_log_failure |
| 8751 | $at_traceon; } |
| 8752 | |
| 8753 | |
| 8754 | set +x |
| 8755 | $at_times_p && times >"$at_times_file" |
| 8756 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8757 | read at_status <"$at_status_file" |
| 8758 | #AT_STOP_91 |
| 8759 | #AT_START_92 |
| 8760 | at_fn_group_banner 92 'vacation.at:158' \ |
| 8761 | "vacation: database matching" " " 8 |
| 8762 | at_xfail=no |
| 8763 | ( |
| 8764 | printf "%s\n" "92. $at_setup_line: testing $at_desc ..." |
| 8765 | $at_traceon |
| 8766 | |
| 8767 | |
| 8768 | |
| 8769 | { set +x |
| 8770 | printf "%s\n" "$at_srcdir/vacation.at:158: |
| 8771 | |
| 8772 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8773 | |
| 8774 | cwd=\`pwd\` |
| 8775 | cat >>prog<<EOT |
| 8776 | require \"vacation\"; |
| 8777 | |
| 8778 | vacation :database \"vacation.db\" :always_reply \"I'm on vacation\"; |
| 8779 | |
| 8780 | EOT |
| 8781 | |
| 8782 | |
| 8783 | |
| 8784 | |
| 8785 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 8786 | if test -e mailbox/sieve.mbox; then |
| 8787 | |
| 8788 | # First, set all modes to +w |
| 8789 | find mailbox/sieve.mbox | xargs chmod +w |
| 8790 | # Then, remove executable bit from regular files |
| 8791 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 8792 | |
| 8793 | else |
| 8794 | |
| 8795 | # First, set all modes to +w |
| 8796 | find mailbox | xargs chmod +w |
| 8797 | # Then, remove executable bit from regular files |
| 8798 | find mailbox -type f | xargs chmod -x |
| 8799 | |
| 8800 | fi |
| 8801 | |
| 8802 | |
| 8803 | |
| 8804 | MAIL_DUMP=\`pwd\`/mta.diag |
| 8805 | MAIL_DUMP_APPEND=1 |
| 8806 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 8807 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit 1 |
| 8808 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit 1 |
| 8809 | cat \$MAIL_DUMP |
| 8810 | |
| 8811 | " |
| 8812 | at_fn_check_prepare_notrace 'a `...` command substitution' "vacation.at:158" |
| 8813 | ( $at_check_trace; |
| 8814 | |
| 8815 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8816 | |
| 8817 | cwd=`pwd` |
| 8818 | cat >>prog<<EOT |
| 8819 | require "vacation"; |
| 8820 | |
| 8821 | vacation :database "vacation.db" :always_reply "I'm on vacation"; |
| 8822 | |
| 8823 | EOT |
| 8824 | |
| 8825 | |
| 8826 | |
| 8827 | |
| 8828 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 8829 | if test -e mailbox/sieve.mbox; then |
| 8830 | |
| 8831 | # First, set all modes to +w |
| 8832 | find mailbox/sieve.mbox | xargs chmod +w |
| 8833 | # Then, remove executable bit from regular files |
| 8834 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 8835 | |
| 8836 | else |
| 8837 | |
| 8838 | # First, set all modes to +w |
| 8839 | find mailbox | xargs chmod +w |
| 8840 | # Then, remove executable bit from regular files |
| 8841 | find mailbox -type f | xargs chmod -x |
| 8842 | |
| 8843 | fi |
| 8844 | |
| 8845 | |
| 8846 | |
| 8847 | MAIL_DUMP=`pwd`/mta.diag |
| 8848 | MAIL_DUMP_APPEND=1 |
| 8849 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 8850 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit 1 |
| 8851 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit 1 |
| 8852 | cat $MAIL_DUMP |
| 8853 | |
| 8854 | |
| 8855 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8856 | at_status=$? at_failed=false |
| 8857 | $at_check_filter |
| 8858 | echo >>"$at_stderr"; printf "%s\n" "VACATION on msg uid 1 |
| 8859 | VACATION on msg uid 2 |
| 8860 | VACATION on msg uid 3 |
| 8861 | VACATION on msg uid 1 |
| 8862 | VACATION on msg uid 2 |
| 8863 | VACATION on msg uid 3 |
| 8864 | " | \ |
| 8865 | $at_diff - "$at_stderr" || at_failed=: |
| 8866 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 8867 | SENDER: [email protected] |
| 8868 | NRCPT: 1 |
| 8869 | RCPT[0]: [email protected] |
| 8870 | LENGTH: 239 |
| 8871 | MIME-Version: 1.0 |
| 8872 | Content-Type: text/plain;charset=UTF-8 |
| 8873 | Content-Transfer-Encoding: 8bit |
| 8874 | To: [email protected] |
| 8875 | Subject: =?UTF-8?Q?Re:_I_have_a_present_for_you?= |
| 8876 | In-Reply-To: Your message of Sun May 6 22:16:47 2001 |
| 8877 | |
| 8878 | I'm on vacation |
| 8879 | MSGID: 0001 |
| 8880 | SENDER: [email protected] |
| 8881 | NRCPT: 1 |
| 8882 | RCPT[0]: [email protected] |
| 8883 | LENGTH: 231 |
| 8884 | MIME-Version: 1.0 |
| 8885 | Content-Type: text/plain;charset=UTF-8 |
| 8886 | Content-Transfer-Encoding: 8bit |
| 8887 | To: [email protected] |
| 8888 | Subject: =?UTF-8?Q?Re:_\$\$\$_YOU,_TOO,_CAN_BE_A_MILLIONAIRE!_\$\$\$?= |
| 8889 | In-Reply-To: Your message of TBD |
| 8890 | |
| 8891 | I'm on vacation |
| 8892 | MSGID: 0001 |
| 8893 | SENDER: [email protected] |
| 8894 | NRCPT: 1 |
| 8895 | RCPT[0]: [email protected] |
| 8896 | LENGTH: 320 |
| 8897 | MIME-Version: 1.0 |
| 8898 | Content-Type: text/plain;charset=UTF-8 |
| 8899 | Content-Transfer-Encoding: 8bit |
| 8900 | To: [email protected] |
| 8901 | Subject: =?UTF-8?Q?Re:_Coffee?= |
| 8902 | In-Reply-To: Your message of Fri, 28 Dec 2001 23:28:08 +0200 |
| 8903 | <[email protected]> |
| 8904 | References: <[email protected]> |
| 8905 | |
| 8906 | I'm on vacation |
| 8907 | " | \ |
| 8908 | $at_diff - "$at_stdout" || at_failed=: |
| 8909 | at_fn_check_status 0 $at_status "$at_srcdir/vacation.at:158" |
| 8910 | $at_failed && at_fn_log_failure |
| 8911 | $at_traceon; } |
| 8912 | |
| 8913 | |
| 8914 | set +x |
| 8915 | $at_times_p && times >"$at_times_file" |
| 8916 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8917 | read at_status <"$at_status_file" |
| 8918 | #AT_STOP_92 |
| 8919 | #AT_START_93 |
| 8920 | at_fn_group_banner 93 'vacation.at:221' \ |
| 8921 | "vacation: mime" " " 8 |
| 8922 | at_xfail=no |
| 8923 | ( |
| 8924 | printf "%s\n" "93. $at_setup_line: testing $at_desc ..." |
| 8925 | $at_traceon |
| 8926 | |
| 8927 | |
| 8928 | |
| 8929 | { set +x |
| 8930 | printf "%s\n" "$at_srcdir/vacation.at:221: |
| 8931 | |
| 8932 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8933 | |
| 8934 | cwd=\`pwd\` |
| 8935 | cat >>prog<<EOT |
| 8936 | require \"vacation\"; |
| 8937 | |
| 8938 | vacation :database \"vacation.db\" :always_reply :mime \"I'm on vacation.\"; |
| 8939 | |
| 8940 | EOT |
| 8941 | |
| 8942 | |
| 8943 | |
| 8944 | |
| 8945 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 8946 | if test -e mailbox/sieve.mbox; then |
| 8947 | |
| 8948 | # First, set all modes to +w |
| 8949 | find mailbox/sieve.mbox | xargs chmod +w |
| 8950 | # Then, remove executable bit from regular files |
| 8951 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 8952 | |
| 8953 | else |
| 8954 | |
| 8955 | # First, set all modes to +w |
| 8956 | find mailbox | xargs chmod +w |
| 8957 | # Then, remove executable bit from regular files |
| 8958 | find mailbox -type f | xargs chmod -x |
| 8959 | |
| 8960 | fi |
| 8961 | |
| 8962 | |
| 8963 | |
| 8964 | MAIL_DUMP=\`pwd\`/mta.diag |
| 8965 | MAIL_DUMP_APPEND=1 |
| 8966 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 8967 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit 1 |
| 8968 | cat \$MAIL_DUMP |
| 8969 | |
| 8970 | " |
| 8971 | at_fn_check_prepare_notrace 'a `...` command substitution' "vacation.at:221" |
| 8972 | ( $at_check_trace; |
| 8973 | |
| 8974 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 8975 | |
| 8976 | cwd=`pwd` |
| 8977 | cat >>prog<<EOT |
| 8978 | require "vacation"; |
| 8979 | |
| 8980 | vacation :database "vacation.db" :always_reply :mime "I'm on vacation."; |
| 8981 | |
| 8982 | EOT |
| 8983 | |
| 8984 | |
| 8985 | |
| 8986 | |
| 8987 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 8988 | if test -e mailbox/sieve.mbox; then |
| 8989 | |
| 8990 | # First, set all modes to +w |
| 8991 | find mailbox/sieve.mbox | xargs chmod +w |
| 8992 | # Then, remove executable bit from regular files |
| 8993 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 8994 | |
| 8995 | else |
| 8996 | |
| 8997 | # First, set all modes to +w |
| 8998 | find mailbox | xargs chmod +w |
| 8999 | # Then, remove executable bit from regular files |
| 9000 | find mailbox -type f | xargs chmod -x |
| 9001 | |
| 9002 | fi |
| 9003 | |
| 9004 | |
| 9005 | |
| 9006 | MAIL_DUMP=`pwd`/mta.diag |
| 9007 | MAIL_DUMP_APPEND=1 |
| 9008 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 9009 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit 1 |
| 9010 | cat $MAIL_DUMP |
| 9011 | |
| 9012 | |
| 9013 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9014 | at_status=$? at_failed=false |
| 9015 | $at_check_filter |
| 9016 | echo >>"$at_stderr"; printf "%s\n" "VACATION on msg uid 1 |
| 9017 | VACATION on msg uid 2 |
| 9018 | VACATION on msg uid 3 |
| 9019 | " | \ |
| 9020 | $at_diff - "$at_stderr" || at_failed=: |
| 9021 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 9022 | SENDER: [email protected] |
| 9023 | NRCPT: 1 |
| 9024 | RCPT[0]: [email protected] |
| 9025 | LENGTH: 250 |
| 9026 | MIME-Version: 1.0 |
| 9027 | Content-Type: text/plain;charset=UTF-8 |
| 9028 | Content-Transfer-Encoding: base64 |
| 9029 | To: [email protected] |
| 9030 | Subject: =?UTF-8?Q?Re:_I_have_a_present_for_you?= |
| 9031 | In-Reply-To: Your message of Sun May 6 22:16:47 2001 |
| 9032 | |
| 9033 | SSdtIG9uIHZhY2F0aW9uLg== |
| 9034 | MSGID: 0001 |
| 9035 | SENDER: [email protected] |
| 9036 | NRCPT: 1 |
| 9037 | RCPT[0]: [email protected] |
| 9038 | LENGTH: 242 |
| 9039 | MIME-Version: 1.0 |
| 9040 | Content-Type: text/plain;charset=UTF-8 |
| 9041 | Content-Transfer-Encoding: base64 |
| 9042 | To: [email protected] |
| 9043 | Subject: =?UTF-8?Q?Re:_\$\$\$_YOU,_TOO,_CAN_BE_A_MILLIONAIRE!_\$\$\$?= |
| 9044 | In-Reply-To: Your message of TBD |
| 9045 | |
| 9046 | SSdtIG9uIHZhY2F0aW9uLg== |
| 9047 | MSGID: 0001 |
| 9048 | SENDER: [email protected] |
| 9049 | NRCPT: 1 |
| 9050 | RCPT[0]: [email protected] |
| 9051 | LENGTH: 331 |
| 9052 | MIME-Version: 1.0 |
| 9053 | Content-Type: text/plain;charset=UTF-8 |
| 9054 | Content-Transfer-Encoding: base64 |
| 9055 | To: [email protected] |
| 9056 | Subject: =?UTF-8?Q?Re:_Coffee?= |
| 9057 | In-Reply-To: Your message of Fri, 28 Dec 2001 23:28:08 +0200 |
| 9058 | <[email protected]> |
| 9059 | References: <[email protected]> |
| 9060 | |
| 9061 | SSdtIG9uIHZhY2F0aW9uLg== |
| 9062 | " | \ |
| 9063 | $at_diff - "$at_stdout" || at_failed=: |
| 9064 | at_fn_check_status 0 $at_status "$at_srcdir/vacation.at:221" |
| 9065 | $at_failed && at_fn_log_failure |
| 9066 | $at_traceon; } |
| 9067 | |
| 9068 | |
| 9069 | set +x |
| 9070 | $at_times_p && times >"$at_times_file" |
| 9071 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9072 | read at_status <"$at_status_file" |
| 9073 | #AT_STOP_93 |
| 9074 | #AT_START_94 |
| 9075 | at_fn_group_banner 94 'vacation.at:280' \ |
| 9076 | "vacation: reply from RFC2822 file" " " 8 |
| 9077 | at_xfail=no |
| 9078 | ( |
| 9079 | printf "%s\n" "94. $at_setup_line: testing $at_desc ..." |
| 9080 | $at_traceon |
| 9081 | |
| 9082 | |
| 9083 | |
| 9084 | { set +x |
| 9085 | printf "%s\n" "$at_srcdir/vacation.at:280: |
| 9086 | |
| 9087 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 9088 | |
| 9089 | cwd=\`pwd\` |
| 9090 | cat >>prog<<EOT |
| 9091 | require \"vacation\"; |
| 9092 | |
| 9093 | vacation :database \"vacation.db\" :always_reply :rfc2822 :file \"reply\"; |
| 9094 | |
| 9095 | EOT |
| 9096 | cat >reply <<'_ATEOF' |
| 9097 | X-Mail-Processor: sieve |
| 9098 | |
| 9099 | I'm on vacation right now. |
| 9100 | I will attend to your message as soon as I'm back. |
| 9101 | |
| 9102 | Best regards, |
| 9103 | Ty Coon |
| 9104 | _ATEOF |
| 9105 | |
| 9106 | |
| 9107 | |
| 9108 | |
| 9109 | |
| 9110 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 9111 | if test -e mailbox/sieve.mbox; then |
| 9112 | |
| 9113 | # First, set all modes to +w |
| 9114 | find mailbox/sieve.mbox | xargs chmod +w |
| 9115 | # Then, remove executable bit from regular files |
| 9116 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 9117 | |
| 9118 | else |
| 9119 | |
| 9120 | # First, set all modes to +w |
| 9121 | find mailbox | xargs chmod +w |
| 9122 | # Then, remove executable bit from regular files |
| 9123 | find mailbox -type f | xargs chmod -x |
| 9124 | |
| 9125 | fi |
| 9126 | |
| 9127 | |
| 9128 | |
| 9129 | MAIL_DUMP=\`pwd\`/mta.diag |
| 9130 | MAIL_DUMP_APPEND=1 |
| 9131 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 9132 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit 1 |
| 9133 | cat \$MAIL_DUMP |
| 9134 | |
| 9135 | " |
| 9136 | at_fn_check_prepare_notrace 'a `...` command substitution' "vacation.at:280" |
| 9137 | ( $at_check_trace; |
| 9138 | |
| 9139 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 9140 | |
| 9141 | cwd=`pwd` |
| 9142 | cat >>prog<<EOT |
| 9143 | require "vacation"; |
| 9144 | |
| 9145 | vacation :database "vacation.db" :always_reply :rfc2822 :file "reply"; |
| 9146 | |
| 9147 | EOT |
| 9148 | cat >reply <<'_ATEOF' |
| 9149 | X-Mail-Processor: sieve |
| 9150 | |
| 9151 | I'm on vacation right now. |
| 9152 | I will attend to your message as soon as I'm back. |
| 9153 | |
| 9154 | Best regards, |
| 9155 | Ty Coon |
| 9156 | _ATEOF |
| 9157 | |
| 9158 | |
| 9159 | |
| 9160 | |
| 9161 | |
| 9162 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 9163 | if test -e mailbox/sieve.mbox; then |
| 9164 | |
| 9165 | # First, set all modes to +w |
| 9166 | find mailbox/sieve.mbox | xargs chmod +w |
| 9167 | # Then, remove executable bit from regular files |
| 9168 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 9169 | |
| 9170 | else |
| 9171 | |
| 9172 | # First, set all modes to +w |
| 9173 | find mailbox | xargs chmod +w |
| 9174 | # Then, remove executable bit from regular files |
| 9175 | find mailbox -type f | xargs chmod -x |
| 9176 | |
| 9177 | fi |
| 9178 | |
| 9179 | |
| 9180 | |
| 9181 | MAIL_DUMP=`pwd`/mta.diag |
| 9182 | MAIL_DUMP_APPEND=1 |
| 9183 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 9184 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit 1 |
| 9185 | cat $MAIL_DUMP |
| 9186 | |
| 9187 | |
| 9188 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9189 | at_status=$? at_failed=false |
| 9190 | $at_check_filter |
| 9191 | echo >>"$at_stderr"; printf "%s\n" "VACATION on msg uid 1 |
| 9192 | VACATION on msg uid 2 |
| 9193 | VACATION on msg uid 3 |
| 9194 | " | \ |
| 9195 | $at_diff - "$at_stderr" || at_failed=: |
| 9196 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 9197 | SENDER: [email protected] |
| 9198 | NRCPT: 1 |
| 9199 | RCPT[0]: [email protected] |
| 9200 | LENGTH: 260 |
| 9201 | X-Mail-Processor: sieve |
| 9202 | To: [email protected] |
| 9203 | Subject: =?UTF-8?Q?Re:_I_have_a_present_for_you?= |
| 9204 | In-Reply-To: Your message of Sun May 6 22:16:47 2001 |
| 9205 | |
| 9206 | I'm on vacation right now. |
| 9207 | I will attend to your message as soon as I'm back. |
| 9208 | |
| 9209 | Best regards, |
| 9210 | Ty Coon |
| 9211 | |
| 9212 | MSGID: 0001 |
| 9213 | SENDER: [email protected] |
| 9214 | NRCPT: 1 |
| 9215 | RCPT[0]: [email protected] |
| 9216 | LENGTH: 252 |
| 9217 | X-Mail-Processor: sieve |
| 9218 | To: [email protected] |
| 9219 | Subject: =?UTF-8?Q?Re:_\$\$\$_YOU,_TOO,_CAN_BE_A_MILLIONAIRE!_\$\$\$?= |
| 9220 | In-Reply-To: Your message of TBD |
| 9221 | |
| 9222 | I'm on vacation right now. |
| 9223 | I will attend to your message as soon as I'm back. |
| 9224 | |
| 9225 | Best regards, |
| 9226 | Ty Coon |
| 9227 | |
| 9228 | MSGID: 0001 |
| 9229 | SENDER: [email protected] |
| 9230 | NRCPT: 1 |
| 9231 | RCPT[0]: [email protected] |
| 9232 | LENGTH: 341 |
| 9233 | X-Mail-Processor: sieve |
| 9234 | To: [email protected] |
| 9235 | Subject: =?UTF-8?Q?Re:_Coffee?= |
| 9236 | In-Reply-To: Your message of Fri, 28 Dec 2001 23:28:08 +0200 |
| 9237 | <[email protected]> |
| 9238 | References: <[email protected]> |
| 9239 | |
| 9240 | I'm on vacation right now. |
| 9241 | I will attend to your message as soon as I'm back. |
| 9242 | |
| 9243 | Best regards, |
| 9244 | Ty Coon |
| 9245 | |
| 9246 | " | \ |
| 9247 | $at_diff - "$at_stdout" || at_failed=: |
| 9248 | at_fn_check_status 0 $at_status "$at_srcdir/vacation.at:280" |
| 9249 | $at_failed && at_fn_log_failure |
| 9250 | $at_traceon; } |
| 9251 | |
| 9252 | |
| 9253 | set +x |
| 9254 | $at_times_p && times >"$at_times_file" |
| 9255 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9256 | read at_status <"$at_status_file" |
| 9257 | #AT_STOP_94 |
| 9258 | #AT_START_95 |
| 9259 | at_fn_group_banner 95 'vacation.at:356' \ |
| 9260 | "vacation: reply body from file" " " 8 |
| 9261 | at_xfail=no |
| 9262 | ( |
| 9263 | printf "%s\n" "95. $at_setup_line: testing $at_desc ..." |
| 9264 | $at_traceon |
| 9265 | |
| 9266 | |
| 9267 | |
| 9268 | { set +x |
| 9269 | printf "%s\n" "$at_srcdir/vacation.at:356: |
| 9270 | |
| 9271 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 9272 | |
| 9273 | cwd=\`pwd\` |
| 9274 | cat >>prog<<EOT |
| 9275 | require \"vacation\"; |
| 9276 | |
| 9277 | vacation :database \"vacation.db\" :always_reply :file \"reply\"; |
| 9278 | |
| 9279 | EOT |
| 9280 | cat >reply <<'_ATEOF' |
| 9281 | I'm on vacation right now. |
| 9282 | I will attend to your message as soon as I'm back. |
| 9283 | |
| 9284 | Best regards, |
| 9285 | Ty Coon |
| 9286 | _ATEOF |
| 9287 | |
| 9288 | |
| 9289 | |
| 9290 | |
| 9291 | |
| 9292 | cp -r \$abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 9293 | if test -e mailbox/sieve.mbox; then |
| 9294 | |
| 9295 | # First, set all modes to +w |
| 9296 | find mailbox/sieve.mbox | xargs chmod +w |
| 9297 | # Then, remove executable bit from regular files |
| 9298 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 9299 | |
| 9300 | else |
| 9301 | |
| 9302 | # First, set all modes to +w |
| 9303 | find mailbox | xargs chmod +w |
| 9304 | # Then, remove executable bit from regular files |
| 9305 | find mailbox -type f | xargs chmod -x |
| 9306 | |
| 9307 | fi |
| 9308 | |
| 9309 | |
| 9310 | |
| 9311 | MAIL_DUMP=\`pwd\`/mta.diag |
| 9312 | MAIL_DUMP_APPEND=1 |
| 9313 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 9314 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix \"\${abs_top_builddir}/libmu_sieve/extensions\" -f ./mailbox prog || exit 1 |
| 9315 | cat ./mta.diag |
| 9316 | |
| 9317 | " |
| 9318 | at_fn_check_prepare_notrace 'a `...` command substitution' "vacation.at:356" |
| 9319 | ( $at_check_trace; |
| 9320 | |
| 9321 | sieve --show-config-options | grep '^HAVE_LIBLTDL' > /dev/null 2>&1 || exit 77 |
| 9322 | |
| 9323 | cwd=`pwd` |
| 9324 | cat >>prog<<EOT |
| 9325 | require "vacation"; |
| 9326 | |
| 9327 | vacation :database "vacation.db" :always_reply :file "reply"; |
| 9328 | |
| 9329 | EOT |
| 9330 | cat >reply <<'_ATEOF' |
| 9331 | I'm on vacation right now. |
| 9332 | I will attend to your message as soon as I'm back. |
| 9333 | |
| 9334 | Best regards, |
| 9335 | Ty Coon |
| 9336 | _ATEOF |
| 9337 | |
| 9338 | |
| 9339 | |
| 9340 | |
| 9341 | |
| 9342 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox mailbox |
| 9343 | if test -e mailbox/sieve.mbox; then |
| 9344 | |
| 9345 | # First, set all modes to +w |
| 9346 | find mailbox/sieve.mbox | xargs chmod +w |
| 9347 | # Then, remove executable bit from regular files |
| 9348 | find mailbox/sieve.mbox -type f | xargs chmod -x |
| 9349 | |
| 9350 | else |
| 9351 | |
| 9352 | # First, set all modes to +w |
| 9353 | find mailbox | xargs chmod +w |
| 9354 | # Then, remove executable bit from regular files |
| 9355 | find mailbox -type f | xargs chmod -x |
| 9356 | |
| 9357 | fi |
| 9358 | |
| 9359 | |
| 9360 | |
| 9361 | MAIL_DUMP=`pwd`/mta.diag |
| 9362 | MAIL_DUMP_APPEND=1 |
| 9363 | export MAIL_DUMP MAIL_DUMP_APPEND |
| 9364 | sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --libdir-prefix "${abs_top_builddir}/libmu_sieve/extensions" -f ./mailbox prog || exit 1 |
| 9365 | cat ./mta.diag |
| 9366 | |
| 9367 | |
| 9368 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9369 | at_status=$? at_failed=false |
| 9370 | $at_check_filter |
| 9371 | echo >>"$at_stderr"; printf "%s\n" "VACATION on msg uid 1 |
| 9372 | VACATION on msg uid 2 |
| 9373 | VACATION on msg uid 3 |
| 9374 | " | \ |
| 9375 | $at_diff - "$at_stderr" || at_failed=: |
| 9376 | echo >>"$at_stdout"; printf "%s\n" "MSGID: 0001 |
| 9377 | SENDER: [email protected] |
| 9378 | NRCPT: 1 |
| 9379 | RCPT[0]: [email protected] |
| 9380 | LENGTH: 325 |
| 9381 | MIME-Version: 1.0 |
| 9382 | Content-Type: text/plain;charset=UTF-8 |
| 9383 | Content-Transfer-Encoding: 8bit |
| 9384 | To: [email protected] |
| 9385 | Subject: =?UTF-8?Q?Re:_I_have_a_present_for_you?= |
| 9386 | In-Reply-To: Your message of Sun May 6 22:16:47 2001 |
| 9387 | |
| 9388 | I'm on vacation right now. |
| 9389 | I will attend to your message as soon as I'm back. |
| 9390 | |
| 9391 | Best regards, |
| 9392 | Ty Coon |
| 9393 | |
| 9394 | MSGID: 0001 |
| 9395 | SENDER: [email protected] |
| 9396 | NRCPT: 1 |
| 9397 | RCPT[0]: [email protected] |
| 9398 | LENGTH: 317 |
| 9399 | MIME-Version: 1.0 |
| 9400 | Content-Type: text/plain;charset=UTF-8 |
| 9401 | Content-Transfer-Encoding: 8bit |
| 9402 | To: [email protected] |
| 9403 | Subject: =?UTF-8?Q?Re:_\$\$\$_YOU,_TOO,_CAN_BE_A_MILLIONAIRE!_\$\$\$?= |
| 9404 | In-Reply-To: Your message of TBD |
| 9405 | |
| 9406 | I'm on vacation right now. |
| 9407 | I will attend to your message as soon as I'm back. |
| 9408 | |
| 9409 | Best regards, |
| 9410 | Ty Coon |
| 9411 | |
| 9412 | MSGID: 0001 |
| 9413 | SENDER: [email protected] |
| 9414 | NRCPT: 1 |
| 9415 | RCPT[0]: [email protected] |
| 9416 | LENGTH: 406 |
| 9417 | MIME-Version: 1.0 |
| 9418 | Content-Type: text/plain;charset=UTF-8 |
| 9419 | Content-Transfer-Encoding: 8bit |
| 9420 | To: [email protected] |
| 9421 | Subject: =?UTF-8?Q?Re:_Coffee?= |
| 9422 | In-Reply-To: Your message of Fri, 28 Dec 2001 23:28:08 +0200 |
| 9423 | <[email protected]> |
| 9424 | References: <[email protected]> |
| 9425 | |
| 9426 | I'm on vacation right now. |
| 9427 | I will attend to your message as soon as I'm back. |
| 9428 | |
| 9429 | Best regards, |
| 9430 | Ty Coon |
| 9431 | |
| 9432 | " | \ |
| 9433 | $at_diff - "$at_stdout" || at_failed=: |
| 9434 | at_fn_check_status 0 $at_status "$at_srcdir/vacation.at:356" |
| 9435 | $at_failed && at_fn_log_failure |
| 9436 | $at_traceon; } |
| 9437 | |
| 9438 | |
| 9439 | set +x |
| 9440 | $at_times_p && times >"$at_times_file" |
| 9441 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9442 | read at_status <"$at_status_file" |
| 9443 | #AT_STOP_95 |
| 9444 | #AT_START_96 |
| 9445 | at_fn_group_banner 96 'variables.at:19' \ |
| 9446 | "match variable" " " 9 |
| 9447 | at_xfail=no |
| 9448 | ( |
| 9449 | printf "%s\n" "96. $at_setup_line: testing $at_desc ..." |
| 9450 | $at_traceon |
| 9451 | |
| 9452 | |
| 9453 | |
| 9454 | |
| 9455 | |
| 9456 | |
| 9457 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 9458 | if test -e ./sieve.mbox; then |
| 9459 | |
| 9460 | # First, set all modes to +w |
| 9461 | find ./sieve.mbox | xargs chmod +w |
| 9462 | # Then, remove executable bit from regular files |
| 9463 | find ./sieve.mbox -type f | xargs chmod -x |
| 9464 | |
| 9465 | else |
| 9466 | |
| 9467 | # First, set all modes to +w |
| 9468 | find . | xargs chmod +w |
| 9469 | # Then, remove executable bit from regular files |
| 9470 | find . -type f | xargs chmod -x |
| 9471 | |
| 9472 | fi |
| 9473 | |
| 9474 | |
| 9475 | |
| 9476 | |
| 9477 | |
| 9478 | cat >prog <<'_ATEOF' |
| 9479 | require ["variables", "fileinto"]; |
| 9480 | if address :matches [ "To", "Cc" ] [ "*@**.com", "*@**.edu" ] |
| 9481 | { |
| 9482 | fileinto "INBOX.${3}.${1}"; |
| 9483 | } |
| 9484 | _ATEOF |
| 9485 | |
| 9486 | { set +x |
| 9487 | printf "%s\n" "$at_srcdir/variables.at:19: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9488 | " |
| 9489 | at_fn_check_prepare_notrace 'an embedded newline' "variables.at:19" |
| 9490 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9491 | |
| 9492 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9493 | at_status=$? at_failed=false |
| 9494 | $at_check_filter |
| 9495 | echo >>"$at_stderr"; printf "%s\n" "FILEINTO on msg uid 1: delivering into INBOX.acme.example.roadrunner |
| 9496 | FILEINTO on msg uid 2: delivering into INBOX.landru.example.rube |
| 9497 | IMPLICIT KEEP on msg uid 3 |
| 9498 | " | \ |
| 9499 | $at_diff - "$at_stderr" || at_failed=: |
| 9500 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9501 | at_fn_check_status 0 $at_status "$at_srcdir/variables.at:19" |
| 9502 | $at_failed && at_fn_log_failure |
| 9503 | $at_traceon; } |
| 9504 | |
| 9505 | set +x |
| 9506 | $at_times_p && times >"$at_times_file" |
| 9507 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9508 | read at_status <"$at_status_file" |
| 9509 | #AT_STOP_96 |
| 9510 | #AT_START_97 |
| 9511 | at_fn_group_banner 97 'variables.at:31' \ |
| 9512 | "set action" " " 9 |
| 9513 | at_xfail=no |
| 9514 | ( |
| 9515 | printf "%s\n" "97. $at_setup_line: testing $at_desc ..." |
| 9516 | $at_traceon |
| 9517 | |
| 9518 | |
| 9519 | |
| 9520 | |
| 9521 | |
| 9522 | |
| 9523 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 9524 | if test -e ./sieve.mbox; then |
| 9525 | |
| 9526 | # First, set all modes to +w |
| 9527 | find ./sieve.mbox | xargs chmod +w |
| 9528 | # Then, remove executable bit from regular files |
| 9529 | find ./sieve.mbox -type f | xargs chmod -x |
| 9530 | |
| 9531 | else |
| 9532 | |
| 9533 | # First, set all modes to +w |
| 9534 | find . | xargs chmod +w |
| 9535 | # Then, remove executable bit from regular files |
| 9536 | find . -type f | xargs chmod -x |
| 9537 | |
| 9538 | fi |
| 9539 | |
| 9540 | |
| 9541 | |
| 9542 | |
| 9543 | |
| 9544 | cat >prog <<'_ATEOF' |
| 9545 | require ["variables", "fileinto"]; |
| 9546 | set "name" "value"; |
| 9547 | fileinto "INBOX.${name}"; |
| 9548 | |
| 9549 | _ATEOF |
| 9550 | |
| 9551 | { set +x |
| 9552 | printf "%s\n" "$at_srcdir/variables.at:31: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9553 | " |
| 9554 | at_fn_check_prepare_notrace 'an embedded newline' "variables.at:31" |
| 9555 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9556 | |
| 9557 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9558 | at_status=$? at_failed=false |
| 9559 | $at_check_filter |
| 9560 | echo >>"$at_stderr"; printf "%s\n" "FILEINTO on msg uid 1: delivering into INBOX.value |
| 9561 | FILEINTO on msg uid 2: delivering into INBOX.value |
| 9562 | FILEINTO on msg uid 3: delivering into INBOX.value |
| 9563 | " | \ |
| 9564 | $at_diff - "$at_stderr" || at_failed=: |
| 9565 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9566 | at_fn_check_status 0 $at_status "$at_srcdir/variables.at:31" |
| 9567 | $at_failed && at_fn_log_failure |
| 9568 | $at_traceon; } |
| 9569 | |
| 9570 | set +x |
| 9571 | $at_times_p && times >"$at_times_file" |
| 9572 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9573 | read at_status <"$at_status_file" |
| 9574 | #AT_STOP_97 |
| 9575 | #AT_START_98 |
| 9576 | at_fn_group_banner 98 'variables.at:42' \ |
| 9577 | "variables with encoded characters" " " 9 |
| 9578 | at_xfail=no |
| 9579 | ( |
| 9580 | printf "%s\n" "98. $at_setup_line: testing $at_desc ..." |
| 9581 | $at_traceon |
| 9582 | |
| 9583 | |
| 9584 | |
| 9585 | |
| 9586 | |
| 9587 | |
| 9588 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 9589 | if test -e ./sieve.mbox; then |
| 9590 | |
| 9591 | # First, set all modes to +w |
| 9592 | find ./sieve.mbox | xargs chmod +w |
| 9593 | # Then, remove executable bit from regular files |
| 9594 | find ./sieve.mbox -type f | xargs chmod -x |
| 9595 | |
| 9596 | else |
| 9597 | |
| 9598 | # First, set all modes to +w |
| 9599 | find . | xargs chmod +w |
| 9600 | # Then, remove executable bit from regular files |
| 9601 | find . -type f | xargs chmod -x |
| 9602 | |
| 9603 | fi |
| 9604 | |
| 9605 | |
| 9606 | |
| 9607 | |
| 9608 | |
| 9609 | cat >prog <<'_ATEOF' |
| 9610 | require ["encoded-character", "variables", "fileinto"]; |
| 9611 | set "myvar" "INBOX"; |
| 9612 | fileinto "${${hex: 6D 79 76}ar}"; |
| 9613 | |
| 9614 | _ATEOF |
| 9615 | |
| 9616 | { set +x |
| 9617 | printf "%s\n" "$at_srcdir/variables.at:42: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9618 | " |
| 9619 | at_fn_check_prepare_notrace 'an embedded newline' "variables.at:42" |
| 9620 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9621 | |
| 9622 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9623 | at_status=$? at_failed=false |
| 9624 | $at_check_filter |
| 9625 | echo >>"$at_stderr"; printf "%s\n" "FILEINTO on msg uid 1: delivering into INBOX |
| 9626 | FILEINTO on msg uid 2: delivering into INBOX |
| 9627 | FILEINTO on msg uid 3: delivering into INBOX |
| 9628 | " | \ |
| 9629 | $at_diff - "$at_stderr" || at_failed=: |
| 9630 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9631 | at_fn_check_status 0 $at_status "$at_srcdir/variables.at:42" |
| 9632 | $at_failed && at_fn_log_failure |
| 9633 | $at_traceon; } |
| 9634 | |
| 9635 | set +x |
| 9636 | $at_times_p && times >"$at_times_file" |
| 9637 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9638 | read at_status <"$at_status_file" |
| 9639 | #AT_STOP_98 |
| 9640 | #AT_START_99 |
| 9641 | at_fn_group_banner 99 'variables.at:53' \ |
| 9642 | "set modifiers" " " 9 |
| 9643 | at_xfail=no |
| 9644 | ( |
| 9645 | printf "%s\n" "99. $at_setup_line: testing $at_desc ..." |
| 9646 | $at_traceon |
| 9647 | |
| 9648 | |
| 9649 | |
| 9650 | |
| 9651 | |
| 9652 | |
| 9653 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 9654 | if test -e ./sieve.mbox; then |
| 9655 | |
| 9656 | # First, set all modes to +w |
| 9657 | find ./sieve.mbox | xargs chmod +w |
| 9658 | # Then, remove executable bit from regular files |
| 9659 | find ./sieve.mbox -type f | xargs chmod -x |
| 9660 | |
| 9661 | else |
| 9662 | |
| 9663 | # First, set all modes to +w |
| 9664 | find . | xargs chmod +w |
| 9665 | # Then, remove executable bit from regular files |
| 9666 | find . -type f | xargs chmod -x |
| 9667 | |
| 9668 | fi |
| 9669 | |
| 9670 | |
| 9671 | |
| 9672 | |
| 9673 | |
| 9674 | cat >prog <<'_ATEOF' |
| 9675 | require ["variables", "fileinto"]; |
| 9676 | set "name" :upperfirst :lower "VALUE"; |
| 9677 | fileinto "INBOX.${name}"; |
| 9678 | |
| 9679 | _ATEOF |
| 9680 | |
| 9681 | { set +x |
| 9682 | printf "%s\n" "$at_srcdir/variables.at:53: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9683 | " |
| 9684 | at_fn_check_prepare_notrace 'an embedded newline' "variables.at:53" |
| 9685 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9686 | |
| 9687 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9688 | at_status=$? at_failed=false |
| 9689 | $at_check_filter |
| 9690 | echo >>"$at_stderr"; printf "%s\n" "FILEINTO on msg uid 1: delivering into INBOX.Value |
| 9691 | FILEINTO on msg uid 2: delivering into INBOX.Value |
| 9692 | FILEINTO on msg uid 3: delivering into INBOX.Value |
| 9693 | " | \ |
| 9694 | $at_diff - "$at_stderr" || at_failed=: |
| 9695 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9696 | at_fn_check_status 0 $at_status "$at_srcdir/variables.at:53" |
| 9697 | $at_failed && at_fn_log_failure |
| 9698 | $at_traceon; } |
| 9699 | |
| 9700 | set +x |
| 9701 | $at_times_p && times >"$at_times_file" |
| 9702 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9703 | read at_status <"$at_status_file" |
| 9704 | #AT_STOP_99 |
| 9705 | #AT_START_100 |
| 9706 | at_fn_group_banner 100 'variables.at:67' \ |
| 9707 | ":quotewildcard modifier" " " 9 |
| 9708 | at_xfail=no |
| 9709 | ( |
| 9710 | printf "%s\n" "100. $at_setup_line: testing $at_desc ..." |
| 9711 | $at_traceon |
| 9712 | |
| 9713 | |
| 9714 | |
| 9715 | |
| 9716 | |
| 9717 | |
| 9718 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 9719 | if test -e ./sieve.mbox; then |
| 9720 | |
| 9721 | # First, set all modes to +w |
| 9722 | find ./sieve.mbox | xargs chmod +w |
| 9723 | # Then, remove executable bit from regular files |
| 9724 | find ./sieve.mbox -type f | xargs chmod -x |
| 9725 | |
| 9726 | else |
| 9727 | |
| 9728 | # First, set all modes to +w |
| 9729 | find . | xargs chmod +w |
| 9730 | # Then, remove executable bit from regular files |
| 9731 | find . -type f | xargs chmod -x |
| 9732 | |
| 9733 | fi |
| 9734 | |
| 9735 | |
| 9736 | |
| 9737 | |
| 9738 | |
| 9739 | cat >prog <<'_ATEOF' |
| 9740 | require ["variables", "fileinto"]; |
| 9741 | set "name" :quotewildcard ".a*strange?name\\!"; |
| 9742 | fileinto "INBOX${name}"; |
| 9743 | |
| 9744 | _ATEOF |
| 9745 | |
| 9746 | { set +x |
| 9747 | printf "%s\n" "$at_srcdir/variables.at:67: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9748 | " |
| 9749 | at_fn_check_prepare_notrace 'an embedded newline' "variables.at:67" |
| 9750 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9751 | |
| 9752 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9753 | at_status=$? at_failed=false |
| 9754 | $at_check_filter |
| 9755 | echo >>"$at_stderr"; printf "%s\n" "FILEINTO on msg uid 1: delivering into INBOX.a\\*strange\\?name\\\\! |
| 9756 | FILEINTO on msg uid 2: delivering into INBOX.a\\*strange\\?name\\\\! |
| 9757 | FILEINTO on msg uid 3: delivering into INBOX.a\\*strange\\?name\\\\! |
| 9758 | " | \ |
| 9759 | $at_diff - "$at_stderr" || at_failed=: |
| 9760 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9761 | at_fn_check_status 0 $at_status "$at_srcdir/variables.at:67" |
| 9762 | $at_failed && at_fn_log_failure |
| 9763 | $at_traceon; } |
| 9764 | |
| 9765 | set +x |
| 9766 | $at_times_p && times >"$at_times_file" |
| 9767 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9768 | read at_status <"$at_status_file" |
| 9769 | #AT_STOP_100 |
| 9770 | #AT_START_101 |
| 9771 | at_fn_group_banner 101 'variables.at:78' \ |
| 9772 | ":length modifier" " " 9 |
| 9773 | at_xfail=no |
| 9774 | ( |
| 9775 | printf "%s\n" "101. $at_setup_line: testing $at_desc ..." |
| 9776 | $at_traceon |
| 9777 | |
| 9778 | |
| 9779 | |
| 9780 | |
| 9781 | |
| 9782 | |
| 9783 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 9784 | if test -e ./sieve.mbox; then |
| 9785 | |
| 9786 | # First, set all modes to +w |
| 9787 | find ./sieve.mbox | xargs chmod +w |
| 9788 | # Then, remove executable bit from regular files |
| 9789 | find ./sieve.mbox -type f | xargs chmod -x |
| 9790 | |
| 9791 | else |
| 9792 | |
| 9793 | # First, set all modes to +w |
| 9794 | find . | xargs chmod +w |
| 9795 | # Then, remove executable bit from regular files |
| 9796 | find . -type f | xargs chmod -x |
| 9797 | |
| 9798 | fi |
| 9799 | |
| 9800 | |
| 9801 | |
| 9802 | |
| 9803 | |
| 9804 | cat >prog <<'_ATEOF' |
| 9805 | require ["variables", "fileinto"]; |
| 9806 | set "name" :length "value"; |
| 9807 | fileinto "INBOX.${name}"; |
| 9808 | |
| 9809 | _ATEOF |
| 9810 | |
| 9811 | { set +x |
| 9812 | printf "%s\n" "$at_srcdir/variables.at:78: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9813 | " |
| 9814 | at_fn_check_prepare_notrace 'an embedded newline' "variables.at:78" |
| 9815 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9816 | |
| 9817 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9818 | at_status=$? at_failed=false |
| 9819 | $at_check_filter |
| 9820 | echo >>"$at_stderr"; printf "%s\n" "FILEINTO on msg uid 1: delivering into INBOX.5 |
| 9821 | FILEINTO on msg uid 2: delivering into INBOX.5 |
| 9822 | FILEINTO on msg uid 3: delivering into INBOX.5 |
| 9823 | " | \ |
| 9824 | $at_diff - "$at_stderr" || at_failed=: |
| 9825 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9826 | at_fn_check_status 0 $at_status "$at_srcdir/variables.at:78" |
| 9827 | $at_failed && at_fn_log_failure |
| 9828 | $at_traceon; } |
| 9829 | |
| 9830 | set +x |
| 9831 | $at_times_p && times >"$at_times_file" |
| 9832 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9833 | read at_status <"$at_status_file" |
| 9834 | #AT_STOP_101 |
| 9835 | #AT_START_102 |
| 9836 | at_fn_group_banner 102 'variables.at:89' \ |
| 9837 | "string test" " " 9 |
| 9838 | at_xfail=no |
| 9839 | ( |
| 9840 | printf "%s\n" "102. $at_setup_line: testing $at_desc ..." |
| 9841 | $at_traceon |
| 9842 | |
| 9843 | |
| 9844 | |
| 9845 | |
| 9846 | |
| 9847 | |
| 9848 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 9849 | if test -e ./sieve.mbox; then |
| 9850 | |
| 9851 | # First, set all modes to +w |
| 9852 | find ./sieve.mbox | xargs chmod +w |
| 9853 | # Then, remove executable bit from regular files |
| 9854 | find ./sieve.mbox -type f | xargs chmod -x |
| 9855 | |
| 9856 | else |
| 9857 | |
| 9858 | # First, set all modes to +w |
| 9859 | find . | xargs chmod +w |
| 9860 | # Then, remove executable bit from regular files |
| 9861 | find . -type f | xargs chmod -x |
| 9862 | |
| 9863 | fi |
| 9864 | |
| 9865 | |
| 9866 | |
| 9867 | |
| 9868 | |
| 9869 | cat >prog <<'_ATEOF' |
| 9870 | require "variables"; |
| 9871 | if address "To" :matches "*@*.*.*" |
| 9872 | { |
| 9873 | if string "${2}" [ "landru", "ACME" ] |
| 9874 | { |
| 9875 | discard; |
| 9876 | } |
| 9877 | } |
| 9878 | _ATEOF |
| 9879 | |
| 9880 | { set +x |
| 9881 | printf "%s\n" "$at_srcdir/variables.at:89: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9882 | " |
| 9883 | at_fn_check_prepare_notrace 'an embedded newline' "variables.at:89" |
| 9884 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] -f ./sieve.mbox prog |
| 9885 | |
| 9886 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9887 | at_status=$? at_failed=false |
| 9888 | $at_check_filter |
| 9889 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 9890 | DISCARD on msg uid 2: marking as deleted |
| 9891 | IMPLICIT KEEP on msg uid 3 |
| 9892 | " | \ |
| 9893 | $at_diff - "$at_stderr" || at_failed=: |
| 9894 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9895 | at_fn_check_status 0 $at_status "$at_srcdir/variables.at:89" |
| 9896 | $at_failed && at_fn_log_failure |
| 9897 | $at_traceon; } |
| 9898 | |
| 9899 | set +x |
| 9900 | $at_times_p && times >"$at_times_file" |
| 9901 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9902 | read at_status <"$at_status_file" |
| 9903 | #AT_STOP_102 |
| 9904 | #AT_START_103 |
| 9905 | at_fn_group_banner 103 'variables.at:105' \ |
| 9906 | "the --variable option" " " 9 |
| 9907 | at_xfail=no |
| 9908 | ( |
| 9909 | printf "%s\n" "103. $at_setup_line: testing $at_desc ..." |
| 9910 | $at_traceon |
| 9911 | |
| 9912 | |
| 9913 | |
| 9914 | |
| 9915 | |
| 9916 | |
| 9917 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 9918 | if test -e ./sieve.mbox; then |
| 9919 | |
| 9920 | # First, set all modes to +w |
| 9921 | find ./sieve.mbox | xargs chmod +w |
| 9922 | # Then, remove executable bit from regular files |
| 9923 | find ./sieve.mbox -type f | xargs chmod -x |
| 9924 | |
| 9925 | else |
| 9926 | |
| 9927 | # First, set all modes to +w |
| 9928 | find . | xargs chmod +w |
| 9929 | # Then, remove executable bit from regular files |
| 9930 | find . -type f | xargs chmod -x |
| 9931 | |
| 9932 | fi |
| 9933 | |
| 9934 | |
| 9935 | |
| 9936 | |
| 9937 | |
| 9938 | cat >prog <<'_ATEOF' |
| 9939 | require "fileinto"; |
| 9940 | fileinto "${mailbox}"; |
| 9941 | |
| 9942 | _ATEOF |
| 9943 | |
| 9944 | { set +x |
| 9945 | printf "%s\n" "$at_srcdir/variables.at:105: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --variable=mailbox=output -f ./sieve.mbox prog |
| 9946 | " |
| 9947 | at_fn_check_prepare_notrace 'an embedded newline' "variables.at:105" |
| 9948 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --variable=mailbox=output -f ./sieve.mbox prog |
| 9949 | |
| 9950 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9951 | at_status=$? at_failed=false |
| 9952 | $at_check_filter |
| 9953 | echo >>"$at_stderr"; printf "%s\n" "FILEINTO on msg uid 1: delivering into output |
| 9954 | FILEINTO on msg uid 2: delivering into output |
| 9955 | FILEINTO on msg uid 3: delivering into output |
| 9956 | " | \ |
| 9957 | $at_diff - "$at_stderr" || at_failed=: |
| 9958 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9959 | at_fn_check_status 0 $at_status "$at_srcdir/variables.at:105" |
| 9960 | $at_failed && at_fn_log_failure |
| 9961 | $at_traceon; } |
| 9962 | |
| 9963 | set +x |
| 9964 | $at_times_p && times >"$at_times_file" |
| 9965 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9966 | read at_status <"$at_status_file" |
| 9967 | #AT_STOP_103 |
| 9968 | #AT_START_104 |
| 9969 | at_fn_group_banner 104 'environment.at:20' \ |
| 9970 | "match" " " 10 |
| 9971 | at_xfail=no |
| 9972 | ( |
| 9973 | printf "%s\n" "104. $at_setup_line: testing $at_desc ..." |
| 9974 | $at_traceon |
| 9975 | |
| 9976 | |
| 9977 | |
| 9978 | |
| 9979 | |
| 9980 | |
| 9981 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 9982 | if test -e ./sieve.mbox; then |
| 9983 | |
| 9984 | # First, set all modes to +w |
| 9985 | find ./sieve.mbox | xargs chmod +w |
| 9986 | # Then, remove executable bit from regular files |
| 9987 | find ./sieve.mbox -type f | xargs chmod -x |
| 9988 | |
| 9989 | else |
| 9990 | |
| 9991 | # First, set all modes to +w |
| 9992 | find . | xargs chmod +w |
| 9993 | # Then, remove executable bit from regular files |
| 9994 | find . -type f | xargs chmod -x |
| 9995 | |
| 9996 | fi |
| 9997 | |
| 9998 | |
| 9999 | |
| 10000 | |
| 10001 | |
| 10002 | cat >prog <<'_ATEOF' |
| 10003 | |
| 10004 | require "environment"; |
| 10005 | |
| 10006 | if environment "location" "MUA" { |
| 10007 | discard; |
| 10008 | } |
| 10009 | |
| 10010 | _ATEOF |
| 10011 | |
| 10012 | { set +x |
| 10013 | printf "%s\n" "$at_srcdir/environment.at:20: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --environment=location=MUA -f ./sieve.mbox prog |
| 10014 | " |
| 10015 | at_fn_check_prepare_notrace 'an embedded newline' "environment.at:20" |
| 10016 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --environment=location=MUA -f ./sieve.mbox prog |
| 10017 | |
| 10018 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10019 | at_status=$? at_failed=false |
| 10020 | $at_check_filter |
| 10021 | echo >>"$at_stderr"; printf "%s\n" "DISCARD on msg uid 1: marking as deleted |
| 10022 | DISCARD on msg uid 2: marking as deleted |
| 10023 | DISCARD on msg uid 3: marking as deleted |
| 10024 | " | \ |
| 10025 | $at_diff - "$at_stderr" || at_failed=: |
| 10026 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 10027 | at_fn_check_status 0 $at_status "$at_srcdir/environment.at:20" |
| 10028 | $at_failed && at_fn_log_failure |
| 10029 | $at_traceon; } |
| 10030 | |
| 10031 | set +x |
| 10032 | $at_times_p && times >"$at_times_file" |
| 10033 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 10034 | read at_status <"$at_status_file" |
| 10035 | #AT_STOP_104 |
| 10036 | #AT_START_105 |
| 10037 | at_fn_group_banner 105 'environment.at:33' \ |
| 10038 | "no match" " " 10 |
| 10039 | at_xfail=no |
| 10040 | ( |
| 10041 | printf "%s\n" "105. $at_setup_line: testing $at_desc ..." |
| 10042 | $at_traceon |
| 10043 | |
| 10044 | |
| 10045 | |
| 10046 | |
| 10047 | |
| 10048 | |
| 10049 | cp -r $abs_top_srcdir/testsuite/spool/sieve.mbox . |
| 10050 | if test -e ./sieve.mbox; then |
| 10051 | |
| 10052 | # First, set all modes to +w |
| 10053 | find ./sieve.mbox | xargs chmod +w |
| 10054 | # Then, remove executable bit from regular files |
| 10055 | find ./sieve.mbox -type f | xargs chmod -x |
| 10056 | |
| 10057 | else |
| 10058 | |
| 10059 | # First, set all modes to +w |
| 10060 | find . | xargs chmod +w |
| 10061 | # Then, remove executable bit from regular files |
| 10062 | find . -type f | xargs chmod -x |
| 10063 | |
| 10064 | fi |
| 10065 | |
| 10066 | |
| 10067 | |
| 10068 | |
| 10069 | |
| 10070 | cat >prog <<'_ATEOF' |
| 10071 | |
| 10072 | require "environment"; |
| 10073 | |
| 10074 | if environment "location" "MTA" { |
| 10075 | discard; |
| 10076 | } |
| 10077 | |
| 10078 | _ATEOF |
| 10079 | |
| 10080 | { set +x |
| 10081 | printf "%s\n" "$at_srcdir/environment.at:33: sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:\$abs_top_builddir/testsuite/mockmail --email [email protected] --environment=location=MUA -f ./sieve.mbox prog |
| 10082 | " |
| 10083 | at_fn_check_prepare_notrace 'an embedded newline' "environment.at:33" |
| 10084 | ( $at_check_trace; sieve --verbose --no-config --set '.mailbox.mailbox-type=mbox' --line-info=no --no-program-name -M sendmail:$abs_top_builddir/testsuite/mockmail --email [email protected] --environment=location=MUA -f ./sieve.mbox prog |
| 10085 | |
| 10086 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10087 | at_status=$? at_failed=false |
| 10088 | $at_check_filter |
| 10089 | echo >>"$at_stderr"; printf "%s\n" "IMPLICIT KEEP on msg uid 1 |
| 10090 | IMPLICIT KEEP on msg uid 2 |
| 10091 | IMPLICIT KEEP on msg uid 3 |
| 10092 | " | \ |
| 10093 | $at_diff - "$at_stderr" || at_failed=: |
| 10094 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 10095 | at_fn_check_status 0 $at_status "$at_srcdir/environment.at:33" |
| 10096 | $at_failed && at_fn_log_failure |
| 10097 | $at_traceon; } |
| 10098 | |
| 10099 | set +x |
| 10100 | $at_times_p && times >"$at_times_file" |
| 10101 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 10102 | read at_status <"$at_status_file" |
| 10103 | #AT_STOP_105 |