Recovering an email

Patrick Boutilier boutilpj at ednet.ns.ca
Thu Oct 7 17:43:40 EDT 2004



On 07/10/04 05:32 PM, Christopher Paluch wrote:
> I have a user who deleted an email and then cleared their Trash folder, 
> but of course would like it back now.
> 
> Every night I stop Cyrus, and perform a tar of /var/spool/imap.  What I 
> tried to do was I created a new user and then I restored the users files 
> into this new user's directory.  I did this while I had Cyrus stopped.  
> I then started Cyrus and tried to access this new user's mail folder.  
> All I found were several empty emails and a half dozen unread emails, 
> none of the ones I was looking for and no folders.  I also noticed some 
> of the files I had restored were now gone.  I then stopped Cyrus again, 
> performed the restore again, and then ran "reconstruct -r newusername".  
> It completed and I then started Cyrus back up.
> Now when I access the new user, it shows nothing.
> 
> Anyone have any suggestions on how I can accomplish this?  Thanks.

Have you tried -f with reconstruct to create the folders?

-f     Examine  the  filesystem underneath mailbox, adding all 
directories with a cyrus.header found there as new  mailboxes. Useful
for restoring mailboxes from backups.
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list