Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cyrus 2.2.8 upgrade - I nuked my emails...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DAWG98
n00b
n00b


Joined: 16 May 2004
Posts: 34

PostPosted: Fri Oct 29, 2004 4:48 am    Post subject: Cyrus 2.2.8 upgrade - I nuked my emails... Reply with quote

I recently upgraded to Cyrus-Imapd-2.2.8 from -2.1.5. It required me to change the mailbox.db etc to flat/skiplist. In the conversion process I somehow nuked my master mailbox file. After rebuilding the file I can get and send email again, however, all my old emails can no longer be 'seen' using various email clients.

When I browse to /var/spool/imap/t/user/test/ I can still see the various smtp mail text files containing my old emails i.e., 1. 2. etc. It appears that some db or the cyrus.index/header/cache files do not provide the email client with the appropriate info to display the emails.

I tried reconstruct and mboxfer to no avail. Is there any way to recover, import or similar way so that the emails re-appear in my inbox?

Thanks,

DAWG98
Back to top
View user's profile Send private message
DAWG98
n00b
n00b


Joined: 16 May 2004
Posts: 34

PostPosted: Sat Oct 30, 2004 8:28 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
rical
n00b
n00b


Joined: 25 Aug 2003
Posts: 2

PostPosted: Mon Nov 01, 2004 7:00 pm    Post subject: Reply with quote

Have you tried to follow these precise steps :

Cyrus migration

Sometimes the script hangs but don't worry and do it again :wink:

--
Rico
Back to top
View user's profile Send private message
DAWG98
n00b
n00b


Joined: 16 May 2004
Posts: 34

PostPosted: Mon Nov 01, 2004 8:55 pm    Post subject: Reply with quote

I was able to convert the databases no problem. Now the email works fine. But somehow I nuked my mailboxes.db and had to rebuild it from scratch. After the rebuild my old emails that were sitting in the Inbox no longer show up. However, I can still see the files containing the individual emails in the /var/spool/imap/user dirs. Is there a way to re-import the emails?
Back to top
View user's profile Send private message
georwell
Guru
Guru


Joined: 25 Jun 2003
Posts: 430
Location: Uppsala, Sweden

PostPosted: Mon Nov 01, 2004 9:45 pm    Post subject: Reply with quote

Do you have a backup copy of your old mailbox.db ?

These threads might help you...

http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&searchterm=mailbox.db%20corrupt&msg=21637

http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&searchterm=seen%20database&msg=18670
Back to top
View user's profile Send private message
DAWG98
n00b
n00b


Joined: 16 May 2004
Posts: 34

PostPosted: Fri Nov 12, 2004 5:47 pm    Post subject: Reply with quote

Thanks for all the input but nothing yielded the desired result. Instead, I exported the maildir emails into mbox format, opened the resulting file as a local folder in Mozilla and moved the emails to the appropriate folder.

I used maildir2mbox for the conversion (extracted from qmail). It worked pretty good, but kinda painful of a process. Anyone know of a simpler more convenient method?

DAWG98
Back to top
View user's profile Send private message
DAWG98
n00b
n00b


Joined: 16 May 2004
Posts: 34

PostPosted: Wed Nov 17, 2004 4:47 am    Post subject: Reply with quote

I just wrote a script that re-delivers all emails older than the nuke date. Works like a champ

Code:

/usr/lib/cyrus/deliver -e user filename
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum