summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2005-08-05 12:30:38 +0000
committerJonas Smedegaard <dr@jones.dk>2005-08-05 12:30:38 +0000
commita5681705a4df69f0134c7d94deb68de8f72fd263 (patch)
treebfe29a4f3073348906982b16ecc210ff6cd93e2d
parent7067a62e496554b2da56789089fd6e601a4af2fa (diff)
Grab older dovecot subscriptions and only UW-imap ones as a fallback.
-rwxr-xr-xlocalmb2md6
1 files changed, 5 insertions, 1 deletions
diff --git a/localmb2md b/localmb2md
index 421547f..8452b66 100755
--- a/localmb2md
+++ b/localmb2md
@@ -25,6 +25,10 @@ if [ -f "/var/mail/$USER" ]; then
echo -n '' > "/var/mail/$USER"
fi
-if [ -f ~/.mailboxlist ]; then
+# Grab dovecot subscriptions
+if [ -f ~/mail/.subscriptions ]; then
+ mv ~/mail/.subscriptions ~/Maildir/.subscriptions
+# ...or UW-imap ones
+elif [ -f ~/.mailboxlist ]; then
mv ~/.mailboxlist ~/Maildir/.subscriptions
fi