<div dir="ltr"><div><blockquote type="cite" class="gmail-"><br class="gmail-Apple-interchange-newline"><div class="gmail-"><div style="overflow-wrap: break-word;" class="gmail-">On 8. Sep 2020, at 12.35, Robert Nowotny <<a href="mailto:rnowotny1966@gmail.com" class="gmail-">rnowotny1966@gmail.com</a>> wrote:<br class="gmail-"><div class="gmail-"><blockquote type="cite" class="gmail-"><br class="gmail-Apple-interchange-newline"><div class="gmail-"><div dir="ltr" class="gmail-"><div class="gmail-moz-text-html" lang="x-unicode">
<br class="gmail-">
<div class="gmail-moz-forward-container">
<font class="gmail-" face="Courier New">Dear Aki,<br class="gmail-">
I switched to "gz" now, since "zstd" also gave some errors on
writing to files.<br class="gmail-"></font></div></div></div></div></blockquote><div class="gmail-"><br class="gmail-"></div><div class="gmail-">What kind of errors?</div></div></div></div></blockquote><div><br class="gmail-"></div><div>Probably this? :</div><div><br class="gmail-"></div><div>Panic: file ostream.c: line 287 (o_stream_sendv_int): assertion failed: (!stream->blocking)</div><div><br></div><div>can be - unfortunately I do notĀ have the log files anymore...</div><br class="gmail-"><blockquote type="cite" class="gmail-"><div style="overflow-wrap: break-word;" class="gmail-"><div class="gmail-"><blockquote type="cite" class="gmail-"><div class="gmail-"><div dir="ltr" class="gmail-"><div class="gmail-moz-text-html" lang="x-unicode"><div class="gmail-moz-forward-container"><font class="gmail-" face="Courier New">SepĀ 3 08:33:25 lxc-imap dovecot:
imap(mpaul)<48684><2/9E5mKuAezAqKjk>: Error: Mailbox
Sent: UID=2171:
read(zlib(/home/vmail/virtualmailboxes/mpaul/storage/m.119))
failed: read(/home/vmail/virtualmailboxes/mpaul/storage/m.119)
failed: Broken pipe (FETCH BODY[])<br class="gmail-"></font></div></div></div></div></blockquote><div class="gmail-"><br class="gmail-"></div><div class="gmail-">Also
this way you can see if the broken mail is actually xz or zstd or zlib.
It would be nice to know if there are any zstd or zlib compressed mails
that have problems. We did a lot of stress testing with zstd and also
with xz, but haven't been able to reproduce any problems. It's also
strange that it says taht the error is "Broken pipe" - that doesn't
indicate that the mail is corrupted but that there is something more
strange going on. So perhaps you don't actually have any mails written
as corrupted, but Dovecot is just somehow having trouble reading the
mails.</div></div></div></blockquote><br class="gmail-"></div><div>I managed
to reproduce this. The files aren't corrupted, it's just that reading is
failing. The attached patch should fix the xz code and should make your
files readable again.</div><div><br class="gmail-"></div><div><br></div><div>Yes, it works ! I switched now to "zstd" compression and currently re-compressing all user imap folders (one by one)</div><div><br></div><div>thank You so much !</div><div><br></div><div>Robert</div><div><br></div><div><br></div></div>