unexpunge will segfault if the specified folder does not contain a cyrus.expunge file. I have reported this in bug 1905. > -----Original Message----- > From: info-cyrus-bounces@xxxxxxxxxxxxxxxxxxxx [mailto:info-cyrus- > bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of Simon Matter > Sent: Thursday, January 18, 2007 3:57 AM > To: Cyrus Info List > Subject: Re: Delayed expunge / undeleting messages > > > Hi! > > > > The purpose of the delayed expunge mode appears to be to reduce the > > amount of disk I/O during expunge and add responsiveness to the client. > > But I've been thinking... I've got lots of users that accidentally > > delete important messages, and sometimes even ask us immediately after > > deleting (and expunging) those messages if they could be recovered. Now > > if the message was alive last night when we backed the system up, it > > could be recovered. But if the message was new, it couldn't. > > > > But if there is a delay in expunging the message, the file containing > > the mesage might just lie around in the mail spool, and could be > > identified reasonably easily. Is there a way to add the message back > > to the index? A quick hack would probably be something like copying the > > message file to N., where N is an unused message number, and > > reconstructing the mailbox. But is there another way? I always feel > > uncomfortable writing stuff to the mailspool bypassing Cyrus. > > > > Isn't that what unexpunge is for? > > List deleted messages: > su - cyrus -c "/usr/lib/cyrus-imapd/unexpunge -l user.xxxxxxxxx" > > Unexpunge a single message: > su - cyrus -c "/usr/lib/cyrus-imapd/unexpunge -u -d -v user.xxxxxxxxx > 14156" > > Unexpunge all deleted messages: > su - cyrus -c "/usr/lib/cyrus-imapd/unexpunge -a -d -v user.xxxxxxxxx" > > Our expunge delay is 7 days and it works wonderful. > > Simon > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html ---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html