<p>Issue is caused by <code>utime_from_header = yes</code> for the local repository and a SPAM message that is quite far in the future, exceeding <code>int32</code> as timestamp.</p>

<p>The message's date header is:</p>

<pre><code>Date: Thu, 03 Sep 3610 21:32:03 +0300
</code></pre>

<p>Maybe a check should be added if the date is that far in the future and set to native C's <code>long</code> max-value (depending if <code>i386</code> or <code>amd64</code>).</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/231#issuecomment-135530756">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEAWGIQl7_5LzqbFPEogAnQ3TriVZks5or10qgaJpZM4FzkWX.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/231#issuecomment-135530756"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>