Platform: Intel PII
          debian sarge
          cyrus21-imapd 2.1.18-1
Today my imap folder user.myuser.sub was trashed.  I did
 cyrreconstruct user.myuser.sub
to rebuild it.

What I found then was that it had a lot more articles than before the
crash. 

That particular folder had slowed down quite a bit, so during
Christmas I decided to clean it up.  From my imap client Gnus I
deleted (or believed I deleted) everything I didn't want.  Then I
moved the rest to the user.myuser.sub.arkiv folder.

After the cyrreconstruct those articles were back.  That is: I'm not
_entirely_ sure the deleted articles were back, but I am sure that the
moved articles are back, because I can see them and grep them in both
the directory /var/spool/cyrus/mail/s/user/myuser/sub/ and the directory
/var/spool/cyrus/mail/s/user/myuser/sub/arkiv/ on the server.

>From the looks of it, these duplicates are hardlinked.

So my questions are:
 Is there a way short of redoing the Christmas cleanup from an email
 client to get back to the state before the massive delete/move?
 Ie. what if I wrote a perl script that unlinked everything that had
 more than one hardlink in /var/spool/cyrus/mail/s/user/myuser/sub/ and
 then did cyrreconstruct?

 Or if that's inadvisable: what happens if a client attempts to do a
 move for something that's already hardlinked to both folders?

Thanx!


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

Reply via email to