Delayed delete, restoring deleted mailboxes

Bron Gondwana brong at
Tue Mar 17 19:27:59 EDT 2009

On Tue, Mar 17, 2009 at 03:06:15PM +0200, Leena Heino wrote:
> On Tue, 17 Mar 2009, Adam Tauno Williams wrote:
> > On Tue, 2009-03-17 at 13:26 +0200, Leena Heino wrote:
> >> What is the recommended process to restore deleted messages or mailboxes
> >> when delayed delete is in use?
> >
> > Use the unexpunge command;  the man page isn't bad, and I have examples
> > and some notes in the Cyrus chapter of WMOGAG
> > <>.
> The unexpunge command was the first thing I tried and I read it's man 
> page. But what puzzles me is that it seems that the deleted mailboxes 
> are not shown in unexpunge commands output.
> The mailbox meta files and mailbox's messages are shown in the spool dir 
> under the DELETED prefix eg. in the directory:
> /cyrus_spool/u/DELETED/user/foo/sent-mail/HEXSTRING/

(that HEXSTRING is a hexified time_t from when it was deleted by the

> What is the correct procedure the restore this mailbox so that user is 
> able see the messages and access it once again.

Yeah, this is a missing feature, for sure.  We use custom in-house stuff
to restore backups, which can also fetch files out of the DELETED
namespace - but the cyrus tools need to be extended to support it too.


More information about the Info-cyrus mailing list