<p>First, I've worked with a China company in the past and I know that having to workaround the filters can seriously become boring, even more for Chinese. I join your efforts to bypass them. You might add the comment directly in the source code.</p>

<ul class="task-list">
<li>The implementation note should not stand in the commit message and unless I've missed something both branches look unrelated and independent.</li>
<li>Commits must be signed-off-by.</li>
<li>Both patches should be squashed.</li>
<li>The option is not described in <code>offlineimap.conf</code> and should express the dependency requirement.</li>
<li>If the library import of socks fails, we should provide a well-written message rather than let the exception bubble up.</li>
</ul>

<p>Other than that, the code looks correct to me while I did not test this feature.</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/pull/169#issuecomment-74248719">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEE3qTNCoYOt6m4gcMnZcVCXnVDlpks5nrepNgaJpZM4DgEsb.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/pull/169#issuecomment-74248719"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>