<div>Tarjei,<br><br>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.<br>
<br>Tnx.<br><br>Tarjei wrote: <br></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">On 06/11/2009 02:03 AM, Pywinder Singh wrote:<br>&gt; Can someone point me to a working example of imap4 client?<br>
&gt;<br>&gt; I&#39;ve tried the example off the site, code from Abe Fettig&#39;s book, and<br>&gt; every example I could find on the web. (most of them seem outdated, as<br>&gt; do most discussions I&#39;ve found on the subject)<br>
<br>Have you looked at chandler? AFAIK it uses (or used to use) Twisteds <br>IMAP code.<br><br><br>Regards,<br>Tarjei<br><br>&gt;<br>&gt; All of them invariably end with:<br>&gt;<br>&gt;     twisted.internet.error.TimeoutError: User timeout caused connection<br>
&gt;     failure<br>&gt;<br>&gt;     or<br>&gt;<br>&gt;     twisted.internet.error.ConnectionLost: Connection to the other side<br>&gt;     was lost in a non-clean fashion.<br>&gt;<br>&gt;<br>&gt;<br>&gt; I&#39;ve pointed the code at two different IMAP servers, both of which (one<br>
&gt; is gmail, the other is a private server) I am able to access with a<br>&gt; hitch with python&#39;s own imaplib. I&#39;ve tried the sample code on an Ubuntu<br>&gt; system, OSX, and tried python versions 2.5 and 2.6.<br>
&gt;<br>&gt; Ideally, I&#39;d love to see a snipped which is able to log into an imap<br>&gt; server and gets a list of mailboxes.  If the example on the site works<br>&gt; for other folks, I&#39;d love a nudge in the right direction to modify the<br>
&gt; code to get a bit more debugging info.<br>&gt;<br>&gt; Thanks in advance!<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>
&gt; Twisted-Python mailing list<br>&gt; Twisted-Python at <a href="http://twistedmatrix.com">twistedmatrix.com</a><br>&gt; <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br><br>-- <br>Tarjei Huse<br>Mobil: 920 63 413<br></blockquote>