Recursively create mailboxes where cyrus.* files missing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've just finished migrating a number of accounts from a UW-IMAP server. I'd like to recursively create mailboxes in the user namespace where there are no cyrus.* files in the folder:

 /var/spool/imap/user/bob/parent/child/grandchild

corresponds to the user namespace:

 user.bob.parent.child.grandchild

There are no cyrus.* files in the parent or child folders, which will cause problems in my environment. This can be solved manually with cyradm:

 localhost> cm user.bob.parent
 localhost> cm user.bob.parent.child

but I'd prefer to handle this in an automated way, since it involves a lot of mailboxes.

Before I roll my own perl script, I thought I'd check here in case someone can suggest an existing tool or share a solution that worked for them.

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux