<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">On 14 Aug 2019, at 22.35, Amir Caspi via dovecot <<a href="mailto:dovecot@dovecot.org" class="">dovecot@dovecot.org</a>> wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">On Aug 14, 2019, at 1:26 PM, Timo Sirainen via dovecot <<a href="mailto:dovecot@dovecot.org" class="">dovecot@dovecot.org</a>> wrote:<br class=""><div class=""><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">It probably has something to do with using mbox format. Are the IMAP UIDs changing unexpectedly? Errors/warnings logged related to it? Unfortunately it's a rather troublesome mailbox format. There are likely some bugs in Dovecot mbox code, but it's difficult and time consuming to try to reproduce any of the bugs so I've mostly given up trying.</span></div></blockquote></div><br class=""><div class="">I'm not getting any errors or warnings as far as I can tell, and I don't think the UIDs are changing unexpectedly -- messages are not getting re-downloaded randomly.  That is, everything SEEMS to be working fine, as far as I can tell.</div><div class=""><br class=""></div><div class="">So many people still use mbox that I hope we can fix this issue.</div><div class=""><br class=""></div><div class="">I'm happy to help test or provide further debug output... this problem is certainly reproducible here, and it seems like lbutlr has a similar problem, so hopefully we can address at least this one...</div><div class=""><br class=""></div><div class="">(I'm also happy to give you the Junk mailbox and index files... there's nothing sensitive in my spam!)</div></div></div></blockquote><br class=""></div><div>It's not very helpful to look at the indexes after the problem already happened. But if you can find a reliably reproducible way to make this happen starting from an empty mailbox, I could look into it further. Ideally it would be a standalone script that reproduces the problem every time. Possibly something like:</div><div><br class=""></div><div> * Deliver mails with procmail</div><div> * Read the mails with doveadm fetch</div><div> * Maybe expunge the mails with doveadm expunge</div><div> * Keep checking the uid and date.saved with doveadm fetch to see if they unexpectedly change at some point</div><div><br class=""></div></body></html>