Using imaplib module with GMAIL's IMAP - hangs

gregpinero at gmail.com gregpinero at gmail.com
Thu Nov 8 13:41:25 EST 2007


I'm trying to get a list of messages from GMAIL using it's new IMAP
access.

So far I've tried running this command but it just hangs.  Any ideas?

>>> import imaplib
>>> M=imaplib.IMAP4('imap.gmail.com',993)

I figured that's the first line to run from this example:
http://docs.python.org/lib/imap4-example.html

Here are the configuration settings GMAIL says to use:
https://mail.google.com/support/bin/answer.py?answer=78799

Thanks for any help.

-Greg




More information about the Python-list mailing list