Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work with Domino IMAP #53

Closed
ildar opened this issue Sep 19, 2013 · 6 comments
Closed

doesn't work with Domino IMAP #53

ildar opened this issue Sep 19, 2013 · 6 comments

Comments

@ildar
Copy link

ildar commented Sep 19, 2013

IBM Lotus Domino version is 8.5.
Dies this way:
offlineimap -l /tmp/p/offlineimap.log -d ALL

[...]
[imap]: 37:10.96 lfs handler _request_pop(BIBN4, ('OK', ['LIST completed'])) = BIBN4
[imap]: 37:10.96 lfs handler LIST:BIBN4.ready.set
Account sync Lotus2Zarafa:
[imap]: 37:10.96 Account sync Lotus2Zarafa _get_untagged_response(LIST) => ['(\Noselect) "\" ""']
[imap]: 37:10.96 Account sync Lotus2Zarafa _untagged_response(OK, ?, LIST) => ['(\Noselect) "\" ""']
ERROR: While attempting to sync account 'Lotus2Zarafa'
'NoneType' object has no attribute 'group'
[' File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 240, in syncrunner\n self.sync()\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 302, in sync\n remoterepos.getfolders()\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 275, in getfolders\n imapobj = self.imapserver.acquireconnection()\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 294, in acquireconnection\n imaputil.imapsplit(listres[0])[1:]\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/imaputil.py", line 148, in imapsplit\n retval.append(m.group('quote'))\n']
*** Finished account 'Lotus2Zarafa' in 0:00
[thread]: Unregister thread 'Account sync Lotus2Zarafa'
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'Lotus2Zarafa'
'NoneType' object has no attribute 'group'

Traceback:
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 240, in syncrunner
self.sync()
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 302, in sync
remoterepos.getfolders()
File "/usr/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 275, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 294, in acquireconnection
imaputil.imapsplit(listres[0])[1:]
File "/usr/lib/python2.7/site-packages/offlineimap/imaputil.py", line 148, in imapsplit
retval.append(m.group('quote'))

@konvpalto
Copy link
Member

This was fixed by 1ef5066 in "next" branch. Could you, please, try the "next" branch directly or just patch your sources and try again?

@ghost ghost assigned konvpalto Sep 19, 2013
@ildar
Copy link
Author

ildar commented Sep 19, 2013

Ok, just tried the "next".

[imap]: 18:29.95 lfs writer > MEDP6 LIST "" ""\r\n
lfs reader:
[imap]: 18:29.95 lfs reader poll => [(5, 1)]
[imap]: 18:29.95 lfs reader rcvd 53
[imap]: 18:29.95 lfs reader < * LIST (\Noselect) "" ""\r\n
[imap]: 18:29.95 lfs reader < MEDP6 OK LIST completed\r\n
lfs handler:
[imap]: 18:29.95 lfs handler untagged_responses[LIST] 0 +=
["(\Noselect) "" """]
[imap]: 18:29.96 lfs handler state_change_free.set
[imap]: 18:29.96 lfs handler _request_pop(MEDP6, ('OK', ['LIST
completed'])) = MEDP6
[imap]: 18:29.96 lfs handler LIST:MEDP6.ready.set
Account sync Lotus2Zarafa:
[imap]: 18:29.96 Account sync Lotus2Zarafa
_get_untagged_response(LIST) => ['(\Noselect) "\" ""']
[imap]: 18:29.96 Account sync Lotus2Zarafa _untagged_response(OK, ?,
LIST) => ['(\Noselect) "\" ""']
ERROR: While attempting to sync account 'Lotus2Zarafa'
failed to parse quoted component " while working with (\Noselect) ""
""
[' File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py",
line 241, in syncrunner\n self.sync()\n', ' File
"/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 303, in
sync\n remoterepos.getfolders()\n', ' File
"/usr/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line
313, in getfolders\n imapobj = self.imapserver.acquireconnection()\n',
' File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line
442, in acquireconnection\n imaputil.imapsplit(listres[0])[1:]\n', '
File "/usr/lib/python2.7/site-packages/offlineimap/imaputil.py", line 151,
in imapsplit\n "while working with %s" % str(imapstring))\n']
*** Finished account 'Lotus2Zarafa' in 0:00
[thread]: Unregister thread 'Account sync Lotus2Zarafa'
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'Lotus2Zarafa'
failed to parse quoted component " while working with (\Noselect) ""
""

Traceback:
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line
241, in syncrunner
self.sync()
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line
303, in sync
remoterepos.getfolders()
File "/usr/lib/python2.7/site-packages/offlineimap/repository/IMAP.py",
line 313, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line
442, in acquireconnection
imaputil.imapsplit(listres[0])[1:]
File "/usr/lib/python2.7/site-packages/offlineimap/imaputil.py", line
151, in imapsplit
"while working with %s" % str(imapstring))

@konvpalto
Copy link
Member

Please, try the patch at http://codelabs.ru/patches/offlineimap/2013-fix-parsing-of-quoted-IMAP-strings.diff

It should be applied on top of the current "next" branch.

@ildar
Copy link
Author

ildar commented Sep 20, 2013

yes, works great. Thanks!
You can add Lotus Domino to the list of working IMAP but be warned that I
only configured Lotus as
readonly = True yet.

When I finish migration, I'll test it as sync destination too.

@konvpalto
Copy link
Member

Thanks for testing!

Will be great if you ping us when you will also test Domino in read/write mode.

@konvpalto
Copy link
Member

Commited the fix as 57adfc2 to the "next" branch.

aroig pushed a commit to aroig/offlineimap that referenced this issue Dec 24, 2013
When imaputil was parsing quoted strings, it treated "abcd\\"
as incomplete quoted string having escaped quote, rather than
properly-quoted string having escaped backslash.

GitHub issue: OfflineIMAP#53
Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants