tahnoon pasha added the comment:
Hi David
Adding the following post and response from the davmail author/ maintainers
site. He seems to have fixed it in davmail and suggests the following fix in
imaplib.py if there is a desire to amend it to allow stray spaces
Le 15/06/2013 08:19, tahnoon a écrit :
Hi Mickael. I've continued to post on https://bugs.python.org and the
imaplib maintainer has agreed to look at fixing this on imaplib if I
can provide the appropriate unit test to replicate the problem. I'm
not really a programmer so any pointers you can give me on how to set
up a server simulation that approximates davmail or if you have one
already set up as part of your development that would help solve this
at the client end. Thanks
Well, it's not easy to reproduce without a backend Exchange server.
Basically it should accept multiple spaces after star in untagged response.
untested fix of imaplib.py:
replace
Untagged_response = re.compile(r'* (?P[A-Z-]+)( (?P.))?')
with
Untagged_response = re.compile(r'*[ ]+(?P[A-Z-]+)( (?P.))?')
Note that I disabled this non standard behavior in latest DavMail
release, you can enable it in DavMail settings (KeepAlive).
Not sure if that closes this issue or if you still think a test case is needed?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18153>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com