[issue18153] python imaplib - error 'unexpected repsonse'

2018-04-22 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-17 Thread tahnoon pasha
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

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-17 Thread R. David Murray
R. David Murray added the comment: I don't understand why his keepalive requires the extra spaces...and I'm not 100% sure that accepting them will fix the problem, though in theory it should. I still lean toward making the spaces fix in imaplib, based on the postel principle. I'd prefer to

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-14 Thread tahnoon pasha
tahnoon pasha added the comment: http://sourceforge.net/p/davmail/bugs/532/ The response back from the davmail software maintainer is that this is a non RFC mechanism with a purpose (used as a keep alive on a very slow responding server - SELECT can be very slow when getting mail this way.)

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-14 Thread R. David Murray
R. David Murray added the comment: Oh, by the way there's a bit more of the test infrastructure in python3 compared to python2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18153 ___

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-14 Thread R. David Murray
R. David Murray added the comment: Well, the first thing to do would be to write a test that reproduces the problem. There is test infrastructure in Lib/test/test_imaplib.py, but I will admit that writing the server side of imaplib tests is not a walk in the park. You are welcome to take a

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-14 Thread R. David Murray
R. David Murray added the comment: I'll also note that if you start from the traceback and look at the code involved in the exception (keeping in mind that since the exception is caught, in python2 you lose the original cause, which is therefore in the function called in the try block), there

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-14 Thread tahnoon pasha
tahnoon pasha added the comment: Okay David. Thanks for the pointer. With great trepidation Ill hit google and try and figure out how to create a test case for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18153

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-11 Thread tahnoon pasha
tahnoon pasha added the comment: I'll log this at the davmail forums too and report back if I get a response there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18153 ___

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-06 Thread tahnoon pasha
New submission from tahnoon pasha: Hi I've suddenly encountered an error using imaplib on some code that worked fine before. import imaplib m = imaplib.IMAP4('myserver','port') m.login(r'username','password') m.select() gives me the error Traceback (most recent call

[issue18153] python imaplib - error 'unexpected repsonse'

2013-06-06 Thread R. David Murray
R. David Murray added the comment: I think that technically the server is out of spec with the RFC. It isn't 100% clear, though since while the RFC says extra spaces are invalid, it also says that an untagged response is formed by prefixing the token '*', without otherwise mentioning it in