<p>Testing against v6.5.7-rc4 still does not work.</p>

<p>I believe I've narrowed down the problem to <a href="https://github.com/OfflineIMAP/offlineimap/blob/next/offlineimap/folder/IMAP.py#L492">https://github.com/OfflineIMAP/offlineimap/blob/next/offlineimap/folder/IMAP.py#L492</a></p>

<p>The check against <code>datetuple.tm_isdst</code> always fails; it should be checking against the integer 1, not the string '1'. The python documentation seems to specify this as well: <a href="https://docs.python.org/2/library/time.html#time.struct_time">https://docs.python.org/2/library/time.html#time.struct_time</a></p>

<p>This fixed the problem for me:</p>

<p><a href="https://github.com/mjhoy/offlineimap/commit/9baef00a0b02c46aaf3110a246eb366adb51f375" class="commit-link">mjhoy@<tt>9baef00</tt></a></p>

<p>I can send a pull request if you'd like.</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/186#issuecomment-91003458">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEOvhbcEq15EBMQY6BzwlI1TSbkbMks5n9XEYgaJpZM4D3PjG.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/186#issuecomment-91003458"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>