<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>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.</p>
<p>Now his INBOX itself is empty and the server logs has the
following entries:</p>
<blockquote>
<p><tt>May 24 14:44:44 narawntapu imap[19976]: Expunged 16808
messages from user.foo</tt><tt><br>
</tt><tt>May 24 14:45:04 narawntapu imap[21788]: Deleted mailbox
user.foo. </tt><br>
</p>
</blockquote>
<p>All the messages -- including the new spam -- are still right
here on the filesystem, in <tt>/var/spool/imap/user/foo</tt>.
However, reconstruct does not seem to do anything -- it exits
without an obvious error, but the INBOX remains empty. For
example, after running "<tt>reconstruct -G user/foo</tt>", I got
the following:</p>
<blockquote>
<p><tt>May 24 16:34:57 narawntapu reconstruct[25444]:
reconstructing user.foo</tt><tt><br>
</tt><tt>May 24 16:36:12 narawntapu reconstruct[25444]: user.foo
uid 55067 record mismatch, rewriting</tt><tt><br>
</tt><tt>May 24 16:36:12 narawntapu reconstruct[25444]: user.foo
uid 55069 record mismatch, rewriting</tt><tt><br>
</tt><tt>May 24 16:36:55 narawntapu reconstruct[25444]: mailbox:
longlock user.foo for 117.4 seconds</tt><br>
</p>
</blockquote>
<p>Unfortunately, thunderbird is still not showing anything. Other
folders exist, but not the INBOX itself...</p>
<p>I have the backup of the entire <tt>/var/spool/imap</tt> 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?</p>
<p>The server runs FreeBSD-11.3, and cyrus-imapd-2.5.15... Thank
you. Yours,</p>
<blockquote>
<p>-mi<br>
</p>
</blockquote>
<p><br>
</p>
<blockquote>
<p><br>
</p>
</blockquote>
<p><br>
</p>
</body>
</html>