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

Pywinder Singh pywinder at monkeydriveengine.com
Thu Jun 11 18:50:30 MDT 2009


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, 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 subject)
>
> Have you looked at chandler? AFAIK it uses (or used to use) Twisteds
> IMAP code.
>
>
> Regards,
> Tarjei
>
> >
> > All of them invariably end with:
> >
> >     twisted.internet.error.TimeoutError: User timeout caused connection
> >     failure
> >
> >     or
> >
> >     twisted.internet.error.ConnectionLost: Connection to the other side
> >     was lost in a non-clean fashion.
> >
> >
> >
> > 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.
> >
> > 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.
> >
> > Thanks in advance!
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Twisted-Python mailing list
> > Twisted-Python at twistedmatrix.com
> > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
> --
> Tarjei Huse
> Mobil: 920 63 413
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20090611/6b233aba/attachment.html>


More information about the Twisted-Python mailing list