<p>One algo that needs improving is the algo that determines message unique identity.</p>

<p>Currently using only the IMAP UID, which is not a dependable indicator.</p>

<p>The IMAP server can reset the UIDs at any time.</p>

<p>Best thing to improve quality of the results would be to implement a message unique identification algorithm that includes a combination of optional data.  UID, In the headers, Message-ID, References, In-Reply-To.  Store these data in a row in the sqlite database table. </p>

<p>That should be enough of an improvement to uniquely identify messages without having to download the entiree message,  This would reduce the amount of bandwidth consumed, and speed up the sync.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OfflineIMAP/offlineimap/issues/190#issuecomment-93800076">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEDMPO8rIqd4C0MI2DKqYJBsR7QH5ks5n_-3JgaJpZM4EBVcm.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OfflineIMAP/offlineimap/issues/190#issuecomment-93800076"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>