How to restore a deleted mail

Simon Matter simon.matter at invoca.ch
Tue Jan 9 12:18:04 EST 2007


>> how do I restore a deleted message in an mailbox?
>> A scenarioa as followed:
>> A user deleted a mail and emptied the trash. Cyrus is configued to
>> expunge
>> delayed.
>> I think the messages is deleted in unser's opinion. Can the admin
>> restore such
>> a deleted message?
>
> Restore the file [message] to the appropriate directory and reconstruct
> the corresponding mailbox.

With delayed expunge, it's much easier, like this:
List deleted messages:
su - cyrus -c "/usr/lib/cyrus-imapd/unexpunge -l user.xxxxxxxxx"

Unexpunge all deleted messages:
su - cyrus -c "/usr/lib/cyrus-imapd/unexpunge -a -d -v user.xxxxxxxxx"

Unexpunge a single message:
su - cyrus -c "/usr/lib/cyrus-imapd/unexpunge -u -d -v user.xxxxxxxxx 14156"

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
>


More information about the Info-cyrus mailing list