Help undeleting a user's INBOX

Patrick Boutilier boutilpj at ednet.ns.ca
Sun May 24 19:08:09 EDT 2020


On 5/24/20 6:05 PM, Mikhail T. wrote:
> The thunderbird view of a user's mailbox tree had a mysterious nameless 
> subfolder. Because the subfolder was showing empty, I instructed the 
> user to just delete it through the mail program, which he did.
> 
> Now his INBOX itself is empty and the server logs has the following entries:
> 
>     May 24 14:44:44 narawntapu imap[19976]: Expunged 16808 messages from
>     user.foo
>     May 24 14:45:04 narawntapu imap[21788]: Deleted mailbox user.foo.
> 
> All the messages -- including the new spam -- are still right here on 
> the filesystem, in /var/spool/imap/user/foo. However, reconstruct does 
> not seem to do anything -- it exits without an obvious error, but the 
> INBOX remains empty. For example, after running "reconstruct -G 
> user/foo", I got the following:
> 
>     May 24 16:34:57 narawntapu reconstruct[25444]: reconstructing user.foo
>     May 24 16:36:12 narawntapu reconstruct[25444]: user.foo uid 55067
>     record mismatch, rewriting
>     May 24 16:36:12 narawntapu reconstruct[25444]: user.foo uid 55069
>     record mismatch, rewriting
>     May 24 16:36:55 narawntapu reconstruct[25444]: mailbox: longlock
>     user.foo for 117.4 seconds
> 
> Unfortunately, thunderbird is still not showing anything. Other folders 
> exist, but not the INBOX itself...
> 
> I have the backup of the entire /var/spool/imap from last night, but it 
> does not seem, like I need to recover the messages -- they are still 
> here on the filesystem -- it is something else, is not it?
> 
> The server runs FreeBSD-11.3, and cyrus-imapd-2.5.15... Thank you. Yours,


Do you have a expunge_mode setting in your imapd.conf ? If not, 
expunge_mode will be set to the default "delayed" . You should be able 
to use unexpunge to list the emails that can be restored.

https://www.cyrusimap.org/2.5/imap/admin/systemcommands/unexpunge.html#imap-admin-systemcommands-unexpunge



> 
>     -mi
> 
> 
> 
> 
> 
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boutilpj.vcf
Type: text/x-vcard
Size: 286 bytes
Desc: not available
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20200524/b5449e89/attachment.vcf>


More information about the Info-cyrus mailing list