<p>I separated the Gmail acount out from the config file leaving only the Yahoo account and the output from offlineimap --info -c yahoo.config is:</p>

<p>OfflineIMAP 6.5.7-rc1<br>
  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)<br>
Remote repository 'yahoo-remote': type 'IMAP'<br>
Host: imap.mail.yahoo.com Port: 993 SSL: True<br>
Establishing connection to imap.mail.yahoo.com:993<br>
Server supports ID extension.<br>
Server welcome string: * OK [CAPABILITY IMAP4rev1 ID NAMESPACE X-ID-ACLID UIDPLUS LITERAL+ CHILDREN XAPPLEPUSHSERVICE XYMHIGHESTMODSEQ AUTH=PLAIN AUTH=LOGIN AUTH=XOAUTH2 AUTH=XYMCOOKIE AUTH=XYMECOOKIE AUTH=XYMCOOKIEB64 AUTH=XYMPKI] IMAP4rev1 imapgate-1.8.1_01.61594 imap434.mail.ir2.yahoo.com<br>
Server capabilities: ('IMAP4REV1', 'ID', 'NAMESPACE', 'X-ID-ACLID', 'UIDPLUS', 'LITERAL+', 'XAPPLEPUSHSERVICE', 'XYMHIGHESTMODSEQ')</p>

<p>folderfilter= lambda foldername: foldername in ['Inbox', 'Drafts', 'Sent', 'Spam', 'Notes', 'Archive']</p>

<p>Folderlist:<br>
 Archive<br>
 Bulk Mail (disabled)<br>
 Deleted Messages (disabled)<br>
 Draft (disabled)<br>
 Drafts<br>
 Inbox<br>
 Junk (disabled)<br>
 Junk E-mail (disabled)<br>
 Notes<br>
 Sent<br>
 Sent Messages (disabled)<br>
 Trash (disabled)<br>
 Y! Conversations (disabled)</p>

<p>Local repository 'yahoo-local': type 'Maildir'<br>
Folderlist:<br>
 Archive<br>
 Drafts<br>
 Inbox<br>
 Junk E-mail<br>
 Notes<br>
 Sent<br>
 Trash</p>

<p>A sync using <code>offlineimap -c yahoo.config -o -a yahoo</code> is still the same:</p>

<p>OfflineIMAP 6.5.7-rc1<br>
  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)<br>
Account sync yahoo:<br>
 *** Processing account yahoo<br>
 Establishing connection to imap.mail.yahoo.com:993<br>
Folder Archive [acc: yahoo]:<br>
 Syncing Archive: IMAP -> Maildir<br>
Folder Drafts [acc: yahoo]:<br>
 Syncing Drafts: IMAP -> Maildir<br>
Folder Inbox [acc: yahoo]:<br>
 Syncing Inbox: IMAP -> Maildir<br>
 ERROR: ERROR in syncfolder for yahoo folder Inbox: Traceback (most recent call last):<br>
  File "/Library/Python/2.7/site-packages/offlineimap/accounts.py", line 449, in syncfolder<br>
    remotefolder.cachemessagelist()<br>
  File "/Library/Python/2.7/site-packages/offlineimap/folder/IMAP.py", line 216, in cachemessagelist<br>
    msgsToFetch = self._msgs_to_fetch(imapobj)<br>
  File "/Library/Python/2.7/site-packages/offlineimap/folder/IMAP.py", line 193, in _msgs_to_fetch<br>
    res_type, res_data = imapobj.search(None, search_cond)<br>
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 975, in search<br>
    return self._simple_command(name, <em>criteria, *</em>kw)<br>
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 1616, in _simple_command<br>
    return self._command_complete(self._command(name, *args), kw)<br>
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 1379, in _command_complete<br>
    typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)<br>
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 177, in get_response<br>
    raise typ(exc_fmt % str(val))<br>
abort: command: SEARCH => connection terminated</p>

<p>command: SEARCH => connection terminated<br>
Folder Notes [acc: yahoo]:<br>
 Syncing Notes: IMAP -> Maildir<br>
 Establishing connection to imap.mail.yahoo.com:993<br>
Folder Sent [acc: yahoo]:<br>
 Syncing Sent: IMAP -> Maildir<br>
Account sync yahoo:<br>
 *** Finished account 'yahoo' in 0:06<br>
ERROR: Exceptions occurred during the run!<br>
ERROR: ERROR in syncfolder for yahoo folder Inbox: Traceback (most recent call last):<br>
  File "/Library/Python/2.7/site-packages/offlineimap/accounts.py", line 449, in syncfolder<br>
    remotefolder.cachemessagelist()<br>
  File "/Library/Python/2.7/site-packages/offlineimap/folder/IMAP.py", line 216, in cachemessagelist<br>
    msgsToFetch = self._msgs_to_fetch(imapobj)<br>
  File "/Library/Python/2.7/site-packages/offlineimap/folder/IMAP.py", line 193, in _msgs_to_fetch<br>
    res_type, res_data = imapobj.search(None, search_cond)<br>
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 975, in search<br>
    return self._simple_command(name, <em>criteria, *</em>kw)<br>
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 1616, in _simple_command<br>
    return self._command_complete(self._command(name, *args), kw)<br>
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 1379, in _command_complete<br>
    typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)<br>
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 177, in get_response<br>
    raise typ(exc_fmt % str(val))<br>
abort: command: SEARCH => connection terminated</p>

<p>command: SEARCH => connection terminated </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/158#issuecomment-70367998">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEMGRbs8-4dpaSH7kwxX0uY1VcX6kks5nimKfgaJpZM4DTstp.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/158#issuecomment-70367998"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>