creating mailboxes

Craig White craigwhite at azapple.com
Mon Oct 3 11:55:37 EDT 2005


On Mon, 2005-10-03 at 11:41 -0400, Derek T. Yarnell wrote:
> So I am testing out how migration will go and I just wanted to test some 
> things.
> 
> I have created a folder inside a already created testuser (derektest) 
> and with formail i have split the mbox into files in that folder.
> 
> -bash-3.00$ pwd
> /var/spool/imap/d/user/derektest
> -bash-3.00$ ls -la import/
> total 40
> drwx------  2 cyrus mail 4096 Oct  3 11:33 .
> drwx------  7 cyrus mail 4096 Oct  3 11:36 ..
> -rw-------  1 cyrus mail 2439 Oct  3 11:33 1.
> -rw-------  1 cyrus mail 1465 Oct  3 11:33 2.
> -rw-------  1 cyrus mail 2892 Oct  3 11:33 3.
> -rw-------  1 cyrus mail 1533 Oct  3 11:33 4.
> -rw-------  1 cyrus mail 1148 Oct  3 11:33 5.
> -rw-------  1 cyrus mail 2329 Oct  3 11:33 6.
> -rw-------  1 cyrus mail 1142 Oct  3 11:33 7.
> -rw-------  1 cyrus mail 1375 Oct  3 11:33 8.
> 
> Now when I reconstruct the mailbox it does not actually get added to the 
> mailbox list, what am I doing wrong?
> 
> -bash-3.00$ ls -la
> total 40
> drwx------  7 cyrus mail 4096 Oct  3 11:39 .
> drwx------  6 cyrus mail 4096 Sep 19 13:10 ..
> -rw-------  1 cyrus mail    4 Oct  3 11:39 cyrus.cache
> -rw-------  1 cyrus mail  169 Oct  3 11:39 cyrus.header
> -rw-------  1 cyrus mail   76 Oct  3 11:39 cyrus.index
> drwx------  2 cyrus mail 4096 Oct  3 11:39 Drafts
> drwx------  2 cyrus mail 4096 Oct  3 11:33 import
> drwx------  3 cyrus mail 4096 Jul 12 18:58 INBOX
> drwx------  2 cyrus mail 4096 Oct  3 11:39 Sent
> drwx------  2 cyrus mail 4096 Oct  3 11:39 Trash
> -bash-3.00$ /usr/lib/cyrus-imapd/reconstruct -rf user.derektest
> user.derektest
> user.derektest.Drafts
> user.derektest.INBOX.test
> user.derektest.Sent
> user.derektest.Trash
----
reconstruct only reconstructs folders with the cyrus.cache,
cyrus.header, cyrus.index files in the directory. I'm not sure if you
can just touch those files to create them or copy them from another
directory (which will surely lead to errors), but if they aren't
present, they won't reconstruct.

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Info-cyrus mailing list