blob: fc242ae58ed4f02ea652ec6278b9f17120610f31 (
plain)
- #!/bin/sh
- for mbox in `ls -1 /home/*/mail/mbox`; do
- user=`echo $mbox|sed 's,/home/\(.\+\)/mail/mbox,\1,'`
- inbox=/var/mail/$user
- if test -s $inbox; then
- cat $inbox >> $mbox
- fi
- mv $mbox $inbox
- user-init $user
- done
- for oldlist in `ls -1 /home/*/.mailboxlist`; do
- user=`echo $oldlist|sed 's,/home/\(.\+\)/.mailboxlist,\1,'`
- newlist=/home/$user/mail/.subscriptions
- mv $oldlist $newlist
- user-init $user
- done
|