<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>You may have a bunch of messages that were marked as \Deleted
(and not displayed by your client) but haven't been expunged.</p>
<p>How many of the messages shown by mbexamine have the \Deleted
flag set?<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 5/6/20 8:32 AM, Brian J. Murrell
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:9387124c4508be294af3e0c35209ae67b16194d7.camel@interlinx.bc.ca">
<pre class="moz-quote-pre" wrap="">On Wed, 2020-05-06 at 07:18 -0400, Ken Murchison wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">You can use 'mbexamine' and 'unexpunge -l'
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
mbexamine looks interesting, but unexpunge -l returns nothing for my
INBOX. I think this is because expunge is immediate in 2.4.17 isn't
it?
mbexamine's output is pretty terse though. Given this line from it's
output:
000001> UID:00089183 INT_DATE:994114862 SENTDATE:994089600
SIZE:1537
is that "00089183" the name of a message file on the disk, minus the
trailing dot? It seems to be from a brief examination.
But just as a first pass sanity check:
# /usr/lib/cyrus-imapd/mbexamine user.brian | grep \>\ UID: | wc -l
317075
# ls /var/spool/imap/b/user/brian/ | wc -l
10362
Which is the opposite of what I was expecting and neither matches what
my IMAP clients (2 different evolution instances) says about the number
of messages, which is ~4K. mutt also says there are only ~4K messages:
[Msgs:3999 New:40 Old:2769 Del:34 Flag:54 Post:43 108M]
How can 3 IMAP clients only see ~4K messages yet there be 10K on the
disk?
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">I you think you have orphaned (not expunged) message files, you can
try
'reconstruct -G' on the mailbox to restore them into the index.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
And so then "reconstruct -n -G" should report any orphan files?
All I get for it is:
user.brian uid 696911 mismatch: sentdate
user.brian uid 696911 mismatch: gmtime
user.brian uid 697146 mismatch: sentdate
user.brian uid 697146 mismatch: gmtime
user.brian uid 697917 mismatch: sentdate
user.brian uid 697917 mismatch: gmtime
user.brian
So I created an orpan intentionally to see what reconstruct -G does:
# pushd /var/spool/imap/b/user/brian/
# ls -l 1.
ls: cannot access 1.: No such file or directory
# cp -a 1609386. 1.
# ls -l 1.
-rw-------. 1 cyrus mail 1187 Apr 14 20:57 1.
# /usr/lib/cyrus-imapd/reconstruct -n -G user.brian
...
user.brian uid 1 rediscovered - appending
user.brian
So that reconstruct -G seems to be doing what I am looking for, but
it's also telling me there are no orphans.
So while I have no orphans, I do have significant discrepancies between
the number of files on disk and the number of messages imapd is
reporting that are in a mailbox.
Any idea how to reconcile that?
Cheers,
b.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Kenneth Murchison
Senior Software Developer
Fastmail US LLC</pre>
</body>
</html>