<span class="Apple-style-span" style="font-family: Helvetica; font-size: 14px; "><div>Can someone point me to a working example of imap4 client?</div><div><br></div><div>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 subject)</div>
<div><br></div><div>All of them invariably end with: </div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
twisted.internet.error.TimeoutError: User timeout caused connection failure<br><br>or <br><br>twisted.internet.error.ConnectionLost: Connection to the other side was lost in a non-clean fashion.<br></blockquote><div><br></div>
<div><br></div><div>I've pointed the code at two different IMAP servers, both of which (one is gmail, the other is a private server) I am able to access with a hitch with python's own imaplib. I've tried the sample code on an Ubuntu system, OSX, and tried python versions 2.5 and 2.6. </div>
<div><br></div><div>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 for other folks, I'd love a nudge in the right direction to modify the code to get a bit more debugging info. </div>
<div><br></div><div>Thanks in advance!</div><div><br></div></span>