summaryrefslogtreecommitdiff
path: root/upgrade-to-3.0-native-from-2.3-openpkg/01-convert-seen.sh
blob: afc4cad98157d6ce73bdd96811045ca5237ef820 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

find /var/lib/imap/ -type f -name "*.seen" | \
    sort | while read seendb; do
        /usr/lib/cyrus-imapd/cvt_cyrusdb ${seendb} skiplist ${seendb}.txt flat
        mv ${seendb} ${seendb}.orig
        /usr/lib/cyrus-imapd/cvt_cyrusdb ${seendb}.txt flat ${seendb} skiplist
        chown cyrus:mail ${seendb} ${seendb}.txt ${seendb}.orig
    done