[offlineimap] ERROR in syncfolder for yahoo folder Inbox: Traceback raise typ(exc_fmt % str(val)) abort: command: SEARCH => connection terminated (#158)

peterski007 notifications at github.com
Sat Jan 17 11:45:59 GMT 2015


All was well for six months till a few days ago with Yahoo. Gmail works fine but Yahoo sync works on all folders except the 'Inbox' with this output:

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

  command: SEARCH => connection terminated
Folder Notes [acc: yahoo]:
 Syncing Notes: IMAP -> Maildir
 Establishing connection to imap.mail.yahoo.com:993
Folder Sent [acc: yahoo]:
 Syncing Sent: IMAP -> Maildir
Account sync yahoo:
 *** Finished account 'yahoo' in 0:05
ERROR: Exceptions occurred during the run!
ERROR: ERROR in syncfolder for yahoo folder Inbox: Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/offlineimap/accounts.py", line 449, in syncfolder
    remotefolder.cachemessagelist()
  File "/Library/Python/2.7/site-packages/offlineimap/folder/IMAP.py", line 216, in cachemessagelist
    msgsToFetch = self._msgs_to_fetch(imapobj)
  File "/Library/Python/2.7/site-packages/offlineimap/folder/IMAP.py", line 193, in _msgs_to_fetch
    res_type, res_data = imapobj.search(None, search_cond)
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 975, in search
    return self._simple_command(name, *criteria, **kw)

  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 1616, in _simple_command
    return self._command_complete(self._command(name, *args), kw)
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 1379, in _command_complete
    typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
  File "/Library/Python/2.7/site-packages/offlineimap/imaplib2.py", line 177, in get_response
    raise typ(exc_fmt % str(val))
abort: command: SEARCH => connection terminated

  command: SEARCH => connection terminated

[ [ .offlineimaprc config file contains: ] ]

[general]
# List of accounts to be synced, separated by a comma.
accounts = gmail, yahoo

[Account yahoo]
# Identifier for the local repository; e.g. the maildir to be synced via IMAP.
localrepository = yahoo-local
remoterepository = yahoo-remote

# Minutes between syncs
#autorefresh = 1 # In minutes not seconds. Doesn't work on OS X. Don't use since we use wrapper 'offlineimap-load'

# Identifier for the remote repository; i.e. the actual IMAP, usually non-local.
remoterepository = yahoo-remote

# Status cache. Default is plain, which eventually becomes huge and slow.
#status_backend = sqlite

# Maxage of mail to synchronize in days
maxage = 90

[Repository yahoo-local]
type = Maildir
localfolders = ~/Maildir-yahoo

[Repository yahoo-remote]
type = IMAP
# This only works in continuous mode since using '-o' option runs and exits by nature
keepalive = 100
holdconnectionopen = yes

remotehost = imap.mail.yahoo.com
remoteuser = username
remotepass = ***************
remoteport = 993
ssl = yes
maxconnections = 1
realdelete = no
folderfilter = lambda foldername: foldername in ['Inbox', 'Drafts', 'Sent', 'Spam', 'Notes', 'Archive']
cert_fingerprint = c8d50e4f236438c4910aeb11d9bc588502032637

---
Reply to this email directly or view it on GitHub:
https://github.com/OfflineIMAP/offlineimap/issues/158
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20150117/14d68a80/attachment.html>


More information about the OfflineIMAP-project mailing list