Re: Help undeleting a user's INBOX

Patrick Boutilier <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
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
>

----
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
boutilpj.vcf (text/x-vcard, 286 B)
begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:[email protected]
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.