/usr/lib/python2.6
NameSizeModeActions
bsddb/-0755rm
compiler/-0755rm
config/-0755rm
ctypes/-0755rm
curses/-0755rm
distutils/-0755rm
email/-0755rm
encodings/-0755rm
hotshot/-0755rm
idlelib/-0755rm
json/-0755rm
lib-dynload/-0755rm
lib2to3/-0755rm
logging/-0755rm
multiprocessing/-0755rm
plat-linux2/-0755rm
site-packages/-0755rm
sqlite3/-0755rm
test/-0755rm
wsgiref/-0755rm
xml/-0755rm
abc.py70340644editdlrm
abc.pyc60490644editdlrm
abc.pyo59910644editdlrm
aifc.py331880644editdlrm
aifc.pyc294240644editdlrm
aifc.pyo294240644editdlrm
anydbm.py26200644editdlrm
anydbm.pyc27690644editdlrm
anydbm.pyo27690644editdlrm
ast.py113470644editdlrm
ast.pyc127320644editdlrm
ast.pyo127320644editdlrm
asynchat.py114020644editdlrm
asynchat.pyc86770644editdlrm
asynchat.pyo86770644editdlrm
asyncore.py200610644editdlrm
asyncore.pyc183340644editdlrm
asyncore.pyo183340644editdlrm
atexit.py17050644editdlrm
atexit.pyc22030644editdlrm
atexit.pyo22030644editdlrm
audiodev.py75970644editdlrm
audiodev.pyc84830644editdlrm
audiodev.pyo84830644editdlrm
base64.py113350755editdlrm
base64.pyc109670644editdlrm
base64.pyo109670644editdlrm
BaseHTTPServer.py219740644editdlrm
BaseHTTPServer.pyc215350644editdlrm
BaseHTTPServer.pyo215350644editdlrm
Bastion.py57440644editdlrm
Bastion.pyc66370644editdlrm
Bastion.pyo66370644editdlrm
bdb.py205970644editdlrm
bdb.pyc184490644editdlrm
bdb.pyo184490644editdlrm
binhex.py148780644editdlrm
binhex.pyc157730644editdlrm
binhex.pyo157730644editdlrm
bisect.py26620644editdlrm
bisect.pyc31630644editdlrm
bisect.pyo31630644editdlrm
calendar.py231100644editdlrm
calendar.pyc280070644editdlrm
calendar.pyo280070644editdlrm
cgi.py344780755editdlrm
cgi.pyc326800644editdlrm
cgi.pyo326800644editdlrm
CGIHTTPServer.py127730644editdlrm
CGIHTTPServer.pyc107940644editdlrm
CGIHTTPServer.pyo107940644editdlrm
cgitb.py121550644editdlrm
cgitb.pyc124250644editdlrm
cgitb.pyo124250644editdlrm
chunk.py53720644editdlrm
chunk.pyc56230644editdlrm
chunk.pyo56230644editdlrm
cmd.py149620644editdlrm
cmd.pyc139140644editdlrm
cmd.pyo139140644editdlrm
code.py102170644editdlrm
code.pyc103950644editdlrm
code.pyo103950644editdlrm
codecs.py352660644editdlrm
codecs.pyc365330644editdlrm
codecs.pyo365330644editdlrm
codeop.py59990644editdlrm
codeop.pyc66160644editdlrm
codeop.pyo66160644editdlrm
collections.py137300644editdlrm
collections.pyc143920644editdlrm
collections.pyo143390644editdlrm
colorsys.py34590644editdlrm
colorsys.pyc40250644editdlrm
colorsys.pyo40250644editdlrm
commands.py25430644editdlrm
commands.pyc24770644editdlrm
commands.pyo24770644editdlrm
compileall.py52850644editdlrm
compileall.pyc49890644editdlrm
compileall.pyo49890644editdlrm
ConfigParser.py259890644editdlrm
ConfigParser.pyc237550644editdlrm
ConfigParser.pyo237550644editdlrm
contextlib.py41360644editdlrm
contextlib.pyc41270644editdlrm
contextlib.pyo41270644editdlrm
Cookie.py250540644editdlrm
Cookie.pyc220670644editdlrm
Cookie.pyo220670644editdlrm
cookielib.py647260644editdlrm
cookielib.pyc551760644editdlrm
cookielib.pyo549850644editdlrm
copy.py111770644editdlrm
copy.pyc116290644editdlrm
copy.pyo115330644editdlrm
copy_reg.py68000644editdlrm
copy_reg.pyc51560644editdlrm
copy_reg.pyo51100644editdlrm
cProfile.py63370755editdlrm
cProfile.pyc62110644editdlrm
cProfile.pyo62110644editdlrm
crypt.py22290644editdlrm
crypt.pyc30430644editdlrm
crypt.pyo30430644editdlrm
csv.py157300644editdlrm
csv.pyc131700644editdlrm
csv.pyo131700644editdlrm
dbhash.py5350644editdlrm
dbhash.pyc7560644editdlrm
dbhash.pyo7560644editdlrm
decimal.py1992730644editdlrm
decimal.pyc1551850644editdlrm
decimal.pyo1551190644editdlrm
difflib.py810800644editdlrm
difflib.pyc610930644editdlrm
difflib.pyo610390644editdlrm
dircache.py11260644editdlrm
dircache.pyc15760644editdlrm
dircache.pyo15760644editdlrm
dis.py64490644editdlrm
dis.pyc63500644editdlrm
dis.pyo63500644editdlrm
doctest.py1015160644editdlrm
doctest.pyc807820644editdlrm
doctest.pyo804940644editdlrm
DocXMLRPCServer.py105990644editdlrm
DocXMLRPCServer.pyc99210644editdlrm
DocXMLRPCServer.pyo98130644editdlrm
dumbdbm.py88200644editdlrm
dumbdbm.pyc65470644editdlrm
dumbdbm.pyo65470644editdlrm
dummy_thread.py44180644editdlrm
dummy_thread.pyc53830644editdlrm
dummy_thread.pyo53830644editdlrm
dummy_threading.py28040644editdlrm
dummy_threading.pyc12950644editdlrm
dummy_threading.pyo12950644editdlrm
filecmp.py94700644editdlrm
filecmp.pyc95920644editdlrm
filecmp.pyo95920644editdlrm
fileinput.py141430644editdlrm
fileinput.pyc148700644editdlrm
fileinput.pyo148700644editdlrm
fnmatch.py32390644editdlrm
fnmatch.pyc35670644editdlrm
fnmatch.pyo35670644editdlrm
formatter.py149110644editdlrm
formatter.pyc191490644editdlrm
formatter.pyo191490644editdlrm
fpformat.py46990644editdlrm
fpformat.pyc47190644editdlrm
fpformat.pyo47190644editdlrm
fractions.py200730644editdlrm
fractions.pyc180410644editdlrm
fractions.pyo180410644editdlrm
ftplib.py291970644editdlrm
ftplib.pyc283870644editdlrm
ftplib.pyo283870644editdlrm
functools.py21620644editdlrm
functools.pyc19210644editdlrm
functools.pyo19210644editdlrm
genericpath.py30200644editdlrm
genericpath.pyc32720644editdlrm
genericpath.pyo32720644editdlrm
getopt.py73280644editdlrm
getopt.pyc67100644editdlrm
getopt.pyo66630644editdlrm
getpass.py55340644editdlrm
getpass.pyc47400644editdlrm
getpass.pyo47400644editdlrm
gettext.py199680644editdlrm
gettext.pyc156740644editdlrm
gettext.pyo156740644editdlrm
glob.py22490644editdlrm
glob.pyc23950644editdlrm
glob.pyo23950644editdlrm
gzip.py167540644editdlrm
gzip.pyc143220644editdlrm
gzip.pyo143220644editdlrm
hashlib.py44270644editdlrm
hashlib.pyc39750644editdlrm
hashlib.pyo39750644editdlrm
heapq.py159950644editdlrm
heapq.pyc126680644editdlrm
heapq.pyo126680644editdlrm
hmac.py45310644editdlrm
hmac.pyc44890644editdlrm
hmac.pyo44890644editdlrm
htmlentitydefs.py180540644editdlrm
htmlentitydefs.pyc63690644editdlrm
htmlentitydefs.pyo63690644editdlrm
htmllib.py128690644editdlrm
htmllib.pyc202020644editdlrm
htmllib.pyo202020644editdlrm
HTMLParser.py135760644editdlrm
HTMLParser.pyc121980644editdlrm
HTMLParser.pyo118900644editdlrm
httplib.py487970644editdlrm
httplib.pyc375780644editdlrm
httplib.pyo373820644editdlrm
ihooks.py174520644editdlrm
ihooks.pyc206990644editdlrm
ihooks.pyo206200644editdlrm
imaplib.py477710644editdlrm
imaplib.pyc450270644editdlrm
imaplib.pyo422870644editdlrm
imghdr.py35440644editdlrm
imghdr.pyc48730644editdlrm
imghdr.pyo48730644editdlrm
imputil.py260090644editdlrm
imputil.pyc159590644editdlrm
imputil.pyo157870644editdlrm
inspect.py381890644editdlrm
inspect.pyc370330644editdlrm
inspect.pyo370330644editdlrm
io.py661650644editdlrm
io.pyc627120644editdlrm
io.pyo627120644editdlrm
keyword.py19970755editdlrm
keyword.pyc21130644editdlrm
keyword.pyo21130644editdlrm
linecache.py41280644editdlrm
linecache.pyc32560644editdlrm
linecache.pyo32560644editdlrm
locale.py826740644editdlrm
locale.pyc466200644editdlrm
locale.pyo466200644editdlrm
macpath.py62530644editdlrm
macpath.pyc76690644editdlrm
macpath.pyo76690644editdlrm
macurl2path.py32750644editdlrm
macurl2path.pyc28150644editdlrm
macurl2path.pyo28150644editdlrm
mailbox.py758240644editdlrm
mailbox.pyc756330644editdlrm
mailbox.pyo755840644editdlrm
mailcap.py84020644editdlrm
mailcap.pyc80510644editdlrm
mailcap.pyo80510644editdlrm
markupbase.py143500644editdlrm
markupbase.pyc94300644editdlrm
markupbase.pyo92360644editdlrm
md5.py4100644editdlrm
md5.pyc3760644editdlrm
md5.pyo3760644editdlrm
mhlib.py334340644editdlrm
mhlib.pyc339810644editdlrm
mhlib.pyo339810644editdlrm
mimetools.py71680644editdlrm
mimetools.pyc82800644editdlrm
mimetools.pyo82800644editdlrm
mimetypes.py188220644editdlrm
mimetypes.pyc168380644editdlrm
mimetypes.pyo168380644editdlrm
MimeWriter.py64820644editdlrm
MimeWriter.pyc73650644editdlrm
MimeWriter.pyo73650644editdlrm
mimify.py150240755editdlrm
mimify.pyc121890644editdlrm
mimify.pyo121890644editdlrm
modulefinder.py242830644editdlrm
modulefinder.pyc189390644editdlrm
modulefinder.pyo188510644editdlrm
multifile.py48200644editdlrm
multifile.pyc54490644editdlrm
multifile.pyo54050644editdlrm
mutex.py18660644editdlrm
mutex.pyc25120644editdlrm
mutex.pyo25120644editdlrm
netrc.py41110644editdlrm
netrc.pyc35860644editdlrm
netrc.pyo35860644editdlrm
new.py7060644editdlrm
new.pyc9080644editdlrm
new.pyo9080644editdlrm
nntplib.py214700644editdlrm
nntplib.pyc210910644editdlrm
nntplib.pyo210910644editdlrm
ntpath.py177520644editdlrm
ntpath.pyc115820644editdlrm
ntpath.pyo115350644editdlrm
nturl2path.py22390644editdlrm
nturl2path.pyc17710644editdlrm
nturl2path.pyo17710644editdlrm
numbers.py102710644editdlrm
numbers.pyc138400644editdlrm
numbers.pyo138400644editdlrm
opcode.py52480644editdlrm
opcode.pyc59070644editdlrm
opcode.pyo59070644editdlrm
optparse.py608490644editdlrm
optparse.pyc539590644editdlrm
optparse.pyo538770644editdlrm
ordereddict.py360644editdlrm
ordereddict.pyc1830644editdlrm
ordereddict.pyo1830644editdlrm
os.py258020644editdlrm
os.pyc257020644editdlrm
os.pyo257020644editdlrm
os2emxpath.py46030644editdlrm
os2emxpath.pyc45180644editdlrm
os2emxpath.pyo45180644editdlrm
pdb.doc78990644editdlrm
pdb.py453330755editdlrm
pdb.pyc435850644editdlrm
pdb.pyo435850644editdlrm
pickle.py448110644editdlrm
pickle.pyc384370644editdlrm
pickle.pyo382320644editdlrm
pickletools.py743480644editdlrm
pickletools.pyc570790644editdlrm
pickletools.pyo561820644editdlrm
pipes.py96470644editdlrm
pipes.pyc94280644editdlrm
pipes.pyo94280644editdlrm
pkgutil.py200010644editdlrm
pkgutil.pyc189540644editdlrm
pkgutil.pyo189540644editdlrm
platform.py526300755editdlrm
platform.pyc386990644editdlrm
platform.pyo386990644editdlrm
plistlib.py158060644editdlrm
plistlib.pyc199260644editdlrm
plistlib.pyo198360644editdlrm
popen2.py84160644editdlrm
popen2.pyc90320644editdlrm
popen2.pyo89880644editdlrm
poplib.py128250644editdlrm
poplib.pyc133520644editdlrm
poplib.pyo133520644editdlrm
posixfile.py80030644editdlrm
posixfile.pyc77000644editdlrm
posixfile.pyo77000644editdlrm
posixpath.py131190644editdlrm
posixpath.pyc111420644editdlrm
posixpath.pyo111420644editdlrm
pprint.py119320644editdlrm
pprint.pyc103560644editdlrm
pprint.pyo101810644editdlrm
profile.py235100755editdlrm
profile.pyc166000644editdlrm
profile.pyo163550644editdlrm
pstats.py273100644editdlrm
pstats.pyc252120644editdlrm
pstats.pyo252120644editdlrm
pty.py48690644editdlrm
pty.pyc48990644editdlrm
pty.pyo48990644editdlrm
pyclbr.py132820644editdlrm
pyclbr.pyc97060644editdlrm
pyclbr.pyo97060644editdlrm
pydoc.py924320755editdlrm
pydoc.pyc906620644editdlrm
pydoc.pyo905940644editdlrm
pydoc_topics.py4231260644editdlrm
pydoc_topics.pyc4075860644editdlrm
pydoc_topics.pyo4075860644editdlrm
py_compile.py56330644editdlrm
py_compile.pyc65360644editdlrm
py_compile.pyo65360644editdlrm
Queue.py85740644editdlrm
Queue.pyc93910644editdlrm
Queue.pyo93910644editdlrm
quopri.py69720755editdlrm
quopri.pyc66660644editdlrm
quopri.pyo66660644editdlrm
random.py319660644editdlrm
random.pyc250240644editdlrm
random.pyo250240644editdlrm
re.py129660644editdlrm
re.pyc131220644editdlrm
re.pyo131220644editdlrm
repr.py42960644editdlrm
repr.pyc54000644editdlrm
repr.pyo54000644editdlrm
rexec.py201520644editdlrm
rexec.pyc241020644editdlrm
rexec.pyo241020644editdlrm
rfc822.py332950644editdlrm
rfc822.pyc319900644editdlrm
rfc822.pyo319900644editdlrm
rlcompleter.py58660644editdlrm
rlcompleter.pyc60570644editdlrm
rlcompleter.pyo60570644editdlrm
robotparser.py70140644editdlrm
robotparser.pyc78040644editdlrm
robotparser.pyo78040644editdlrm
runpy.py54130644editdlrm
runpy.pyc39650644editdlrm
runpy.pyo39650644editdlrm
sched.py50910644editdlrm
sched.pyc49870644editdlrm
sched.pyo49870644editdlrm
sets.py190500644editdlrm
sets.pyc168850644editdlrm
sets.pyo168850644editdlrm
sgmllib.py178840644editdlrm
sgmllib.pyc155040644editdlrm
sgmllib.pyo155040644editdlrm
sha.py4450644editdlrm
sha.pyc4190644editdlrm
sha.pyo4190644editdlrm
shelve.py80780644editdlrm
shelve.pyc102420644editdlrm
shelve.pyo102420644editdlrm
shlex.py111370644editdlrm
shlex.pyc76840644editdlrm
shlex.pyo76840644editdlrm
shutil.py86320644editdlrm
shutil.pyc95190644editdlrm
shutil.pyo95190644editdlrm
SimpleHTTPServer.py74220644editdlrm
SimpleHTTPServer.pyc77440644editdlrm
SimpleHTTPServer.pyo77440644editdlrm
SimpleXMLRPCServer.py219920644editdlrm
SimpleXMLRPCServer.pyc195750644editdlrm
SimpleXMLRPCServer.pyo195750644editdlrm
site.py189270644editdlrm
site.pyc186630644editdlrm
site.pyo186630644editdlrm
smtpd.py189200755editdlrm
smtpd.pyc161260644editdlrm
smtpd.pyo161260644editdlrm
smtplib.py309240755editdlrm
smtplib.pyc296290644editdlrm
smtplib.pyo296290644editdlrm
sndhdr.py59730644editdlrm
sndhdr.pyc73860644editdlrm
sndhdr.pyo73860644editdlrm
socket.py201490644editdlrm
socket.pyc160670644editdlrm
socket.pyo159820644editdlrm
SocketServer.py223260644editdlrm
SocketServer.pyc230350644editdlrm
SocketServer.pyo230350644editdlrm
sre.py3840644editdlrm
sre.pyc5170644editdlrm
sre.pyo5170644editdlrm
sre_compile.py165070644editdlrm
sre_compile.pyc114550644editdlrm
sre_compile.pyo113420644editdlrm
sre_constants.py71370644editdlrm
sre_constants.pyc60830644editdlrm
sre_constants.pyo60830644editdlrm
sre_parse.py268780644editdlrm
sre_parse.pyc196220644editdlrm
sre_parse.pyo196220644editdlrm
ssl.py166770644editdlrm
ssl.pyc142180644editdlrm
ssl.pyo142180644editdlrm
stat.py17180644editdlrm
stat.pyc26830644editdlrm
stat.pyo26830644editdlrm
statvfs.py8980644editdlrm
statvfs.pyc6180644editdlrm
statvfs.pyo6180644editdlrm
string.py207450644editdlrm
string.pyc199640644editdlrm
string.pyo199640644editdlrm
StringIO.py106210644editdlrm
StringIO.pyc114940644editdlrm
StringIO.pyo114940644editdlrm
stringold.py124490644editdlrm
stringold.pyc125390644editdlrm
stringold.pyo125390644editdlrm
stringprep.py135220644editdlrm
stringprep.pyc144860644editdlrm
stringprep.pyo144120644editdlrm
struct.py820644editdlrm
struct.pyc2370644editdlrm
struct.pyo2370644editdlrm
subprocess.py579450644editdlrm
subprocess.pyc409750644editdlrm
subprocess.pyo409180644editdlrm
sunau.py165370644editdlrm
sunau.pyc179760644editdlrm
sunau.pyo179760644editdlrm
sunaudio.py13990644editdlrm
sunaudio.pyc19870644editdlrm
sunaudio.pyo19870644editdlrm
symbol.py20500755editdlrm
symbol.pyc30210644editdlrm
symbol.pyo30210644editdlrm
symtable.py79110644editdlrm
symtable.pyc125030644editdlrm
symtable.pyo123730644editdlrm
tabnanny.py113390755editdlrm
tabnanny.pyc82930644editdlrm
tabnanny.pyo82930644editdlrm
tarfile.py877860644editdlrm
tarfile.pyc735960644editdlrm
tarfile.pyo735960644editdlrm
telnetlib.py218080644editdlrm
telnetlib.pyc198550644editdlrm
telnetlib.pyo198550644editdlrm
tempfile.py177740644editdlrm
tempfile.pyc194630644editdlrm
tempfile.pyo194630644editdlrm
textwrap.py168890644editdlrm
textwrap.pyc117660644editdlrm
textwrap.pyo116740644editdlrm
this.py10020644editdlrm
this.pyc12390644editdlrm
this.pyo12390644editdlrm
threading.py318080644editdlrm
threading.pyc279560644editdlrm
threading.pyo258840644editdlrm
timeit.py120030644editdlrm
timeit.pyc118010644editdlrm
timeit.pyo118010644editdlrm
toaiff.py31420644editdlrm
toaiff.pyc31260644editdlrm
toaiff.pyo31260644editdlrm
token.py29470755editdlrm
token.pyc38300644editdlrm
token.pyo38300644editdlrm
tokenize.py163260644editdlrm
tokenize.pyc139860644editdlrm
tokenize.pyo138930644editdlrm
trace.py303250644editdlrm
trace.pyc229890644editdlrm
trace.pyo229270644editdlrm
traceback.py112110644editdlrm
traceback.pyc116370644editdlrm
traceback.pyo116370644editdlrm
tty.py8790644editdlrm
tty.pyc13110644editdlrm
tty.pyo13110644editdlrm
types.py23230644editdlrm
types.pyc26080644editdlrm
types.pyo26080644editdlrm
unittest.py311570644editdlrm
unittest.pyc346560644editdlrm
unittest.pyo346560644editdlrm
urllib.py590220644editdlrm
urllib.pyc511420644editdlrm
urllib.pyo510480644editdlrm
urllib2.py508660644editdlrm
urllib2.pyc455690644editdlrm
urllib2.pyo454750644editdlrm
urlparse.py156180644editdlrm
urlparse.pyc147270644editdlrm
urlparse.pyo147270644editdlrm
user.py16270644editdlrm
user.pyc17340644editdlrm
user.pyo17340644editdlrm
UserDict.py57780644editdlrm
UserDict.pyc88020644editdlrm
UserDict.pyo88020644editdlrm
UserList.py36440644editdlrm
UserList.pyc65350644editdlrm
UserList.pyo65350644editdlrm
UserString.py96910755editdlrm
UserString.pyc147860644editdlrm
UserString.pyo147860644editdlrm
uu.py59420755editdlrm
uu.pyc42270644editdlrm
uu.pyo42270644editdlrm
uuid.py209440644editdlrm
uuid.pyc212050644editdlrm
uuid.pyo212050644editdlrm
warnings.py141720644editdlrm
warnings.pyc129960644editdlrm
warnings.pyo121590644editdlrm
wave.py179520644editdlrm
wave.pyc193360644editdlrm
wave.pyo193360644editdlrm
weakref.py100870644editdlrm
weakref.pyc132770644editdlrm
weakref.pyo132770644editdlrm
webbrowser.py210730644editdlrm
webbrowser.pyc186690644editdlrm
webbrowser.pyo186220644editdlrm
whichdb.py33530644editdlrm
whichdb.pyc22430644editdlrm
whichdb.pyo22430644editdlrm
xdrlib.py55130644editdlrm
xdrlib.pyc90790644editdlrm
xdrlib.pyo90790644editdlrm
xmllib.py348650644editdlrm
xmllib.pyc271660644editdlrm
xmllib.pyo271660644editdlrm
xmlrpclib.py477750644editdlrm
xmlrpclib.pyc412300644editdlrm
xmlrpclib.pyo410470644editdlrm
zipfile.py530920644editdlrm
zipfile.pyc375470644editdlrm
zipfile.pyo375470644editdlrm
_abcoll.py142420644editdlrm
_abcoll.pyc213950644editdlrm
_abcoll.pyo213950644editdlrm
_LWPCookieJar.py65530644editdlrm
_LWPCookieJar.pyc55890644editdlrm
_LWPCookieJar.pyo55890644editdlrm
_MozillaCookieJar.py58090644editdlrm
_MozillaCookieJar.pyc45090644editdlrm
_MozillaCookieJar.pyo44680644editdlrm
_strptime.py197540644editdlrm
_strptime.pyc149260644editdlrm
_strptime.pyo149260644editdlrm
_threading_local.py71140644editdlrm
_threading_local.pyc63670644editdlrm
_threading_local.pyo63670644editdlrm
__future__.py43800644editdlrm
__future__.pyc42210644editdlrm
__future__.pyo42210644editdlrm
__phello__.foo.py640644editdlrm
__phello__.foo.pyc1230644editdlrm
__phello__.foo.pyo1230644editdlrm
Edit: /usr/lib/python2.6/imaplib.pyc (45027B)
gc"@s$dZdZddkZddkZddkZddkZddkZddkZddkZdddddd gZ d Z d Z d Z d Z ddfZdZh&ddfd6dfd6ddddfd6dfd6dfd6dfd6ddfd6ddfd6ddfd6ddfd6dfd6dfd6ddfd 6ddfd!6ddfd"6ddfd#6ddfd$6ddfd%6dfd&6ddddfd6ddfd'6ddfd(6ddddfd)6dfd*6dfd+6ddfd,6dfd-6ddfd.6ddfd/6ddfd06ddfd16dfd26ddfd36dfd46ddfd56dfd66dfd76ddfd86Zeid9Zeid:Zeid;Zeid<Zeid=Zeid>Zeid?Zeid@ZdfdAYZyddkZWnej on%XdBefdCYZe idBdefdDYZdEfdFYZ h dGdH6dIdJ6dKdL6dMdN6dOdP6dQdR6dSdT6dUdV6dWdX6dYdZ6d[d\6d]d^6Z!d_Z"d`Z#daZ$dbZ%e&dcjoddk'Z'ddk(Z(y#e'i'ei)dGdd\Z*Z+Wn*e'i,j oZ-fff\Z*Z+nXe.Z/x]e*D]U\Z0Z-e0dejoe1e-Z n-e0dfjoe-Z/e+ o e/fZ+nnq{We+ o dgfZ+ne+d Z2e(i3Z4e(i(dhe4e2pdifZ5djhe4dk6dldm6Z6dne4e5ffdodpffdqdpdrffddsffdtdse.e.e6ffdudvdwffdxdsffdye.dzd{ffd|d}d~ffdd}ddffdffdffdffdfffZ7dxffddffdd-dffddffdte.e.e.e6ffdffdfffZ8dZ9ye/oee/Z:n ee2Z:e:i;djoe7dGZ7ne:i<de:i=e:i<de:i>fx!e7D]\Z?Z+e9e?e+qWxie9duddfD]RZ@eiAde@ZBeBoeBiCdGZDne@iEdZDe9deDfq Wxe8D]~\Z?Z+e9e?e+ZFe?e+fdd-dffjoqfneFdiEZGeG oqfne9dddeGddfqfWdGHWn+dGHe odei)d GHnnXndS(sIMAP4 client. Based on RFC 2060. Public class: IMAP4 Public variable: Debug Public functions: Internaldate2tuple Int2AP ParseFlags Time2Internaldate s2.58iNtIMAP4t IMAP4_streamtInternaldate2tupletInt2APt ParseFlagstTime2Internaldates iiit IMAP4REV1i'tAUTHtSELECTEDtAPPENDtNONAUTHt AUTHENTICATEtLOGOUTt CAPABILITYtCHECKtCLOSEtCOPYtCREATEtDELETEt DELETEACLtEXAMINEtEXPUNGEtFETCHtGETACLt GETANNOTATIONtGETQUOTAt GETQUOTAROOTtMYRIGHTStLISTtLOGINtLSUBt NAMESPACEtNOOPtPARTIALt PROXYAUTHtRENAMEtSEARCHtSELECTtSETACLt SETANNOTATIONtSETQUOTAtSORTtSTATUStSTOREt SUBSCRIBEtTHREADtUIDt UNSUBSCRIBEs\+( (?P.*))?s.*FLAGS \((?P[^\)]*)\)s.*INTERNALDATE "(?P[ 0123][0-9])-(?P[A-Z][a-z][a-z])-(?P[0-9][0-9][0-9][0-9]) (?P[0-9][0-9]):(?P[0-9][0-9]):(?P[0-9][0-9]) (?P[-+])(?P[0-9][0-9])(?P[0-9][0-9])"s.*{(?P\d+)}$s \r\n|\r|\ns)\[(?P[A-Z-]+)( (?P[^\]]*))?\]s$\* (?P[A-Z-]+)( (?P.*))?s3\* (?P\d+) (?P[A-Z-]+)( (?P.*))?cBseZdZdefdYZdefdYZdefdYZeidZ de d Z d Z de d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"d#d$Z$d%Z%d&Z&d'Z'd(Z(d"d#d)Z)d*Z*d+Z+d,Z,d-Z-d.Z.d/Z/d0Z0d1e1d2Z2d3Z3d4Z4d5Z5d6Z6d7Z7d8Z8d9Z9d:Z:d;Z;d<Z<d=Z=d>Z>d?Z?d@Z@dAZAdBZBdCZCdDZDdEZEdFZFdGZGdHZHdIZIdJZJdOdKZLdLZMdMZNdNZORS(PsIMAP4 client class. Instantiate with: IMAP4([host[, port]]) host - host's name (default: localhost); port - port number (default: standard IMAP4 port). All IMAP4rev1 commands are supported by methods of the same name (in lower-case). All arguments to commands are converted to strings, except for AUTHENTICATE, and the last argument to APPEND which is passed as an IMAP4 literal. If necessary (the string contains any non-printing characters or white-space and isn't enclosed with either parentheses or double quotes) each string is quoted. However, the 'password' argument to the LOGIN command is always quoted. If you want to avoid having an argument string quoted (eg: the 'flags' argument to STORE) then enclose the string in parentheses (eg: "(\Deleted)"). Each command returns a tuple: (type, [data, ...]) where 'type' is usually 'OK' or 'NO', and 'data' is either the text from the tagged response, or untagged results from command. Each 'data' is either a string, or a tuple. If a tuple, then the first part is the header of the response, and the second part contains the data (ie: 'literal' value). Errors raise the exception class .error(""). IMAP4 server errors raise .abort(""), which is a sub-class of 'error'. Mailbox status changes from READ-WRITE to READ-ONLY raise the exception class .readonly(""), which is a sub-class of 'abort'. "error" exceptions imply a program error. "abort" exceptions imply the connection should be reset, and the command re-tried. "readonly" exceptions imply the command should be re-tried. Note: to use this module, you must read the RFCs pertaining to the IMAP4 protocol, as the semantics of the arguments to each IMAP4 command are left to the invoker, not to mention the results. Also, most IMAP servers implement a sub-set of the commands available here. terrorcBseZRS((t__name__t __module__(((s/usr/lib/python2.6/imaplib.pyR0stabortcBseZRS((R1R2(((s/usr/lib/python2.6/imaplib.pyR3streadonlycBseZRS((R1R2(((s/usr/lib/python2.6/imaplib.pyR4ss[^\w!#$%&'*+,.:;<=>?^`|~-]tcCst|_d|_d|_h|_h|_d|_t|_ d|_ |i ||t t idd|_tid|id|_d|_d|_h|_|id jo)|id t|id |in|i|_d |ijo d |_n0d|ijo d|_n|i|i|i\}}|dgjo|idnt|dii|_|idjo|id|ifnx/t D]'}||ijoqn||_!dSW|iddS(NR R5iiis(?Ps"\d+) (?P[A-Z]+) (?P.*)i isimaplib version %ssnew IMAP4 connection, tag=%stPREAUTHRtOKR s"no CAPABILITY response from serveriisCAPABILITIES: %rsserver not IMAP4 compliant("tDebugtdebugtstatetNonetliteralttagged_commandstuntagged_responsestcontinuation_responsetFalset is_readonlyttagnumtopenRtrandomtrandintttagpretretcompilettagret _cmd_log_lent _cmd_log_idxt_cmd_logt_mesgt __version__t _get_responsetwelcomeR0t capabilityttupletuppertsplitt capabilitiestAllowedVersionstPROTOCOL_VERSION(tselfthosttportttyptdattversion((s/usr/lib/python2.6/imaplib.pyt__init__sJ              cCs5|tjot||iStd|dS(NsUnknown IMAP4 command: '%s'(tCommandstgetattrtlowertAttributeError(RXtattr((s/usr/lib/python2.6/imaplib.pyt __getattr__s cCsC||_||_ti||f|_|iid|_dS(sSetup connection to remote server on "host:port" (default: localhost:standard IMAP4 port). This connection will be used by the routines: read, readline, send, shutdown. trbN(RYRZtsockettcreate_connectiontsocktmakefiletfile(RXRYRZ((s/usr/lib/python2.6/imaplib.pyRCs  cCs|ii|S(sRead 'size' bytes from remote.(Rjtread(RXtsize((s/usr/lib/python2.6/imaplib.pyRkscCsD|iitd}t|tjo|idtn|S(sRead line from remote.isgot more than %d bytes(Rjtreadlinet_MAXLINEtlenR0(RXtline((s/usr/lib/python2.6/imaplib.pyRmscCs|ii|dS(sSend data to remote.N(Rhtsendall(RXtdata((s/usr/lib/python2.6/imaplib.pytsendscCs|ii|iidS(s Close I/O established in "open".N(RjtcloseRh(RX((s/usr/lib/python2.6/imaplib.pytshutdowns cCs|iS(sfReturn socket instance used to connect to IMAP4 server. socket = .socket() (Rh(RX((s/usr/lib/python2.6/imaplib.pyRf scCs_d}|iddg|\}}|do ||fS|i\}}|i|||S(sReturn most recent 'RECENT' responses if any exist, else prompt server for an update using the 'NOOP' command. (typ, [data]) = .recent() 'data' is None if no new messages, else list of RECENT responses, most recent last. tRECENTR7iN(t_untagged_responseR;tnoop(RXtnameR[R\((s/usr/lib/python2.6/imaplib.pytrecents   cCs|i|dg|iS(sReturn data for response 'code' if received, or None. Old value for response 'code' is cleared. (code, [data]) = .response(code) N(RwR;RS(RXtcode((s/usr/lib/python2.6/imaplib.pytresponse'scCsd}|p d}n|o-|d|dfdjod|}qQnd }|ot|}nd }tit||_|i||||S( sAppend message to named mailbox. (typ, [data]) = .append(mailbox, flags, date_time, message) All args except `message' can be None. R tINBOXiit(t)s(%s)(R~RN(R;RtMapCRLFtsubtCRLFR<t_simple_command(RXtmailboxtflagst date_timetmessageRy((s/usr/lib/python2.6/imaplib.pytappend5s cCsm|i}t|i|_|id|\}}|djo|i|dnd|_||fS(s,Authenticate command - requires response processing. 'mechanism' specifies which authentication mechanism is to be used - it must appear in .capabilities in the form AUTH=. 'authobject' must be a callable object: data = authobject(response) It will be called to process server continuation responses. It should return data that will be encoded and sent to server. It should return None if the client abort response '*' should be sent instead. R R7iR(RSt_AuthenticatortprocessR<RR0R:(RXt mechanismt authobjecttmechR[R\((s/usr/lib/python2.6/imaplib.pyt authenticateLs   cCs.d}|i|\}}|i|||S(sT(typ, [data]) = .capability() Fetch capabilities list from server.R (RRw(RXRyR[R\((s/usr/lib/python2.6/imaplib.pyRQiscCs |idS(sRCheckpoint mailbox on server. (typ, [data]) = .check() R(R(RX((s/usr/lib/python2.6/imaplib.pytcheckrscCs0z|id\}}Wdd|_X||fS(sClose currently selected mailbox. Deleted messages are removed from writable mailbox. This is the recommended command before 'LOGOUT'. (typ, [data]) = .close() RNR(RR:(RXR[R\((s/usr/lib/python2.6/imaplib.pyRtzs cCs|id||S(sCopy 'message_set' messages onto end of 'new_mailbox'. (typ, [data]) = .copy(message_set, new_mailbox) R(R(RXt message_sett new_mailbox((s/usr/lib/python2.6/imaplib.pytcopyscCs|id|S(sPCreate new mailbox. (typ, [data]) = .create(mailbox) R(R(RXR((s/usr/lib/python2.6/imaplib.pytcreatescCs|id|S(sPDelete old mailbox. (typ, [data]) = .delete(mailbox) R(R(RXR((s/usr/lib/python2.6/imaplib.pytdeletescCs|id||S(sDelete the ACLs (remove any rights) set for who on mailbox. (typ, [data]) = .deleteacl(mailbox, who) R(R(RXRtwho((s/usr/lib/python2.6/imaplib.pyt deleteaclscCs.d}|i|\}}|i|||S(sPermanently remove deleted items from selected mailbox. Generates 'EXPUNGE' response for each deleted message. (typ, [data]) = .expunge() 'data' is list of 'EXPUNGE'd message numbers in order received. R(RRw(RXRyR[R\((s/usr/lib/python2.6/imaplib.pytexpunges cCs4d}|i|||\}}|i|||S(s#Fetch (parts of) messages. (typ, [data, ...]) = .fetch(message_set, message_parts) 'message_parts' should be a string of selected parts enclosed in parentheses, eg: "(UID BODY[TEXT])". 'data' are tuples of message part envelope and data. R(RRw(RXRt message_partsRyR[R\((s/usr/lib/python2.6/imaplib.pytfetchs cCs+|id|\}}|i||dS(sXGet the ACLs for a mailbox. (typ, [data]) = .getacl(mailbox) RtACL(RRw(RXRR[R\((s/usr/lib/python2.6/imaplib.pytgetaclscCs1|id|||\}}|i||dS(sa(typ, [data]) = .getannotation(mailbox, entry, attribute) Retrieve ANNOTATIONs.Rt ANNOTATION(RRw(RXRtentryt attributeR[R\((s/usr/lib/python2.6/imaplib.pyt getannotationscCs+|id|\}}|i||dS(sGet the quota root's resource usage and limits. Part of the IMAP4 QUOTA extension defined in rfc2087. (typ, [data]) = .getquota(root) RtQUOTA(RRw(RXtrootR[R\((s/usr/lib/python2.6/imaplib.pytgetquotascCs^|id|\}}|i||d\}}|i||d\}}|||gfS(sGet the list of quota roots for the named mailbox. (typ, [[QUOTAROOT responses...], [QUOTA responses]]) = .getquotaroot(mailbox) RRt QUOTAROOT(RRw(RXRR[R\tquotat quotaroot((s/usr/lib/python2.6/imaplib.pyt getquotarootss""t*cCs4d}|i|||\}}|i|||S(sList mailbox names in directory matching pattern. (typ, [data]) = .list(directory='""', pattern='*') 'data' is list of LIST responses. R(RRw(RXt directorytpatternRyR[R\((s/usr/lib/python2.6/imaplib.pytlistscCs[|id||i|\}}|djo|i|dnd|_||fS(sIdentify client using plaintext password. (typ, [data]) = .login(user, password) NB: 'password' will be quoted. RR7iR(Rt_quoteR0R:(RXtusertpasswordR[R\((s/usr/lib/python2.6/imaplib.pytlogins $  cCs&|||_|_|id|iS(sr Force use of CRAM-MD5 authentication. (typ, [data]) = .login_cram_md5(user, password) sCRAM-MD5(RRRt_CRAM_MD5_AUTH(RXRR((s/usr/lib/python2.6/imaplib.pytlogin_cram_md5scCs0ddk}|id|i|i|iS(s1 Authobject to use with CRAM-MD5 authentication. iNt (thmacRtHMACRt hexdigest(RXt challengeR((s/usr/lib/python2.6/imaplib.pyRs cCsd|_y|id\}}Wn%ddtid g}}nX|id|ijod|idfS||fS(s|Shutdown connection to server. (typ, [data]) = .logout() Returns server 'BYE' response. R tNOs%s: %sitBYE(R:Rtsystexc_infoRuR>(RXR[R\((s/usr/lib/python2.6/imaplib.pytlogouts " cCs4d}|i|||\}}|i|||S(sList 'subscribed' mailbox names in directory matching pattern. (typ, [data, ...]) = .lsub(directory='""', pattern='*') 'data' are tuples of message part envelope and data. R(RRw(RXRRRyR[R\((s/usr/lib/python2.6/imaplib.pytlsub$scCs+|id|\}}|i||dS(sShow my ACLs for a mailbox (i.e. the rights that I have on mailbox). (typ, [data]) = .myrights(mailbox) R(RRw(RXRR[R\((s/usr/lib/python2.6/imaplib.pytmyrights/scCs.d}|i|\}}|i|||S(sb Returns IMAP namespaces ala rfc2342 (typ, [data, ...]) = .namespace() R(RRw(RXRyR[R\((s/usr/lib/python2.6/imaplib.pyt namespace7scCs1|idjo|i|in|idS(sFSend NOOP command. (typ, [data]) = .noop() iR (R9t_dump_urR>R(RX((s/usr/lib/python2.6/imaplib.pyRxAscCs:d}|i|||||\}}|i||dS(sFetch truncated part of a message. (typ, [data, ...]) = .partial(message_num, message_part, start, length) 'data' is tuple of message part envelope and data. R!R(RRw(RXt message_numt message_parttstarttlengthRyR[R\((s/usr/lib/python2.6/imaplib.pytpartialLs!cCsd}|id|S(sAssume authentication as "user". Allows an authorised administrator to proxy into any user's mailbox. (typ, [data]) = .proxyauth(user) R"(R(RXRRy((s/usr/lib/python2.6/imaplib.pyt proxyauthXs cCs|id||S(skRename old mailbox name to new. (typ, [data]) = .rename(oldmailbox, newmailbox) R#(R(RXt oldmailboxt newmailbox((s/usr/lib/python2.6/imaplib.pytrenameescGsZd}|o"|i|d||\}}n|i||\}}|i|||S(sSearch mailbox for matching messages. (typ, [data]) = .search(charset, criterion, ...) 'data' is space separated list of matching message numbers. R$tCHARSET(RRw(RXtcharsettcriteriaRyR[R\((s/usr/lib/python2.6/imaplib.pytsearchms "R}cCsh|_||_|o d}nd}|i||\}}|djod|_||fSd|_d|ijoC| o;|idjo|i|in|id|n||iid d gfS( stSelect a mailbox. Flush all untagged responses. (typ, [data]) = .select(mailbox='INBOX', readonly=False) 'data' is count of messages in mailbox ('EXISTS' response). Mandated responses are ('FLAGS', 'EXISTS', 'RECENT', 'UIDVALIDITY'), so other responses should be obtained via .response('FLAGS') etc. RR%R7RRs READ-ONLYis%s is not writabletEXISTSN( R>RARR:R9RR4tgetR;(RXRR4RyR[R\((s/usr/lib/python2.6/imaplib.pytselect|s       cCs|id|||S(sZSet a mailbox acl. (typ, [data]) = .setacl(mailbox, who, what) R&(R(RXRRtwhat((s/usr/lib/python2.6/imaplib.pytsetaclscGs+|id|\}}|i||dS(s_(typ, [data]) = .setannotation(mailbox[, entry, attribute]+) Set ANNOTATIONs.R'R(RRw(RXtargsR[R\((s/usr/lib/python2.6/imaplib.pyt setannotationscCs.|id||\}}|i||dS(siSet the quota root's resource limits. (typ, [data]) = .setquota(root, limits) R(R(RRw(RXRtlimitsR[R\((s/usr/lib/python2.6/imaplib.pytsetquotascGs`d}|d|dfdjod|}n|i||||\}}|i|||S(sIMAP4rev1 extension SORT command. (typ, [data]) = .sort(sort_criteria, charset, search_criteria, ...) R)iiR~Rs(%s)(R~R(RRw(RXt sort_criteriaRtsearch_criteriaRyR[R\((s/usr/lib/python2.6/imaplib.pytsorts cCs4d}|i|||\}}|i|||S(spRequest named status conditions for mailbox. (typ, [data]) = .status(mailbox, names) R*(RRw(RXRtnamesRyR[R\((s/usr/lib/python2.6/imaplib.pytstatusscCsZ|d|dfdjod|}n|id|||\}}|i||dS( sAlters flag dispositions for messages in mailbox. (typ, [data]) = .store(message_set, command, flags) iiR~Rs(%s)R+R(R~R(RRw(RXRtcommandRR[R\((s/usr/lib/python2.6/imaplib.pytstorescCs|id|S(sYSubscribe to new mailbox. (typ, [data]) = .subscribe(mailbox) R,(R(RXR((s/usr/lib/python2.6/imaplib.pyt subscribescGs7d}|i||||\}}|i|||S(sIMAPrev1 extension THREAD command. (type, [data]) = .thread(threading_algorithm, charset, search_criteria, ...) R-(RRw(RXtthreading_algorithmRRRyR[R\((s/usr/lib/python2.6/imaplib.pytthreadscGs|i}|tjo|id|n|it|jo0|id||idit|fnd}|i|||\}}|d jo |}nd}|i|||S( sExecute "command arg ..." with messages identified by UID, rather than message number. (typ, [data]) = .uid(command, arg1, arg2, ...) Returns response appropriate to 'command'. sUnknown IMAP4 UID command: %ss9command %s illegal in state %s, only allowed in states %ss, R.R$R)R-R(sSEARCHsSORTsTHREAD(RSR_R0R:tjoinRRw(RXRRRyR[R\((s/usr/lib/python2.6/imaplib.pytuids      cCs|id|S(s_Unsubscribe from old mailbox. (typ, [data]) = .unsubscribe(mailbox) R/(R(RXR((s/usr/lib/python2.6/imaplib.pyt unsubscribescGs=|i}|tjo|ift|.xatom(name, arg, ...) Returns response appropriate to extension command `name'. (RSR_R:R(RXRyR((s/usr/lib/python2.6/imaplib.pytxatom s  cCs|djo d}n|i}|idjo0|id|t|i|d|fn||jo||i|n|g||R9RMRoRR(RXR[R\tur((s/usr/lib/python2.6/imaplib.pyt_append_untagged#s   ' cCs4|iid}|o|i|dndS(NRi(R>RR3(RXtbye((s/usr/lib/python2.6/imaplib.pyt _check_bye1sc Gs|it|jo9d|_|id||idit|fnx,dD]$}||ijo|i|=qTqTWd|ijo|i o|idn|i }d||f}x;|D]3}|djoqnd||i |f}qW|i}|dj oOd|_t |t |i jo |}qid}d |t |f}n|id jo|id |n|id |y|id |tfWn1titfj o} |id | nX|djo|Sxx%|io|i|o|SqW|o||i}n|id jo|idt |ny|i||itWn1titfj o} |id | nX|pPqq|S(Ns9command %s illegal in state %s, only allowed in states %ss, R7RtBADs READ-ONLYs#mailbox status changed to READ-ONLYs%s %ss%s {%s}is> %ss%s%sssocket error: %sswrite literal size %s(sOKsNOR(R:R_R;R<R0RR>RAR4t_new_tagt _checkquotettypet_commandRoR9RMt_logRsRRftOSErrorR3ROR=R?( RXRyRR[ttagRrtargR<t literatortval((s/usr/lib/python2.6/imaplib.pyR7sh              cCs|iy|i|\}}Wna|ij o"}|id||fn2|ij o"}|id||fnX|i|djo |id|||fn||fS(Nscommand: %s => %sRs%s command error: %s %s(Rt_get_tagged_responseR3R0(RXRyRR[RrR((s/usr/lib/python2.6/imaplib.pyt_command_completes    cCs|i}|i|i|ow|iid}||ijo|id|n|iid}|iid}||gf|i| %r(tmatchRR;R9RMRtgroups(RXtcrets((s/usr/lib/python2.6/imaplib.pyRs 'cCs7d|i|if}|id|_d|i|<|S(Ns%s%si(RFRBR;R=(RXR((s/usr/lib/python2.6/imaplib.pyRs cCst|tdj o|St|djo&|d|dfdd fjo|S|o|ii|djo|S|i|S( NR5iiiR~Rt"(R~R(RR(RRot mustquoteRR;R(RXR((s/usr/lib/python2.6/imaplib.pyRs4 cCs,|idd}|idd}d|S(Ns\s\\Rs\"s"%s"(treplace(RXR((s/usr/lib/python2.6/imaplib.pyR&scGs|i||i||S(N(RR(RXRyR((s/usr/lib/python2.6/imaplib.pyR.scCs}|djo ||fS||ijo|dgfS|ii|}|idjo|id||fn||fS(NRisuntagged_responses[%s] => %s(R>R;tpopR9RM(RXR[R\RyRr((s/usr/lib/python2.6/imaplib.pyRw3s  cCsn|djoti}ntidti|}tiid||dd|ftiidS(Ns%M:%Ss %s.%02d %s id(R;ttimetstrftimet localtimeRtstderrtwritetflush(RXRtsecsttm((s/usr/lib/python2.6/imaplib.pyRMBs  %cCsT|i}|pdSd}td|}|id||i|fdS(Ns cSs5d|d|ddodi|dpdfS(s%s: "%s"iis" "R5(R(tx((s/usr/lib/python2.6/imaplib.pytNssuntagged responses dump:%s%s(titemstmapRMR(RXtdicttltt((s/usr/lib/python2.6/imaplib.pyRIs  cCsO|tif|i|i<|id7_|i|ijo d|_ndS(Nii(R RLRKRJ(RXRp((s/usr/lib/python2.6/imaplib.pyRQscCs|idt|i|i|i}}x\|oTy|i|i|WnnX|d7}||ijo d}n|d8}q0WdS(Nslast %d IMAP4 interactions:ii(RMRoRLRKRJ(RXtitn((s/usr/lib/python2.6/imaplib.pyRXs  N(PR1R2t__doc__t ExceptionR0R3R4RGRHR t IMAP4_PORTR^RdRCRkRmRsRuRfRzR|RRRQRRtRRRRRRRRRRRRRRRRRRRxRRRRR@RRRRRRRRRRRRRRRRRORRRRRRRRwR;RMRRR(((s/usr/lib/python2.6/imaplib.pyRls,;                                   J  L          t IMAP4_SSLcBsheZdZded d dZdedZdZdZdZ dZ dZ d Z RS( sIMAP4 client class over SSL connection Instantiate with: IMAP4_SSL([host[, port[, keyfile[, certfile]]]]) host - host's name (default: localhost); port - port number (default: standard IMAP4 SSL port). keyfile - PEM formatted file that contains your private key (default: None); certfile - PEM formatted certificate chain file (default: None); for more documentation see the docstring of the parent class IMAP4. R5cCs)||_||_ti|||dS(N(tkeyfiletcertfileRR^(RXRYRZR!R"((s/usr/lib/python2.6/imaplib.pyR^{s  cCsO||_||_ti||f|_ti|i|i|i|_ dS(sSetup connection to remote server on "host:port". (default: localhost:standard IMAP4 SSL port). This connection will be used by the routines: read, readline, send, shutdown. N( RYRZRfRgRhtsslt wrap_socketR!R"tsslobj(RXRYRZ((s/usr/lib/python2.6/imaplib.pyRCs  cCsjg}d}xN||jo@|iit||d}|t|7}|i|qWdi|S(sRead 'size' bytes from remote.ii@R5(R%RktminRoRR(RXRltchunksRkRr((s/usr/lib/python2.6/imaplib.pyRks cCsJg}x=|iid}|i||djodi|Sq dS(sRead line from remote.is R5N(s R5(R%RkRR(RXRptchar((s/usr/lib/python2.6/imaplib.pyRms   cCs]t|}xJ|djo<|ii|}||joPn||}||}qWdS(sSend data to remote.iN(RoR%R(RXRrtbytestsent((s/usr/lib/python2.6/imaplib.pyRss    cCs|iidS(s Close I/O established in "open".N(RhRt(RX((s/usr/lib/python2.6/imaplib.pyRuscCs|iS(snReturn socket instance used to connect to IMAP4 server. socket = .socket() (Rh(RX((s/usr/lib/python2.6/imaplib.pyRfscCs|iS(sReturn SSLObject instance used to communicate with the IMAP4 server. ssl = ssl.wrap_socket(.socket) (R%(RX((s/usr/lib/python2.6/imaplib.pyR#sN( R1R2RtIMAP4_SSL_PORTR;R^RCRkRmRsRuRfR#(((s/usr/lib/python2.6/imaplib.pyR ls   cBsJeZdZdZdddZdZdZdZdZ RS(sIMAP4 client class over a stream Instantiate with: IMAP4_stream(command) where "command" is a string that can be passed to subprocess.Popen() for more documentation see the docstring of the parent class IMAP4. cCs||_ti|dS(N(RRR^(RXR((s/usr/lib/python2.6/imaplib.pyR^s c Csyd|_d|_d|_d|_ti|idtidtidt dt |_ |i i |_ |i i |_dS(sSetup a stream connection. This connection will be used by the routines: read, readline, send, shutdown. tstdintstdouttshellt close_fdsN(R;RYRZRhRjt subprocesstPopenRtPIPEtTrueRR,t writefileR-treadfile(RXRYRZ((s/usr/lib/python2.6/imaplib.pyRCs    cCs|ii|S(sRead 'size' bytes from remote.(R5Rk(RXRl((s/usr/lib/python2.6/imaplib.pyRkscCs |iiS(sRead line from remote.(R5Rm(RX((s/usr/lib/python2.6/imaplib.pyRmscCs!|ii||iidS(sSend data to remote.N(R4RR(RXRr((s/usr/lib/python2.6/imaplib.pyRsscCs+|ii|ii|iidS(s Close I/O established in "open".N(R5RtR4Rtwait(RX((s/usr/lib/python2.6/imaplib.pyRus  N( R1R2RR^R;RCRkRmRsRu(((s/usr/lib/python2.6/imaplib.pyRs     RcBs2eZdZdZdZdZdZRS(scPrivate class to provide en/decoding for base64-based authentication conversation. cCs ||_dS(N(R(RXtmechinst((s/usr/lib/python2.6/imaplib.pyR^scCs7|i|i|}|djodS|i|S(NR(RtdecodeR;tencode(RXRrtret((s/usr/lib/python2.6/imaplib.pyRs cCsxd}xk|oct|djo|d }|d}n |}d}ti|}|o||d }q q W|S(NR5i0i(Rotbinasciit b2a_base64(RXtinptoupRte((s/usr/lib/python2.6/imaplib.pyR9 s  cCs|pdSti|S(NR5(R;t a2b_base64(RXR=((s/usr/lib/python2.6/imaplib.pyR8#s(R1R2RR^RR9R8(((s/usr/lib/python2.6/imaplib.pyRs    itJanitFebitMaritApritMayitJunitJulitAugi tSepi tOcti tNovi tDecc Cs}ti|}|pd St|id}|id}t|id}t|id}t|id}t|id}t|id}t|id} t|id } | d | d } |d jo | } n||||||d d d f } ti| } ti| }ti o|d o| ti } n| ti } ti| | S(sMConvert IMAP4 INTERNALDATE to UT. Returns Python time module tuple. tmontzonentdaytyearthourR&tsectzonehtzonemi<t-iN( t InternalDateRR;tMon2numRRR tmktimeRtdaylighttaltzonettimezone(RRRMRNRORPRQR&RRRSRTtzonettttutctlt((s/usr/lib/python2.6/imaplib.pyR-s,  ! cCsTd}d}tt|}x/|o't|d\}}|||}q!W|S(s-Convert integer to A-P string representation.R5tABCDEFGHIJKLMNOPi(Rtabstdivmod(tnumRtAPtmod((s/usr/lib/python2.6/imaplib.pyRYscCs4ti|}|pdSt|idiS(s-Convert IMAP4 flags response to python tuple.R((tFlagsRRRRRT(RR((s/usr/lib/python2.6/imaplib.pyRfscCs t|ttfoti|}n`t|ttifo |}n=t|to |d|dfd jo|Stdti d|}|ddjod|d}nti o|doti }n ti }d|d t |d d dS( syConvert 'date_time' to IMAP4 INTERNALDATE representation. Return string in form: '"DD-Mmm-YYYY HH:MM:SS +HHMM"' iiRsdate_time not of a known types%d-%b-%Y %H:%M:%St0Ris %+03d%02di<(RR(t isinstanceRtfloatR RRRt struct_timetstrt ValueErrorR RYRZR[Rb(RR]tdtR\((s/usr/lib/python2.6/imaplib.pyRqs +  t__main__sd:s:s-ds-sR5sIMAP password for %s on %s: t localhostsJFrom: %(user)s@localhost%(lf)sSubject: IMAP4 test%(lf)s%(lf)sdata...%(lf)sRs tlfRRs /tmp/xxx 1Rs/tmp/yyys /tmp/yyz 2RRs/tmpsyy*RRtSUBJECTttestRt1s(FLAGS INTERNALDATE RFC822)RtFLAGSs (\Deleted)RRRzRtR|t UIDVALIDITYRtALLRRcCsktid||ftt||\}}tid|||f|djo|dn|S(Ns%s %ss %s => %s %sRi(tMRMR`(tcmdRR[R\((s/usr/lib/python2.6/imaplib.pytruns  sPROTOCOL_VERSION = %ssCAPABILITIES = %rs/tmp/syy%s .*"([^"]+)"$Rs%ss:(FLAGS INTERNALDATE RFC822.SIZE RFC822.HEADER RFC822.TEXT)s All tests OK.s Tests failed.s8 If you would like to see debugging output, try: %s -d5 (HRRNR;RDRGRfR0RR t__all__RR8RR+RVRnR_RHRRfRVRRRRRRR#t ImportErrorR RRRRWRRRRR1tgetopttgetpasstargvtoptlistRR0RR;tstream_commandtoptRRYtgetusertUSERtPASSWDt test_mesgt test_seq1t test_seq2RyRwR:RMRWRURxtmlRRRtpathRTR\R(((s/usr/lib/python2.6/imaplib.pyt s0 T                                    V 9,-- ,  #