summaryrefslogtreecommitdiff
path: root/qmail-upq.sh
blob: a068196d9dacababaeb77468ada82c22904bda56 (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
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