Bug #103

IMAP unable to parse dovecot greeting

Added by Pun Lo 60 days ago.

Status :New Start :09/21/2008
Priority :Normal Due date :
Assigned to :- % Done :

0%

Category :IMAP
Target version :6.0.0
Resolution :


Description

The mail server used is mail.ukrpost.ua. They use the same host/port for both imap and pop. So it seems that offlineimap is unable to determine it has connecte to an imap server.
The repository config is
[Repository remoteYzaikinUkrpostUa]
type = IMAP
remotehost = mail.ukrpost.ua
ssl = no
remoteport = 110
remoteuser = ***
maxconnections = 1
holdconnectionopen = no

The debug output
Thread 'Account sync yzaikinUkrpostUa' terminated with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/offlineimap/threadutil.py", line 153, in run
    Thread.run(self)
  File "/usr/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.5/site-packages/offlineimap/accounts.py", line 114, in syncrunner
    self.sync()
  File "/usr/lib/python2.5/site-packages/offlineimap/accounts.py", line 148, in sync
    remoterepos.syncfoldersto(localrepos, [statusrepos])
  File "/usr/lib/python2.5/site-packages/offlineimap/repository/Base.py", line 135, in syncfoldersto
    srcfolders = src.getfolders()
  File "/usr/lib/python2.5/site-packages/offlineimap/repository/IMAP.py", line 190, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/usr/lib/python2.5/site-packages/offlineimap/imapserver.py", line 224, in acquireconnection
    imapobj = UsefulIMAP4(self.hostname, self.port)
  File "/usr/lib/python2.5/imaplib.py", line 190, in __init__
    raise self.error(self.welcome)
error: None
Last 5 debug messages logged for Account sync yzaikinUkrpostUa prior to exception:
maildir: MaildirRepository initialized, sep is '/'
imap:   21:07.12 imaplib version 2.58
imap:   21:07.12 new IMAP4 connection, tag=FDPE
imap:   21:07.15 < +OK dovecot ready.
imap:   21:07.15     matched r'\+( (?P<data>.*))?' => (None, None)

Also available in: Atom PDF