Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-11 Thread biziap biziap
2009/6/11 Jean-Paul Calderone : > > Do you have an example which demonstrates the problem? There's no way to > know why you encounter the problem without knowing what your program is > doing. > I am developing a program which verifies every PCB in manufacturing factory. The tester (WindowsXP user

Re: [Twisted-Python] Need working examples of imap4 client.

2009-06-11 Thread Pywinder Singh
Tarjei, Yep. I actually grabbed it, but on perusal, but its use of twisted seemed a little too layered to help me at my current twisted expertise. Of course, now that I think I have the problem narrowed down to the login phase, it might help. Tnx. Tarjei wrote: > On 06/11/2009 02:03 AM, Pywinde

Re: [Twisted-Python] Need working examples of imap4 client.

2009-06-11 Thread Pywinder Singh
Phil, Much obliged. Was able to isolate and confirm that the real issue is that login is hanging for some reason, and causing the timeout message. I suspect SSL/TLS issues, which at least gives me a decided place to start investigating. Thanks again for the code, it was sanity inducing to say th

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-11 Thread Jean-Paul Calderone
On Thu, 11 Jun 2009 08:11:42 +, biziap biziap wrote: >>>Maybe you can try to call transport.flushInput(), transport.flushOutput() >>>before loseConnection(). >>> >> >> No, this is wrong. Do not call these methods, ever. >> > >I have experienced the same problem, >by calling the flashOutput, f

Re: [Twisted-Python] Need working examples of imap4 client.

2009-06-11 Thread Phil Mayers
Pywinder Singh wrote: > > Ideally, I'd love to see a snipped which is able to log into an imap > server and gets a list of mailboxes. If the example on the site works Here you go: #!/usr/bin/python from twisted.internet import reactor, protocol, defer from twisted.mail import imap4 # change

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-11 Thread biziap biziap
>>Maybe you can try to call transport.flushInput(), transport.flushOutput() >>before loseConnection(). >> > > No, this is wrong. Do not call these methods, ever. > I have experienced the same problem, by calling the flashOutput, flashInput solved that problem in my case. Maybe it is a workaround.

Re: [Twisted-Python] Need working examples of imap4 client.

2009-06-11 Thread tarjei
On 06/11/2009 02:03 AM, Pywinder Singh wrote: > Can someone point me to a working example of imap4 client? > > I've tried the example off the site, code from Abe Fettig's book, and > every example I could find on the web. (most of them seem outdated, as > do most discussions I've found on the subje