<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi</p>
<p><span class="VIiyi" lang="en"><span class="JLqJ4b ChMk0b"
data-language-for-alternatives="en"
data-language-to-translate-into="pt" data-phrase-index="0"><span>I'm
having problems with zlib giving an error in
dovecot.index.cache, when I move a message from one folder
to another, this error often appears "Cached message size
smaller / biger than expected":</span></span></span> </p>
<p>Feb 03 19:02:07 imap(<a class="moz-txt-link-abbreviated" href="mailto:julio@xxx.com.br">julio@xxx.com.br</a>): Error: Corrupted record
in index cache file
/var/spool/vmail/vmail01/xxx.com.br/julio//Maildir/.Trash/dovecot.index.cache:
UID 503914: Broken physical size in mailbox Trash:
read(zlib(/var/spool/vmail/vmail01/xxx.com.br/julio//Maildir/.Trash/cur/1612388618.M2222P27195.saturn,S=34225,W=34342:2,S))
failed: Cached message size smaller than expected (34225 <
40960, box=Trash, UID=503914)</p>
<p><span class="VIiyi" lang="en"><span class="JLqJ4b ChMk0b C1N51c"
data-language-for-alternatives="en"
data-language-to-translate-into="pt" data-phrase-index="0"><span>I'm
using the [1] dovecot-maildir-compress.sh script in crontab
daily to compress old messages with 7 days old with bzip2.</span></span></span></p>
<p><span class="VIiyi" lang="en"><span class="JLqJ4b ChMk0b C1N51c"
data-language-for-alternatives="en"
data-language-to-translate-into="pt" data-phrase-index="0"><span>Crontab
line:<br>
</span></span></span></p>
<p><span class="VIiyi" lang="en"><span class="JLqJ4b ChMk0b C1N51c"
data-language-for-alternatives="en"
data-language-to-translate-into="pt" data-phrase-index="0"><span>30
2 * * * /usr/local/sbin/dovecot-maildir-compress.sh
-t 7 /var/spool/vmail/vmail01/ > /dev/null 2>&1</span></span></span></p>
<p><br>
<span class="VIiyi" lang="en"><span class="JLqJ4b ChMk0b C1N51c"
data-language-for-alternatives="en"
data-language-to-translate-into="pt" data-phrase-index="0"><span><span
class="VIiyi" lang="en"><span class="JLqJ4b ChMk0b"
data-language-for-alternatives="en"
data-language-to-translate-into="pt"
data-phrase-index="0"><span>Any suggestions on how to
fix this error?</span></span></span></span></span></span></p>
<p><span class="VIiyi" lang="en"><span class="JLqJ4b ChMk0b C1N51c"
data-language-for-alternatives="en"
data-language-to-translate-into="pt" data-phrase-index="0"><span>[1]
-
<a class="moz-txt-link-freetext" href="https://github.com/extremeshok/dovecot-maildir-compression/blob/master/dovecot-maildir-compress.sh">https://github.com/extremeshok/dovecot-maildir-compression/blob/master/dovecot-maildir-compress.sh</a></span></span></span></p>
<p><span class="VIiyi" lang="en"><span class="JLqJ4b ChMk0b C1N51c"
data-language-for-alternatives="en"
data-language-to-translate-into="pt" data-phrase-index="0"><span>Thanks.<br>
</span></span></span></p>
<pre class="moz-signature" cols="72">--
----------------------------------
_ Engº Julio Cesar Covolato
0v0 <a class="moz-txt-link-rfc2396E" href="mailto:julio@psi.com.br"><julio@psi.com.br></a>
/(_)\ F: 55-11-99175-9260
^ ^ PSI INTERNET
----------------------------------</pre>
</body>
</html>