summaryrefslogtreecommitdiff
path: root/sqmail-4.3.07/src/qmail-upq.sh
blob: f0c5dfc17910f90b76c2b685263faa76528e5892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cd QMAIL
cd queue
for dir in mess info local remote todo
do
  ( cd $dir; find . -type f -print ) | (
    cd $dir
    while read path
    do
      id=`basename "$path"`
      sub=`expr "$id" % SPLIT`
      mv "$path" "$sub"/"$id"
    done
  )
done