8 Jan
2004
8 Jan
'04
8:36 a.m.
On Tue, 2004-01-06 at 15:49, Jerry Chiu wrote:
when migrated from courier-imap, I found that all the sub-folders are not subscribed, I have to manually subscribe all of them.
It is not very practical since many of my users have complicated folder structure...
Is it possible that the dovecot server auto-subscribe all sub-folders if the ".subscriptions" is not present in the Maildir?
Courier stores the subscriptions in courierimapsubscribed file. You should be able to rename those files into Dovecot's .subscriptions files. Something like:
find . -name courierimapsubscribed -exec sh -c 'mv "{}" "echo "{}"|sed s/courierimapsubscribed/\.subscriptions/
"' \;