Hi,

-- Steinar Bang <[EMAIL PROTECTED]> is rumored to have mumbled on 17. Januar 2006 20:30:19 +0100 regarding cyrreconstruct and resurrected deleted/moved:

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.

I bet your client hides deleted messages, but doesn't actually expunge the folder. There is no "move" in IMAP. It's copy+delete, where delete only sets the "deleted" flag. You need to expunge the folder to actually delete the messages.

After the cyrreconstruct those articles were back.

I guess the flags were lost, so all previously deleted messages were shown by your client.

 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.

That's a little suprising, but I just verified that it actually happens when you copy a message. I wasn't aware of that :-)

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?

That might work, but you're on your own with it ...
--
Sebastian Hagedorn - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587

Attachment: pgplBGpi1OZOf.pgp
Description: PGP signature

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