|
Från fotoalbumet
nätfavoriter
Mackes sida
språk/language
Logga in
|
News Articlescyrus imap recontruct recursivleyPosted by: andreas on Tis, 06 November 2007 21:25:46 +01:00 (1077 Reads)Cyrus reconstruct with no arguments now does a full recursive reconstruct of all users and folders. So this post is obsolete. Several times now I ran into problems where mailboxes got the cyrus.index file corrupted. cyrus.index had to be deleted and recreated with reconstruct on the mailbox. And recursive reconstruct never worked for me. So i have to do reconstruct on every single subfolder.Cyrus reconstruct with no arguments now does a full recursive reconstruct of all users and folders. So this post is obsolete. First i went to the root folder of the users mailbox # cd /var/spool/imap/domain/n/nyback.com/a/user/andreas/ Then i ran: # find . -name cyrus.index | xargs rm Then logged in as cyrus # su - cyrus And ran: # for X in `cd /var/spool/imap/domain/n/nyback.com/a/user/andreas/ ; find . -name cyrus.cache`; do Y=`echo ${X%/*} | cut -d . -f2`; ./reconstruct user/andreas$Y@nyback.com; done And it goes through a reconstruct on all the mailbox folders.
Could be extended to a script that takes a username as argument or if no usernme is given goes through all users on the server. Next time maybe... Note: en_GB.utf-8 Det finns inga kommentarer bifogade till den här posten
Betyg
Number of ratings: 0
|