Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Finn Bock <bckfnn@us...> - 2001-11-19 18:52:38
Update of /cvsroot/jython/jython/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv12772
A copy of CPython's imaplib that opens the socket stream with 'rb' mode.
This copy should go away in jython 2.2
--- NEW FILE: imaplib.py ---
Based on RFC 2060.
Public class: IMAP4
Public variable: Debug
Public functions: Internaldate2tuple
# Author: Piers Lauder <piers@...> December 1997.
# Authentication code contributed by Donn Cave <donn@...> June 1998.
# String method conversion by ESR, February 2001.
__version__ = "2.40"
[...1086 lines suppressed...]
if (cmd,args) != ('uid', ('SEARCH', 'ALL')):
uid = dat[-1].split()
if not uid: continue
run('uid', ('FETCH', '%s' % uid[-1],
'(FLAGS INTERNALDATE RFC822.SIZE RFC822.HEADER RFC822.TEXT)'))
print '\nAll tests OK.'
print '\nTests failed.'
if not Debug:
If you would like to see debugging output,
try: %s -d5
''' % sys.argv