Crash when syncing with Exchange
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hi,
I have been using offlineimap for a couple of weeks now to sync lots of
mailboxes on *nix hosts, most of them running UW-IMAP daemons. This has
been working without any flaw. However a couple of days ago I needed to
add an account on a Exchange Server to the list. That proved to be a
disaster as offlineimap constistenly crashes immediately after the
authentication phase. Below you'll find the debugging output (it was not
sent to the given file, but to STDOUT/STDERR). I can't see what's
causing this and Google couldn't help me either. I see an error about a
string index, but don't know to which string it points. Can anyone give
me some hints? I am inclined to think this is not a configuration error
since it still happens when I remove all the fancy stuff. Here's what I
am using right now:
===========================
[Account ka]
localrepository = ka_local
remoterepository = ka_remote
[Repository ka_local]
type = Maildir
localfolders = ~/Mail/ka
sep = .
[Repository ka_remote]
type = IMAP
remotehost = w.x.y.z
ssl = no
remoteuser = username
reference =
maxconnections = 1
holdconnectionopen = no
===========================
All help is appreciated.
Thanks in advance.
$ offlineimap -d imap -l ~/offlineimap.log
Thread 'Account sync ka' terminated with exception:
Traceback (most recent call last):
File "/usr/lib/python2.2/site-packages/offlineimap/threadutil.py", line 153,
in run
Thread.run(self)
File "/usr/lib/python2.2/threading.py", line 402, in run
apply(self.__target, self.__args, self.__kwargs)
File "/usr/lib/python2.2/site-packages/offlineimap/accounts.py", line 112, in
syncrunner
self.sync()
File "/usr/lib/python2.2/site-packages/offlineimap/accounts.py", line 132, in
sync
remoterepos.syncfoldersto(localrepos)
File "/usr/lib/python2.2/site-packages/offlineimap/repository/Base.py", line
104, in syncfoldersto
srcfolders = src.getfolders()
File "/usr/lib/python2.2/site-packages/offlineimap/repository/IMAP.py", line
135, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/usr/lib/python2.2/site-packages/offlineimap/imapserver.py", line 188,
in acquireconnection
listres = imapobj.list(self.reference, '""')[1]
File "/usr/lib/python2.2/site-packages/offlineimap/imaplib.py", line 465, in
list
typ, dat = self._simple_command(name, directory, pattern)
File "/usr/lib/python2.2/site-packages/offlineimap/imaplib.py", line 976, in
_simple_command
return self._command_complete(name, apply(self._command, (name,) + args))
File "/usr/lib/python2.2/site-packages/offlineimap/imaplib.py", line 750, in
_command
data = '%s %s' % (data, self._checkquote(arg))
File "/usr/lib/python2.2/site-packages/offlineimap/imaplib.py", line 959, in
_checkquote
if (arg[0],arg[-1]) in (('(',')'),('"','"')):
IndexError: string index out of range
Last 17 debug messages logged for Account sync ka prior to exception:
maildir: MaildirRepository initialized, sep is '.'
imap: 54:09.64 imaplib version 2.52
imap: 54:09.64 new IMAP4 connection, tag=FODD
imap: 54:09.65 < * OK Microsoft Exchange IMAP4rev1 server version 5.5.2654.50
(dto0nt10.dto.tudelft.nl) ready
imap: 54:09.65 matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' =>
('OK', ' Microsoft Exchange IMAP4rev1 server version 5.5.2654.50
(dto0nt10.dto.tudelft.nl) ready', 'Microsoft Exchange IMAP4rev1 server version
5.5.2654.50 (dto0nt10.dto.tudelft.nl) ready')
imap: 54:09.65 untagged_responses[OK] 0 += ["Microsoft Exchange IMAP4rev1
server version 5.5.2654.50 (dto0nt10.dto.tudelft.nl) ready"]
imap: 54:09.65 > FODD0 CAPABILITY
imap: 54:09.65 < * CAPABILITY IMAP4 IMAP4rev1 IDLE LITERAL+ LOGIN-REFERRALS
MAILBOX-REFERRALS NAMESPACE AUTH=NTLM
imap: 54:09.65 matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' =>
('CAPABILITY', ' IMAP4 IMAP4rev1 IDLE LITERAL+ LOGIN-REFERRALS
MAILBOX-REFERRALS NAMESPACE AUTH=NTLM', 'IMAP4 IMAP4rev1 IDLE LITERAL+
LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE AUTH=NTLM')
imap: 54:09.65 untagged_responses[CAPABILITY] 0 += ["IMAP4 IMAP4rev1 IDLE
LITERAL+ LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE AUTH=NTLM"]
imap: 54:09.65 < FODD0 OK CAPABILITY completed.
imap: 54:09.65 matched r'(?P<tag>FODD\d+) (?P<type>[A-Z]+)
(?P<data>.*)' => ('FODD0', 'OK', 'CAPABILITY completed.')
imap: 54:09.65 CAPABILITIES: ('IMAP4', 'IMAP4REV1', 'IDLE', 'LITERAL+',
'LOGIN-REFERRALS', 'MAILBOX-REFERRALS', 'NAMESPACE', 'AUTH=NTLM')
imap: Attempting plain authentication
imap: 54:17.49 > FODD1 LOGIN username "password"
imap: 54:17.66 < FODD1 OK LOGIN completed.
imap: 54:17.66 matched r'(?P<tag>FODD\d+) (?P<type>[A-Z]+)
(?P<data>.*)' => ('FODD1', 'OK', 'LOGIN completed.')
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Crash when syncing with Exchange,
HdV <=
|
|