[code.view]

[top] / python / PyMOTW / imaplib / imaplib_list.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     
     __version__ = "$Id$"
     #end_pymotw_header
     
     import imaplib
     from pprint import pprint
     from imaplib_connect import open_connection
     
     c = open_connection()
     try:
         typ, data = c.list()
         print 'Response code:', typ
         print 'Response:'
         pprint(data)
     finally:
         c.logout()
     

[top] / python / PyMOTW / imaplib / imaplib_list.py

contact | logmethods.com