This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.

#!/bin/sh
# Written by Michal Grzedzicki - public domain
# handy script to rename uw-imapd style subscriptions to dovecot 

for hdir in `cat /etc/passwd|cut -d: -f6` ; do
    if [ -f "$hdir/.mailboxlist" ]; then
        cp -a "$hdir/.mailboxlist" "$hdir/.subscriptions"
    fi
done

None: uw2dovecot.sh (last edited 2009-03-16 17:52:49 by TimoSirainen)