<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Brian,</p>
<p>Trying running 'unexpunge -l' on the mailbox in question. This
will list expunged, but not-yet-removed-from-disk messages.</p>
<p>cyr_expire is used to removed expunged messages from disk.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 6/3/20 7:30 PM, Ian Willis wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5eeb0c23bb04092bbdd3fa6468946fa417fa9428.camel@checksum.net.au">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>Hi Brian,</div>
<div><br>
</div>
<div>The answer to your question is that yes, UID appears to
correlate with the message file name. </div>
<div>At a guess something appears significantly awry.</div>
<div><br>
</div>
<div>To resolve the immediate issue.</div>
<div>Have you tried create a separate mail user. Copy your
existing message over via imap to the new folder. </div>
<div>Delete and expunge the original mailbox and recreate, recopy.</div>
<div><br>
</div>
<div>In the longer term I would be tempted to move to a newer
version of cyrus or if you have the patience closely monitor the
file-system to debug how this is occurring.</div>
<div><br>
</div>
<div>Kind Regards </div>
<div>Ian</div>
<div><br>
</div>
<div>-----Original Message-----</div>
<div><b>From</b>: Brian J. Murrell <<a
href="mailto:%22Brian%20J.%20Murrell%22%20%3cbrian@interlinx.bc.ca%3e"
moz-do-not-send="true">brian@interlinx.bc.ca</a>></div>
<div><b>To</b>: <a href="mailto:info-cyrus@lists.andrew.cmu.edu"
moz-do-not-send="true">info-cyrus@lists.andrew.cmu.edu</a></div>
<div><b>Subject</b>: Re: imap clients say i have 4K messages but
spool has 12894 files</div>
<div><b>Date</b>: Mon, 01 Jun 2020 21:45:42 -0400</div>
<div><br>
</div>
<pre>On Tue, 2020-05-26 at 09:33 -0400, Brian J. Murrell wrote:</pre>
<pre>Hi.</pre>
<pre>
</pre>
<pre>Every IMAP client I query my cyrus imapd 2.4.17 server with says I</pre>
<pre>have</pre>
<pre>~4K messages in my INBOX. However when I do a listing of</pre>
<pre>/var/spool/imap/b/user/brian/ it shows almost 13K files.</pre>
<pre>
</pre>
<pre>None of these include messages which have been deleted but not</pre>
<pre>expunged. I manually expunge my mailbox many times per day.</pre>
<pre>
</pre>
<pre>If I'm understanding mbexamine's output correctly, I have files on</pre>
<pre>disk</pre>
<pre>that are not being displayed by mbexmine. My understanding of</pre>
<pre>mbexamine's output is that on a line formatted as such:</pre>
<pre>
</pre>
<pre>000001> UID:00089183 INT_DATE:[redacted] SENTDATE:[redacted]</pre>
<pre>SIZE:1537 </pre>
<pre>
</pre>
<pre>that the 00089183 is the reference to the file on the spool in</pre>
<pre>/var/spool/imap/b/user/brian/89183.</pre>
<pre>
</pre>
<pre>
</pre>
<pre>Is that correct? If so, I definitely have files on the disk which</pre>
<pre>are</pre>
<pre>not found in any "000001> UID" line from mbexamine. ~9600 of them. </pre>
<pre>That seems to make up the difference between what an IMAP client sees</pre>
<pre>and how many files are on disk.</pre>
<pre>
</pre>
<pre>I also have multiple occurrences of the same "000001> UID:" and where</pre>
<pre>there are no matching files on the disk. Should that be possible?</pre>
<pre>
</pre>
<pre>So how come the huge discrepancies and how do I reconcile them?</pre>
<pre>
</pre>
<pre>No other thoughts on how I can reconcile this gross discrepancy?</pre>
<pre>
</pre>
<pre>Ultimately I have an IMAP spool that is growing without bound due to</pre>
<pre>messages continuing to live on the spool beyond their life in the index</pre>
<pre>and getting orphaned.</pre>
<pre>
</pre>
<pre>Cheers,</pre>
<pre>b.</pre>
<pre>
</pre>
<pre>
</pre>
<pre>----</pre>
<pre>Cyrus Home Page: <a href="http://www.cyrusimap.org/" moz-do-not-send="true">http://www.cyrusimap.org/</a></pre>
<pre>List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" moz-do-not-send="true">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a></pre>
<pre>To Unsubscribe:</pre>
<pre><a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" moz-do-not-send="true">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></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>