| 118 | echo "Using INDIR=\"$INDIR\"" | echo "Using INDIR=\"$INDIR\"" | 
| 119 | echo -n "Unpacking the emails ..." | echo -n "Unpacking the emails ..." | 
| 120 | elif test $nb_files != 0 ; then | elif test $nb_files != 0 ; then | 
| 121 | echo "Unpacking $nb_files emails from '$INDIR' to '$OUTDIR'" | echo -n "Unpacking $nb_files emails ("`date` | 
| 122 | if test "x$ADDRERR" != x ; then | if test "x$ADDRERR" != x ; then | 
| 123 | echo " "`date`" (send msg to '$ADDRERR' if Error)" | echo -n ", err-msg: '$ADDRERR'" | 
| 124 | fi | fi | 
| 125 | if test $PRT = 2 ; then echo -n " dir:" ; fi | echo ")" | 
| 126 |  | echo " from '$INDIR' to '$OUTDIR'" | 
| 127 | fi | fi | 
| 128 |  |  | 
| 129 | for file in $all_files ; do | for file in $all_files ; do | 
| 206 | done | done | 
| 207 | sdir=$tdir"_"$ad | sdir=$tdir"_"$ad | 
| 208 | fi | fi | 
| 209 | if test $PRT = 2 ; then echo -n " '$sdir'" ; fi | if test $PRT = 2 ; then echo " '$sdir'" ; fi | 
| 210 | mv $TEMPDIR"/"$tdir $OUTDIR"/"$sdir > /dev/null 2>&1 | mv $TEMPDIR"/"$tdir $OUTDIR"/"$sdir > /dev/null 2>&1 | 
| 211 | RETVAL=$? | RETVAL=$? | 
| 212 | if test "x$RETVAL" != x0 ; then | if test "x$RETVAL" != x0 ; then | 
| 229 |  |  | 
| 230 | done | done | 
| 231 | if test $PRT = 1 ; then echo "  done" ; fi | if test $PRT = 1 ; then echo "  done" ; fi | 
|  | if test $PRT = 2 -a $nb_files != 0 ; then echo "" ; fi |  | 
| 232 |  |  |