Re: Relation of filesystem to Cyrus mailbox structure

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

 



look at cyrus' reconstruct.

 From the man page:

...
Reconstruct rebuilds one or more IMAP mailboxes.   When  invoked  with
       the  -m switch, it rebuilds the master mailboxes file.  It can be 
used
       to recover from almost any sort of data corruption.
....

So you should be able to run (as cyrus) reconstruct -m -r user.janedoe

For FYI, if you do a a dump of the mailbox file you *could* manually add 
the mailboxes/folders and reload the mailbox file etc., but you'd still 
have to run reconstruct...

HTH,
B

Rick Kunkel wrote:
> Heya folks,
>
> Is there any documentation on how Cyrus mailboxes are "structured", as 
> relative to the file system?  Man.  That's a poorly worded question, but I 
> can't seem to find the best way to say it...
>
> I'm used to dealing with mbox mailboxes until very recently.  The one 
> thing that mbox format has going for it is that it's really conrete, for 
> lack of a better word.  The file in /var/mail/username is the user's 
> inbox;  No internal database or whatever.  Other folders work similarly.
>
> Where I've been stuck recently is trying to figure out things like how to 
> manipulate mailboxes by using the file system.  Maybe this isn't really 
> practical using mdir.
>
> Here's the latest:  I have a user that we migrated from mbox.  She has her 
> inbox folder, which migrated fine.  Then she has a couple of other folder, 
> which migrated fine.  Then she has folders within folders, and those 
> refuse to show up, and it won't let her subscribe to them.  Here's how it 
> they're in the filesystem:
>
> /var/mail/j/user/janedoe   <-- Inbox: Migrated fine
> /var/mail/j/user/janedoe/folder1  <-- Also migrated fine
> /var/mail/j/user/janedoe/folder1/folderA  <-- I can't get to show
>
> I don't think the user really NEEDS the folder called folder1 above, but 
> wants the folders inside of it.  So I tried to move folderA back one level 
> so that it was sitting inside the /var/mail/j/user/janedoe folder, but 
> that doesn't work.  I figured I had to run a reconstruct command, but no 
> avail there either.
>
> I guess the fundamental question here are these:
>
> - If I make changes to the file system, how do I get these reflected in 
> Cyrus mailbox views?
>
> - Is this even a good idea, or something to be avoided, and done another 
> way?
>
> - Is there any documentation on how the Cyrus internal database on 
> mailboxes, quotas, and subscriptions "work"?
>
> Thanks,
>
> Rick Kunkel
> ----
> 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
>   

----
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