<p>I'm trying to configure IMAP with Polish hosting provider home.pl and have problems with syncing any message. They use custom IMAP server. I tried telnet and mutt to verify if IMAP works and have no problem with login and listing directories. Despite that offlineimap hangs on <code>reader poll => []</code> and can't proceed further.</p>
<p>Log with <code>-d all</code>:</p>
<pre><code>[17:57:31] pietrushnic:python-venv $ bin/offlineimap -d all -a foo@bar.com
OfflineIMAP 6.5.7
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
Now debugging for imap: IMAP protocol debugging
Now debugging for maildir: Maildir repository debugging
Now debugging for thread: Threading debugging
Now debugging for : Other offlineimap related sync messages
Account sync foo@bar.com:
[thread]: Register new thread 'Account sync foo@bar.com' (account 'foo@bar.com')
[imap]: Using authentication mechanisms ['GSSAPI', 'CRAM-MD5', 'PLAIN', 'LOGIN']
[maildir]: MaildirRepository initialized, sep is '.'
*** Processing account foo@bar.com
Establishing connection to foobar.home.pl:143
[imap]: 58:34.61 Account sync foo@bar.com imaplib2 version 2.43
[imap]: 58:34.61 Account sync foo@bar.com imaplib2 debug level 5, buffer level 3
foobar.home.pl writer:
[imap]: 58:34.67 foobar.home.pl writer starting
Account sync foo@bar.com:
[imap]: 58:34.67 Account sync foo@bar.com _request_push(continuation, None, {}) = GAJF0
foobar.home.pl reader:
[imap]: 58:34.67 foobar.home.pl reader starting using poll
Account sync foo@bar.com:
[imap]: 58:34.67 Account sync foo@bar.com None:GAJF0.ready.wait
foobar.home.pl reader:
[imap]: 58:34.69 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.69 foobar.home.pl reader rcvd 55
[imap]: 58:34.69 foobar.home.pl reader < * OK foobar.home.pl IdeaImapServer v0.80 ready\r\n
foobar.home.pl handler:
[imap]: 58:34.77 foobar.home.pl handler starting
[imap]: 58:34.77 foobar.home.pl handler _put_response(* OK foobar.home.pl IdeaImapServer v0.80 ready)
[imap]: 58:34.77 foobar.home.pl handler untagged_responses[OK] 0 += ["foobar.home.pl IdeaImapServer v0.80 ready"]
[imap]: 58:34.77 foobar.home.pl handler state_change_free.set
[imap]: 58:34.77 foobar.home.pl handler _request_pop(continuation, (False, '* OK foobar.home.pl IdeaImapServer v0.80 ready')) = GAJF0
[imap]: 58:34.77 foobar.home.pl handler None:GAJF0.ready.set
Account sync foo@bar.com:
[imap]: 58:34.77 Account sync foo@bar.com _get_untagged_response(OK) => ['foobar.home.pl IdeaImapServer v0.80 ready']
[imap]: 58:34.77 Account sync foo@bar.com state => NONAUTH
[imap]: 58:34.77 Account sync foo@bar.com [async] CAPABILITY ()
[imap]: 58:34.77 Account sync foo@bar.com state_change_pending.acquire
[imap]: 58:34.77 Account sync foo@bar.com state_change_pending.release
[imap]: 58:34.77 Account sync foo@bar.com _request_push(GAJF1, CAPABILITY, {}) = GAJF1
[imap]: 58:34.77 Account sync foo@bar.com data=GAJF1 CAPABILITY
[imap]: 58:34.77 Account sync foo@bar.com CAPABILITY:GAJF1.ready.wait
foobar.home.pl writer:
[imap]: 58:34.77 foobar.home.pl writer > GAJF1 CAPABILITY\r\n
foobar.home.pl reader:
[imap]: 58:34.80 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.80 foobar.home.pl reader rcvd 138
[imap]: 58:34.80 foobar.home.pl reader < * CAPABILITY IMAP4rev1 LITERAL+ CHILDREN I18NLEVEL=1 IDLE SORT UIDPLUS UNSELECT XLIST STARTTLS AUTH=PLAIN AUTH=LOGIN\r\n
[imap]: 58:34.80 foobar.home.pl reader < GAJF1 OK Completed\r\n
foobar.home.pl handler:
[imap]: 58:34.80 foobar.home.pl handler _put_response(* CAPABILITY IMAP4rev1 LITERAL+ CHILDREN I18NLEVEL=1 IDLE SORT UIDPLUS UNSELECT XLIST STARTTLS AUTH=PLAIN AUTH=LOGIN)
[imap]: 58:34.80 foobar.home.pl handler untagged_responses[CAPABILITY] 0 += ["IMAP4rev1 LITERAL+ CHILDREN I18NLEVEL=1 IDLE SORT UIDPLUS UNSELECT XLIST STARTTLS AUTH=PLAIN AUTH=LOGIN"]
[imap]: 58:34.80 foobar.home.pl handler _put_response(GAJF1 OK Completed)
[imap]: 58:34.80 foobar.home.pl handler state_change_free.set
[imap]: 58:34.80 foobar.home.pl handler _request_pop(GAJF1, ('OK', ['Completed'])) = GAJF1
[imap]: 58:34.80 foobar.home.pl handler CAPABILITY:GAJF1.ready.set
Account sync foo@bar.com:
[imap]: 58:34.80 Account sync foo@bar.com _get_untagged_response(CAPABILITY) => ['IMAP4rev1 LITERAL+ CHILDREN I18NLEVEL=1 IDLE SORT UIDPLUS UNSELECT XLIST STARTTLS AUTH=PLAIN AUTH=LOGIN']
[imap]: 58:34.80 Account sync foo@bar.com _untagged_response(OK, ?, CAPABILITY) => ['IMAP4rev1 LITERAL+ CHILDREN I18NLEVEL=1 IDLE SORT UIDPLUS UNSELECT XLIST STARTTLS AUTH=PLAIN AUTH=LOGIN']
[imap]: 58:34.80 Account sync foo@bar.com CAPABILITY: ('IMAP4REV1', 'LITERAL+', 'CHILDREN', 'I18NLEVEL=1', 'IDLE', 'SORT', 'UIDPLUS', 'UNSELECT', 'XLIST', 'STARTTLS', 'AUTH=PLAIN', 'AUTH=LOGIN')
[imap]: Using STARTTLS connection
[imap]: 58:34.80 Account sync foo@bar.com [sync] STARTTLS ()
[imap]: 58:34.80 Account sync foo@bar.com state_change_pending.acquire
[imap]: 58:34.80 Account sync foo@bar.com _request_push(GAJF2, STARTTLS, {}) = GAJF2
[imap]: 58:34.80 Account sync foo@bar.com data=GAJF2 STARTTLS
[imap]: 58:34.80 Account sync foo@bar.com STARTTLS:GAJF2.ready.wait
foobar.home.pl writer:
[imap]: 58:34.80 foobar.home.pl writer > GAJF2 STARTTLS\r\n
foobar.home.pl reader:
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.83 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.83 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.84 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.84 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.84 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.84 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.84 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.84 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.84 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.84 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.84 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader poll => [(4, 1)]
[imap]: 58:34.84 foobar.home.pl reader rcvd 1
[imap]: 58:34.84 foobar.home.pl reader < GAJF2 OK Begin TLS negotiation\r\n
foobar.home.pl handler:
[imap]: 58:34.84 foobar.home.pl handler _put_response(GAJF2 OK Begin TLS negotiation)
[imap]: 58:34.84 foobar.home.pl handler state_change_free.set
[imap]: 58:34.84 foobar.home.pl handler _request_pop(GAJF2, ('OK', ['Begin TLS negotiation'])) = GAJF2
[imap]: 58:34.84 foobar.home.pl handler STARTTLS:GAJF2.ready.set
foobar.home.pl reader:
[imap]: 58:34.84 foobar.home.pl reader finished
Account sync foo@bar.com:
[imap]: 58:34.84 Account sync foo@bar.com state_change_pending.release
foobar.home.pl reader:
[imap]: 58:35.07 foobar.home.pl reader starting using poll
Account sync foo@bar.com:
[imap]: 58:35.07 Account sync foo@bar.com [async] CAPABILITY ()
[imap]: 58:35.07 Account sync foo@bar.com state_change_pending.acquire
[imap]: 58:35.07 Account sync foo@bar.com state_change_pending.release
[imap]: 58:35.07 Account sync foo@bar.com _request_push(GAJF3, CAPABILITY, {}) = GAJF3
[imap]: 58:35.07 Account sync foo@bar.com data=GAJF3 CAPABILITY
[imap]: 58:35.07 Account sync foo@bar.com CAPABILITY:GAJF3.ready.wait
foobar.home.pl writer:
[imap]: 58:35.07 foobar.home.pl writer > GAJF3 CAPABILITY\r\n
</code></pre>
<p>offlineimaprc:</p>
<pre><code>[mbnames]
enabled = yes
filename = ~/.mutt/muttrc.mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"
[general]
metadata = ~/.offlineimap
maxsyncaccounts = 6
maxconnections = 2
accounts = foo@bar.com
status_backend = sqlite
pythonfile = ~/.mutt/offlineimap.py
[Account foo@bar.com]
autorefresh = 3
localrepository = foo_bar
remoterepository = foo_bar_remote
postsynchook = notmuch new
[Repository foo_bar]
type = Maildir
#localfolders = ~/.mail/foo@bar.com
localfolders = ~/.mail/tmp
[Repository foo_bar_remote]
type = IMAP
remotehost = foobar.home.pl
remoteusereval = get_username("bar/username")
remotepasseval = get_password("email/foo@bar")
ssl = no
remoteport = 143
</code></pre>
<p>Any idea how to fix this problem ?</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/207">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEOMBv9vBCrlZUmQXxbB9Peu3QMSDks5oTE2wgaJpZM4FCC22.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/207"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>