Re: copying and renaming mailboxes to clean up directories

2007-05-28 Thread Thorsten Büker
Dear Bron, dear Andrew, well, I left the ugly problem unsolved for a couple of weeks ;-) I think I've posted my "Cyrus::IndexFile" perl module to the list before, but I'll attach it here as well. This allows you to parse through indexes a lot more efficiently, and 'cyr_dbtool' (see the patches

Re: copying and renaming mailboxes to clean up directories

2007-05-02 Thread Bron Gondwana
On Wed, May 02, 2007 at 03:11:03PM +0200, Thorsten B?ker wrote: > Dear all, > But wondering about the heavily increased amount of partition in use, I > noticed that my call of rsync lacked of the "--delete" attribute. In > consequence the restored mailbox directories include not only the > messag

Re: copying and renaming mailboxes to clean up directories

2007-05-02 Thread Andrew Morgan
On Wed, 2 May 2007, Thorsten Büker wrote: Thanks for this clearification! After comparing some cyrus.header files from different folders and "my" seen file, I think I understood ;-) While copying the mailbox the message UIDs change, at least as far as I can see. So, one might be able to repla

Re: copying and renaming mailboxes to clean up directories

2007-05-02 Thread Thorsten Büker
Dear Any, dear list, Hmm, I'm using v2.2.13 here. Maybe that option/feature didn't exist in 2.1.x. The manuals I just checked gave no hint on the necessary version. You should probably check if other message flags (Important, Answered, etc) are copied. I can't remember. At least "answere

Re: copying and renaming mailboxes to clean up directories

2007-05-02 Thread Andrew Morgan
On Wed, 2 May 2007, Thorsten Büker wrote: I bet the problem is that on a large mailbox, $imap->messages will return a really big list of UIDs (longer than the allowed MAXWORD of 32768). You may be able to fix this by calling "$imap->Ranges(1);" earlier in the script. According to the Mail::I

Re: copying and renaming mailboxes to clean up directories

2007-05-02 Thread Thorsten Büker
Dear Andrew, hi list, Ack, someone using my scripts! :) First of all thanks for providing them! I bet the problem is that on a large mailbox, $imap->messages will return a really big list of UIDs (longer than the allowed MAXWORD of 32768). You may be able to fix this by calling "$imap->Ra

Re: copying and renaming mailboxes to clean up directories

2007-05-02 Thread Andrew Morgan
On Wed, 2 May 2007, Thorsten Büker wrote: Dear all, For quite a few month I ran a backup-scenario set up according to [1] including synchronisation of the mailboxes using "rsync -vaR". (In the meantime I migrated to the usage of LVM snapshots.) As restoring a backup became necessary due to fil

copying and renaming mailboxes to clean up directories

2007-05-02 Thread Thorsten Büker
Dear all, For quite a few month I ran a backup-scenario set up according to [1] including synchronisation of the mailboxes using "rsync -vaR". (In the meantime I migrated to the usage of LVM snapshots.) As restoring a backup became necessary due to filesystem corruption I fetched the mailboxes f