summaryrefslogtreecommitdiffstats
path: root/doc/wiki/uw2dovecot.sh.txt
blob: 7c63596be4c5cb35553df1e5cdf4aea92220e990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---%<-------------------------------------------------------------------------
#!/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
---%<-------------------------------------------------------------------------

(This file was created from the wiki on 2019-06-19 12:42)