Results 1 to 4 of 4
Hi I'm running a cyrus-imap server - mostly for myself but some other logins can access it. It's a Fedora 13 package on an Intel server. I have all the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-27-2011 #1
- Join Date
- May 2011
Cyrus-Imap messages deleted - how best to restore?
I'm running a cyrus-imap server - mostly for myself but some other logins can access it. It's a Fedora 13 package on an Intel server. I have all the mail in its own folder under /data; otherwise it's a pretty simple setup.
Just recently I was stupid and changed a setting in Thunderbird that caused lots of old email to be deleted that I didn't want to be deleted from the server (just locally...) Thunderbird was told to delete mail over 90 days old, so there's a fair bit still around.
I have regular backups of the data directory (via bacula) and occasional backups where I stop the server and do a backup 'offline'.
What I'm not sure of is how best to restore my mail (and not change anyone else's) while not deleting the latest mail (which of course won't be on a backup).
- 05-27-2011 #2
It has been a while since I last maintained a cyrus imap server.
But I believe, you can create a folder with e.g. thunderbird (letīs call it "restore")
Then copy all the mailfiles from backup in there.
Then call on the server reconstruct -r -f for that mailbox.You must always face the curtain with a bow.
- 05-27-2011 #3
- Join Date
- May 2011
Thanks for the thoughts... Do you know if this method retains any structure under "restore"... I've quite a lot of folders on this server!
- 05-27-2011 #4
iirc, then yes.
The reconstruct basically goes through the directorys of a mailbox, digests the emailfiles and rebuilds the index.
So if you place emailfiles there, that are (no longer) known -and therefore new-
then they should show up as unread after the rebuild.
But you can do a few testruns before you actually go to work:
- Create a new mailbox,
- create a folder restore in there
- then copy a few mailfiles in there
- create a 1-2 subfolders in restore and place some other mailfiles there
- then run reconstruct for that new mailbox.
Should be fast, you can practice a bit, and also verify the results.You must always face the curtain with a bow.