On 4 Sep 2003, Matt wrote:
>Ok.. that's all good and all except...
>I've got close to 40,000 users (about 5,000 using webmail)... there's no
>way I'm going to go through and change this file for every single one...
>I'm also not able to just delete the file because SquirrelMail has no
>way to resubscribe to a folder...

Could you do one check for me: With the new Binc, try creating a mailbox
under INBOX and see if that works. If it does work, then the solution is
quite simple.

>Why was the syntax changed?

Because the '/' is a much more natural hierarchy delimiter, because people
want to use dots '.' in mailbox names, and because the server has until 
for a week ago been in beta development mode.

Changes like this are in general done in development branches, but you can
be sure that such things will never happen in 1.2. In 1.3, however, things
can change again. The current branch, 1.2, is considered stable and only
bugfixes will be made there.

Now, the easiest way to fix this problem for all your users is with a
one-liner like this following (assuming that it was possible to create
mailboxes):

find <path> -name "bincimap-subscribed" | xargs perl -pi -e \
's/INBOX\./INBOX\//g'

The <path> is a common parent directory for all your users.

This is assuming you use Maildir++. That one line is run once, and then
all your users' subscriptions are updated. And I can almost guarantee you
that the hierarchy delimiter will never change again.

Andy :-)

-- 
Andreas Aardal Hanssen   | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP      |  "It is better not to do something
http://www.bincimap.org/ |        than to do it poorly."

Reply via email to