| 87 |
|
|
| 88 |
*) |
*) |
| 89 |
# copy the file list to FL_# |
# copy the file list to FL_# |
| 90 |
|
date |
| 91 |
echo "Error: don't understand argument \"$ac_option\"" |
echo "Error: don't understand argument \"$ac_option\"" |
| 92 |
usage |
usage |
| 93 |
;; |
;; |
| 97 |
done |
done |
| 98 |
|
|
| 99 |
if test ! -x $MUNPACK ; then |
if test ! -x $MUNPACK ; then |
| 100 |
|
date |
| 101 |
echo "ERROR: \"$MUNPACK\" is not executable" |
echo "ERROR: \"$MUNPACK\" is not executable" |
| 102 |
exit 2 |
exit 2 |
| 103 |
fi |
fi |
| 105 |
mkdir $OUTDIR |
mkdir $OUTDIR |
| 106 |
RETVAL=$? |
RETVAL=$? |
| 107 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
| 108 |
|
date |
| 109 |
echo "ERROR: directory \"$OUTDIR\" doesn't exist and can't be created" |
echo "ERROR: directory \"$OUTDIR\" doesn't exist and can't be created" |
| 110 |
exit 3 |
exit 3 |
| 111 |
fi |
fi |
| 121 |
echo "Using INDIR=\"$INDIR\"" |
echo "Using INDIR=\"$INDIR\"" |
| 122 |
echo -n "Unpacking the emails ..." |
echo -n "Unpacking the emails ..." |
| 123 |
elif test $nb_files != 0 ; then |
elif test $nb_files != 0 ; then |
| 124 |
echo "Unpacking $nb_files emails from '$INDIR' to '$OUTDIR'" |
echo -n "Unpacking $nb_files emails ("`date` |
| 125 |
if test "x$ADDRERR" != x ; then |
if test "x$ADDRERR" != x ; then |
| 126 |
echo " "`date`" (send msg to '$ADDRERR' if Error)" |
echo -n ", err-msg: '$ADDRERR'" |
| 127 |
fi |
fi |
| 128 |
if test $PRT = 2 ; then echo -n " dir:" ; fi |
echo ")" |
| 129 |
|
echo " from '$INDIR' to '$OUTDIR'" |
| 130 |
fi |
fi |
| 131 |
|
|
| 132 |
for file in $all_files ; do |
for file in $all_files ; do |
| 209 |
done |
done |
| 210 |
sdir=$tdir"_"$ad |
sdir=$tdir"_"$ad |
| 211 |
fi |
fi |
| 212 |
if test $PRT = 2 ; then echo -n " '$sdir'" ; fi |
if test $PRT = 2 ; then echo " '$sdir'" ; fi |
| 213 |
mv $TEMPDIR"/"$tdir $OUTDIR"/"$sdir > /dev/null 2>&1 |
mv $TEMPDIR"/"$tdir $OUTDIR"/"$sdir > /dev/null 2>&1 |
| 214 |
RETVAL=$? |
RETVAL=$? |
| 215 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
| 232 |
|
|
| 233 |
done |
done |
| 234 |
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 |
|
| 235 |
|
|