‡Æ
ÞMö9c       s¼    d  Z    d Z  d k Z d k Z d k Z d k Z d k Z d k Z d k Z  d Z	  d Z
  d Z  d d f Z  h  d d	 f d
 <d f d <d d d	 d f d <d	 f d <d	 f d <d	 f d <d d	 f d <d d	 f d <d d	 f d <d	 f d <d	 f d <d d	 f d <d f d <d d d	 d f d <d d	 f d <d d d	 d f d <d	 f d <d d	 f d <d	 f d <d d	 f d <d d	 f d <d	 f d  <d d	 f d! <d	 f d" <d d	 f d# <Z > e i d$ ƒ Z ? e i d% ƒ Z @ e i d& ƒ Z E e i d' ƒ Z F e i d( ƒ Z G e i d) ƒ Z H e i d* ƒ Z L d f  d+ „  ƒ  YZ [d, f  d- „  ƒ  YZ ‡h  d. d/ <d0 d1 <d2 d3 <d4 d5 <d6 d7 <d8 d9 <d: d; <d< d= <d> d? <d@ dA <dB dC <dD dE <Z ŠdF „  Z ²dG „  Z ¿dH „  Z ÊdI „  Z åe oI çe dJ „ Z îdK „  Z  ÷g  Z! ød@ Z" údL „  Z#  dM „  Z$ n e% dN j o	d k& Z& d k' Z' d k Z y& e& i& e i( d. dO ƒ \ Z) Z* Wn e& i+ j
 o Z, n Xx< e) d r/ \ Z- Z, e- dP j o e. e, ƒ Z
 n qWe* o dQ f Z* n e* d Z/ e' i0 ƒ  Z1 e' i' dR e1 e/ p dS f ƒ Z2 dT e1 Z3 dU e1 e2 f f dV dW f f dX dW dY f f d dZ f f d[ dZ e e e3 f f d\ d] d^ f f d_ dZ f f d` e da db f f dc dd de d. df f f dg dd dh di f f dj f  f dk f  f dl f  f f Z4 ,d_ f  f dm dn f f do d dp f f dm dq f f d[ e e e e3 f f dk f  f dr f  f f Z5 6ds „  Z6 <y=e e/ ƒ Z7 >e dt e7 i8 ƒ @x) e4 d @r \ Z9 Z* Ae6 e9 e* ƒ qWCx e6 d\ du dv f ƒ d Cre Z: De i; dw e: ƒ Z< Ee< o Ee< i= d. ƒ Z> n Fe i? e: ƒ d. Z> Ge6 dx e> f ƒ qWWIx¥ e5 d Ir˜ \ Z9 Z* Je6 e9 e* ƒ Z@ Le9 e* f do d dp f f j o
 MqÏn Oe i? e@ d. ƒ ZA PeA o
 PqÏn Qe6 do d dy eA d. dz f ƒ qÏWTd{ GHWn: VWd| GHYe
 o Zd} e i( d GHn _‚  n Xn d S(~   s¡   IMAP4 client.

Based on RFC 2060.

Public class:		IMAP4
Public variable:	Debug
Public functions:	Internaldate2tuple
			Int2AP
			ParseFlags
			Time2Internaldate
s   2.39Ns   
i    i   s	   IMAP4REV1s   IMAP4s   AUTHs   SELECTEDs   APPENDs   NONAUTHs   AUTHENTICATEs   LOGOUTs
   CAPABILITYs   CHECKs   CLOSEs   COPYs   CREATEs   DELETEs   EXAMINEs   EXPUNGEs   FETCHs   LISTs   LOGINs   LSUBs   NOOPs   PARTIALs   RENAMEs   SEARCHs   SELECTs   STATUSs   STOREs	   SUBSCRIBEs   UIDs   UNSUBSCRIBEs   \+( (?P<data>.*))?s   .*FLAGS \((?P<flags>[^\)]*)\)sÔ   .*INTERNALDATE "(?P<day>[ 123][0-9])-(?P<mon>[A-Z][a-z][a-z])-(?P<year>[0-9][0-9][0-9][0-9]) (?P<hour>[0-9][0-9]):(?P<min>[0-9][0-9]):(?P<sec>[0-9][0-9]) (?P<zonen>[-+])(?P<zoneh>[0-9][0-9])(?P<zonem>[0-9][0-9])"s   .*{(?P<size>\d+)}$s)   \[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]s$   \* (?P<type>[A-Z-]+)( (?P<data>.*))?s3   \* (?P<data>\d+) (?P<type>[A-Z-]+)( (?P<data2>.*))?c      s‡  L d  Z  u w d e f d „  ƒ  YZ x d e f d „  ƒ  YZ y d e f d „  ƒ  YZ { e i d ƒ Z } d	 e d „ Z	 · d
 „  Z
 Â d „  Z É d „  Z Ú d „  Z ä d „  Z ð d „  Z d „  Z #d „  Z +d „  Z :d „  Z Bd „  Z Jd „  Z Rd „  Z `d „  Z od d d „ Z {d „  Z ‹d „  Z œd d d „ Z ¨d „  Z ³d „  Z ¿d  „  Z Çd! „  Z Õd# e  d" „ Z! ód$ „  Z" ÿd% „  Z# 
d& „  Z$ d' „  Z% )d( „  Z& 1d) „  Z' @d* „  Z( Nd+ „  Z) Td, „  Z* œd- „  Z+ ªd. „  Z, öd/ „  Z- d0 „  Z. d1 „  Z/ )d2 „  Z0 1d3 „  Z1 ?d4 „  Z2 Gd5 „  Z3 Ld6 „  Z4 RS(7   sy  IMAP4 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.

	Errors raise the exception class <instance>.error("<reason>").
	IMAP4 server errors raise <instance>.abort("<reason>"),
	which is a sub-class of 'error'. Mailbox status changes
	from READ-WRITE to READ-ONLY raise the exception class
	<instance>.readonly("<reason>"), 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.
	s   errorc      s   w w RS(   N(    (    s$   /mit/python/lib/python2.0/imaplib.pys   errorw s    s   abortc      s   x x RS(   N(    (    s$   /mit/python/lib/python2.0/imaplib.pys   abortx s    s   readonlyc      s   y y RS(   N(    (    s$   /mit/python/lib/python2.0/imaplib.pys   readonlyy s    s   [^\w!#$%&'*+,.:;<=>?^`|~-]c    sˆ  } ~ | |  _   | |  _ € t |  _  d |  _ ‚ t |  _ ƒ h  |  _ „ h  |  _	 … d |  _
 † t |  _ ‡ d |  _ ‹ |  i | | ƒ  t t i d d ƒ ƒ |  _ ‘ t i d |  i d ƒ |  _ ˜ t o/ ™ |  i d j o š t d |  i ƒ n n œ |  i ƒ  |  _  |  i	 i d	 ƒ o ž d
 |  _ n< Ÿ |  i	 i d ƒ o   d |  _ n ¢ |  i |  i ƒ ‚ ¤ d } ¥ |  i | ƒ ¦ |  i	 i | ƒ o § |  i d ƒ ‚ n ¨ t t i t i  |  i	 | d ƒ ƒ ƒ |  _! ª t o0 « |  i d j o ¬ t d |  i! ƒ n n ® xD t" d ® r7 } ¯ | |  i! j o
 ° q4n ± | |  _$ ² d  Sq4W´ |  i d ƒ ‚ d  S(   Ns   LOGOUTs    i    iÿ|  s   (?P<tag>s"   \d+) (?P<type>[A-Z]+) (?P<data>.*)i   s   new IMAP4 connection, tag=%ss   PREAUTHs   AUTHs   OKs   NONAUTHs
   CAPABILITYs"   no CAPABILITY response from serveri   s   CAPABILITIES: %ss   server not IMAP4 compliant(%   s   hosts   selfs   ports   Debugs   debugs   states   Nones   literals   tagged_commandss   untagged_responsess   continuation_responses   is_readonlys   tagnums   opens   Int2APs   randoms   randints   tagpres   res   compiles   tagres	   __debug__s   _mesgs   _get_responses   welcomes   has_keys   errors   caps   _simple_commands   tuples   strings   splits   uppers   capabilitiess   AllowedVersionss   versions   PROTOCOL_VERSION(   s   selfs   hosts   ports   caps   versions$   /mit/python/lib/python2.0/imaplib.pys   __init__} sJ    
	0
 	
s    c    sK   · ¹ t  i | ƒ o º t d t i | ƒ ƒ Sn » t d | ƒ ‚ d  S(   Ns   self.%ss   Unknown IMAP4 command: '%s'(   s   Commandss   has_keys   attrs   evals   strings   lowers   AttributeError(   s   selfs   attrs$   /mit/python/lib/python2.0/imaplib.pys   __getattr__· s   c    s_   Â Ã Ä t  i  t  i t  i ƒ |  _ Å |  i i |  i |  i f ƒ Æ |  i i d ƒ |  _	 d S(   s"   Setup 'self.sock' and 'self.file'.s   rN(
   s   sockets   AF_INETs   SOCK_STREAMs   selfs   socks   connects   hosts   ports   makefiles   file(   s   selfs   hosts   ports$   /mit/python/lib/python2.0/imaplib.pys   openÂ s   c    s   É Ñ Ò d } Ó |  i d t g | ƒ \ } } Ô | d o Õ | | f Sn Ö |  i ƒ  \ } } × |  i | | | ƒ Sd S(   só   Return most recent 'RECENT' responses if any exist,
		else prompt server for an update using the 'NOOP' command.

		(typ, [data]) = <instance>.recent()

		'data' is None if no new messages,
		else list of RECENT responses, most recent last.
		s   RECENTs   OKi   N(   s   names   selfs   _untagged_responses   Nones   typs   dats   noop(   s   selfs   names   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   recentÉ s   	!c    s,   Ú à á |  i | t g t i | ƒ ƒ Sd S(   s“   Return data for response 'code' if received, or None.

		Old value for response 'code' is cleared.

		(code, [data]) = <instance>.response(code)
		N(   s   selfs   _untagged_responses   codes   Nones   strings   upper(   s   selfs   codes$   /mit/python/lib/python2.0/imaplib.pys   responseÚ s   c    s   ä è é |  i Sd S(   sZ   Return socket instance used to connect to IMAP4 server.

		socket = <instance>.socket()
		N(   s   selfs   sock(   s   selfs$   /mit/python/lib/python2.0/imaplib.pys   socketä s   c    sÃ   ð ö ÷ d } ø | o ù d } n ú | o: û | d | d f d d f j o ü d | } n n
 þ t } ÿ | o  t | ƒ } n
 t } | |  _ |  i	 | | | | ƒ Sd S(	   s—   Append message to named mailbox.

		(typ, [data]) = <instance>.append(mailbox, flags, date_time, message)

			All args except `message' can be None.
		s   APPENDs   INBOXi    i   s   (s   )s   (%s)N(
   s   names   mailboxs   flagss   Nones	   date_times   Time2Internaldates   messages   selfs   literals   _simple_command(   s   selfs   mailboxs   flagss	   date_times   messages   names$   /mit/python/lib/python2.0/imaplib.pys   appendð s   	
%	
	c    sË   t  i | ƒ } d | } | |  i j o |  i d | ƒ ‚ n t | ƒ i
 |  _ |  i d | ƒ \ } } | d j o |  i | d ƒ ‚ n d |  _  | | f Sd S(   sé  Authenticate command - requires response processing.

		'mechanism' specifies which authentication mechanism is to
		be used - it must appear in <instance>.capabilities in the
		form AUTH=<mechanism>.

		'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.
		s   AUTH=%ss'   Server doesn't allow %s authentication.s   AUTHENTICATEs   OKi   s   AUTHN(   s   strings   uppers	   mechanisms   mechs   caps   selfs   capabilitiess   errors   _Authenticators
   authobjects   processs   literals   _simple_commands   typs   dats   state(   s   selfs	   mechanisms
   authobjects   mechs   caps   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   authenticates   c    s   #'(|  i d ƒ Sd S(   sF   Checkpoint mailbox on server.

		(typ, [data]) = <instance>.check()
		s   CHECKN(   s   selfs   _simple_command(   s   selfs$   /mit/python/lib/python2.0/imaplib.pys   check#s   c    sI   +23z 4|  i d ƒ \ } } Wd 56d |  _ X7| | f Sd S(   s´   Close currently selected mailbox.

		Deleted messages are removed from writable mailbox.
		This is the recommended command before 'LOGOUT'.

		(typ, [data]) = <instance>.close()
		s   CLOSENs   AUTH(   s   selfs   _simple_commands   typs   dats   state(   s   selfs   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   close+s   c    s    :>?|  i d | | ƒ Sd S(   sv   Copy 'message_set' messages onto end of 'new_mailbox'.

		(typ, [data]) = <instance>.copy(message_set, new_mailbox)
		s   COPYN(   s   selfs   _simple_commands   message_sets   new_mailbox(   s   selfs   message_sets   new_mailboxs$   /mit/python/lib/python2.0/imaplib.pys   copy:s   c    s   BFG|  i d | ƒ Sd S(   sD   Create new mailbox.

		(typ, [data]) = <instance>.create(mailbox)
		s   CREATEN(   s   selfs   _simple_commands   mailbox(   s   selfs   mailboxs$   /mit/python/lib/python2.0/imaplib.pys   createBs   c    s   JNO|  i d | ƒ Sd S(   sD   Delete old mailbox.

		(typ, [data]) = <instance>.delete(mailbox)
		s   DELETEN(   s   selfs   _simple_commands   mailbox(   s   selfs   mailboxs$   /mit/python/lib/python2.0/imaplib.pys   deleteJs   c    sA   RZ[d } \|  i | ƒ \ } } ]|  i | | | ƒ Sd S(   sß   Permanently remove deleted items from selected mailbox.

		Generates 'EXPUNGE' response for each deleted message.

		(typ, [data]) = <instance>.expunge()

		'data' is list of 'EXPUNGE'd message numbers in order received.
		s   EXPUNGEN(   s   names   selfs   _simple_commands   typs   dats   _untagged_response(   s   selfs   names   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   expungeRs   	c    sG   `ijd } k|  i | | | ƒ \ } } l|  i | | | ƒ Sd S(   s  Fetch (parts of) messages.

		(typ, [data, ...]) = <instance>.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.
		s   FETCHN(   s   names   selfs   _simple_commands   message_sets   message_partss   typs   dats   _untagged_response(   s   selfs   message_sets   message_partss   names   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   fetch`s   		c    sG   ouvd } w|  i | | | ƒ \ } } x|  i | | | ƒ Sd S(   s™   List mailbox names in directory matching pattern.

		(typ, [data]) = <instance>.list(directory='""', pattern='*')

		'data' is list of LIST responses.
		s   LISTN(   s   names   selfs   _simple_commands	   directorys   patterns   typs   dats   _untagged_response(   s   selfs	   directorys   patterns   names   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   listos   	s   ""s   *c    su   {„|  i d | |  i | ƒ ƒ \ } } …| d j o †|  i | d ƒ ‚ n ‡d |  _ ˆ| | f Sd S(   s‚   Identify client using plaintext password.

		(typ, [data]) = <instance>.login(user, password)

		NB: 'password' will be quoted.
		s   LOGINs   OKi   s   AUTHN(	   s   selfs   _simple_commands   users   _quotes   passwords   typs   dats   errors   state(   s   selfs   users   passwords   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   login{s   'c    sÃ   ‹‘’d |  _ “y “|  i d ƒ \ } } Wn0 ””d d t i ƒ  d  g f \ } } n X•|  i i ƒ  –|  i	 i ƒ  —|  i
 i d ƒ o ˜d |  i
 d f Sn ™| | f Sd S(   sj   Shutdown connection to server.

		(typ, [data]) = <instance>.logout()

		Returns server 'BYE' response.
		s   LOGOUTs   NOs   %s: %si   s   BYEN(   s   selfs   states   _simple_commands   typs   dats   syss   exc_infos   files   closes   socks   untagged_responsess   has_key(   s   selfs   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   logout‹s     *c    sG   œ¢£d } ¤|  i | | | ƒ \ } } ¥|  i | | | ƒ Sd S(   s¾   List 'subscribed' mailbox names in directory matching pattern.

		(typ, [data, ...]) = <instance>.lsub(directory='""', pattern='*')

		'data' are tuples of message part envelope and data.
		s   LSUBN(   s   names   selfs   _simple_commands	   directorys   patterns   typs   dats   _untagged_response(   s   selfs	   directorys   patterns   names   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   lsubœs   	c    sO   ¨¬­t  o+ ®|  i d j o ¯t |  i ƒ n n °|  i d ƒ Sd S(   s8   Send NOOP command.

		(typ, data) = <instance>.noop()
		i   s   NOOPN(   s	   __debug__s   selfs   debugs   _dump_urs   untagged_responsess   _simple_command(   s   selfs$   /mit/python/lib/python2.0/imaplib.pys   noop¨s
   
c    sM   ³¹ºd } »|  i | | | | | ƒ \ } } ¼|  i	 | | d ƒ Sd S(   s°   Fetch truncated part of a message.

		(typ, [data, ...]) = <instance>.partial(message_num, message_part, start, length)

		'data' is tuple of message part envelope and data.
		s   PARTIALs   FETCHN(
   s   names   selfs   _simple_commands   message_nums   message_parts   starts   lengths   typs   dats   _untagged_response(   s   selfs   message_nums   message_parts   starts   lengths   names   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   partial³s   	$c    s    ¿ÃÄ|  i d | | ƒ Sd S(   s]   Rename old mailbox name to new.

		(typ, data) = <instance>.rename(oldmailbox, newmailbox)
		s   RENAMEN(   s   selfs   _simple_commands
   oldmailboxs
   newmailbox(   s   selfs
   oldmailboxs
   newmailboxs$   /mit/python/lib/python2.0/imaplib.pys   rename¿s   c    si   ÇÍÎd } Ï| o Ðd | } n Ñt |  i | | f | ƒ \ } } Ò|  i | | | ƒ Sd S(   s¥   Search mailbox for matching messages.

		(typ, [data]) = <instance>.search(charset, criterium, ...)

		'data' is space separated list of matching message numbers.
		s   SEARCHs   CHARSET N(	   s   names   charsets   applys   selfs   _simple_commands   criterias   typs   dats   _untagged_response(   s   selfs   charsets   criterias   names   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   searchÇs   	
%c    s"  ÕÝßh  |  _ à| |  _ á| o âd } n
 äd } å|  i | | ƒ \ } } æ| d j o çd |  _	 è| | f Sn éd |  _	 ê|  i i
 d ƒ o | oO ìt o+ í|  i d j o ît |  i ƒ n n ï|  i d | ƒ ‚ n ð| |  i i d	 t g ƒ f Sd
 S(   s¹   Select a mailbox.

		Flush all untagged responses.

		(typ, [data]) = <instance>.select(mailbox='INBOX', readonly=None)

		'data' is count of messages in mailbox ('EXISTS' response).
		s   EXAMINEs   SELECTs   OKs   AUTHs   SELECTEDs	   READ-ONLYi   s   %s is not writables   EXISTSN(   s   selfs   untagged_responsess   readonlys   is_readonlys   names   _simple_commands   mailboxs   typs   dats   states   has_keys	   __debug__s   debugs   _dump_urs   gets   None(   s   selfs   mailboxs   readonlys   names   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   selectÕs"   
	
s   INBOXc    st   ó÷ød } ù|  i d j o ú|  i d | ƒ ‚ n û|  i | | | ƒ \ } } ü|  i	 | | | ƒ Sd S(   sd   Request named status conditions for mailbox.

		(typ, [data]) = <instance>.status(mailbox, names)
		s   STATUSs   IMAP4s?   %s unimplemented in IMAP4 (obtain IMAP4rev1 server, or re-code)N(
   s   names   selfs   PROTOCOL_VERSIONs   errors   _simple_commands   mailboxs   namess   typs   dats   _untagged_response(   s   selfs   mailboxs   namess   names   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   statusós   	c    sw   ÿ| d | d f d d f j o d | } n |  i d | | | ƒ \ } } |  i | | d ƒ Sd S(	   su   Alters flag dispositions for messages in mailbox.

		(typ, [data]) = <instance>.store(message_set, command, flags)
		i    i   s   (s   )s   (%s)s   STOREs   FETCHN(   s   flagss   selfs   _simple_commands   message_sets   commands   typs   dats   _untagged_response(   s   selfs   message_sets   commands   flagss   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   storeÿs
   %!c    s   
|  i d | ƒ Sd S(   sM   Subscribe to new mailbox.

		(typ, [data]) = <instance>.subscribe(mailbox)
		s	   SUBSCRIBEN(   s   selfs   _simple_commands   mailbox(   s   selfs   mailboxs$   /mit/python/lib/python2.0/imaplib.pys	   subscribe
s   c    sî   t  i | ƒ } t i | ƒ o |  i d | ƒ ‚ n |  i t | j o# |  i d | |  i f ƒ ‚ n  d } !t	 |  i
 | | f | ƒ \ } } "| d j o #d } n
 %d } &|  i | | | ƒ Sd S(   sÆ   Execute "command arg ..." with messages identified by UID,
			rather than message number.

		(typ, [data]) = <instance>.uid(command, arg1, arg2, ...)

		Returns response appropriate to 'command'.
		s   Unknown IMAP4 UID command: %ss   command %s illegal in state %ss   UIDs   SEARCHs   FETCHN(   s   strings   uppers   commands   Commandss   has_keys   selfs   errors   states   names   applys   _simple_commands   argss   typs   dats   _untagged_response(   s   selfs   commands   argss   names   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   uids   #	%	c    s   )-.|  i d | ƒ Sd S(   sS   Unsubscribe from old mailbox.

		(typ, [data]) = <instance>.unsubscribe(mailbox)
		s   UNSUBSCRIBEN(   s   selfs   _simple_commands   mailbox(   s   selfs   mailboxs$   /mit/python/lib/python2.0/imaplib.pys   unsubscribe)s   c    sc   167| d d j p | |  i j o 8|  i d | ƒ ‚ n 9t |  i | f | ƒ Sd S(   s„   Allow simple extension commands
			notified by server in CAPABILITY response.

		(typ, [data]) = <instance>.xatom(name, arg, ...)
		i    s   Xs   unknown extension command: %sN(   s   names   selfs   capabilitiess   errors   applys   _simple_commands   args(   s   selfs   names   argss$   /mit/python/lib/python2.0/imaplib.pys   xatom1s   %c    s¼   @B| t j o Bd } n C|  i } Dt oG E|  i d j o0 Ft d | t	 | i
 | d ƒ ƒ | f ƒ n n H| i | ƒ o I| | i | ƒ n K| g | | <d  S(   Ns    i   s#   untagged_responses[%s] %s += ["%s"](   s   dats   Nones   selfs   untagged_responsess   urs	   __debug__s   debugs   _mesgs   typs   lens   gets   has_keys   append(   s   selfs   typs   dats   urs$   /mit/python/lib/python2.0/imaplib.pys   _append_untagged@s    
4c    sA   NO|  i i d ƒ } P| o Q|  i | d ƒ ‚ n d  S(   Ns   BYEi   (   s   selfs   untagged_responsess   gets   byes   abort(   s   selfs   byes$   /mit/python/lib/python2.0/imaplib.pys
   _check_byeNs   
c 
   s•  TV|  i t | j o/ Wt |  _ X|  i d | |  i f ƒ ‚ n [xC d d d f d [r- } \|  i i	 | ƒ o ]|  i | =n q^ W_|  i i	 d ƒ o |  i
 o a|  i d ƒ ‚ n c|  i ƒ  } dd | | f } exI | d er< } f| t j o
 fq÷ n gd | |  i | ƒ f } q÷ Wi|  i } j| t j	 o^ kt |  _ lt | ƒ t |  i ƒ j o m| } n# ot } pd	 | t | ƒ f } n rt o= s|  i d
 j o tt d | ƒ n vt d | ƒ n xy! y|  i i d | t f ƒ Wn1 zt i j
 o }	 {|  i d |	 ƒ ‚ n X}| t j o ~| Sn €x€d oƒx1 ƒ|  i  ƒ  o  „|  i! | o …| Sn q„W‰| o Š| |  i" ƒ } n Œt o2 |  i d
 j o Žt d t | ƒ ƒ n n y* ‘|  i i | ƒ ’|  i i t ƒ Wn1 “t i j
 o }	 ”|  i d |	 ƒ ‚ n X–| o —Pn qtW™| Sd  S(   Ns   command %s illegal in state %ss   OKs   NOs   BADi    s	   READ-ONLYs#   mailbox status changed to READ-ONLYs   %s %ss   %s {%s}i   s   > %ss   %s%ss   socket error: %si   s   write literal size %s(#   s   selfs   states   Commandss   names   Nones   literals   errors   typs   untagged_responsess   has_keys   is_readonlys   readonlys   _new_tags   tags   datas   argss   args   _checkquotes   types   _commands	   literators   lens	   __debug__s   debugs   _mesgs   _logs   socks   sends   CRLFs   sockets   vals   aborts   _get_responses   tagged_commandss   continuation_response(
   s   selfs   names   argss   typs   tags   datas   args   literals	   literators   vals$   /mit/python/lib/python2.0/imaplib.pys   _commandTsh   # 	! 	 
 	
! 
 

c    sð   œ|  i ƒ  žy Ÿ|  i | ƒ \ } } Wnm  |  i j
 o% } ¡|  i d | | f ƒ ‚ n8 ¢|  i	 j
 o% } £|  i	 d | | f ƒ ‚ n X¤|  i ƒ  ¥| d j o# ¦|  i	 d | | | f ƒ ‚ n §| | f Sd  S(   Ns   command: %s => %ss   BADs   %s command error: %s %s(
   s   selfs
   _check_byes   _get_tagged_responses   tags   typs   datas   aborts   vals   names   error(   s   selfs   names   tags   typs   datas   vals$   /mit/python/lib/python2.0/imaplib.pys   _command_completeœs    !#c    sT  ª±|  i ƒ  } µ|  i |  i | ƒ o ¶|  i i d ƒ } ·|  i i	 | ƒ o ¸|  i
 d | ƒ ‚ n º|  i i d ƒ } »|  i i d ƒ } ¼| | g f |  i | <nå¾t } Â|  i t | ƒ o3 Ã|  i t | ƒ o Ä|  i i d ƒ } n n Æ|  i t j oS É|  i t | ƒ o# Ê|  i i d ƒ |  _ Ët Sn Í|  i
 d | ƒ ‚ n Ï|  i i d ƒ } Ð|  i i d ƒ } Ñ| t j o Ñd } n Ò| o Ò| d | } n Öx¬ Ö|  i t | ƒ o• Út i |  i i d	 ƒ ƒ } Ût o, Ü|  i d
 j o Ýt d | ƒ n n Þ|  i i | ƒ } â|  i | | | f ƒ æ|  i ƒ  } qÝWè|  i | | ƒ ì| d d d f j o |  i t | ƒ o/ í|  i |  i i d ƒ |  i i d ƒ ƒ n ït oH ð|  i d j o | d d d f j o ñt d | | f ƒ n n ó| Sd  S(   Ns   tags   unexpected tagged response: %ss   types   datas   data2s   unexpected response: '%s's    s    s   sizei   s   read literal size %ss   OKs   NOs   BADi   s   BYEs   %s response: %s(   s   selfs	   _get_lines   resps   _matchs   tagres   mos   groups   tags   tagged_commandss   has_keys   aborts   typs   dats   Nones   dat2s   Untagged_responses   Untagged_statuss   Continuations   continuation_responses   Literals   strings   atois   sizes	   __debug__s   debugs   _mesgs   files   reads   datas   _append_untaggeds   Response_code(   s   selfs   resps   tags   typs   dats   dat2s   sizes   datas$   /mit/python/lib/python2.0/imaplib.pys   _get_responseªsN   	 
  
,/
)c    s»   öøx® ød o£ ù|  i | } ú| t j	 o û|  i | =ü| Sn y |  i ƒ  WnP |  i j
 o> } t o% |  i	 d j o t
 ƒ  n n 	‚  n Xq	 Wd  S(   Ni   (   s   selfs   tagged_commandss   tags   results   Nones   _get_responses   aborts   vals	   __debug__s   debugs	   print_log(   s   selfs   tags   results   vals$   /mit/python/lib/python2.0/imaplib.pys   _get_tagged_responseös    

c    s–   |  i i ƒ  } | o |  i d ƒ ‚ n | d  } t o= |  i d j o t d | ƒ n t d | ƒ n | Sd  S(   Ns   socket error: EOFi   i   s   < %s(	   s   selfs   files   readlines   lines   aborts	   __debug__s   debugs   _mesgs   _log(   s   selfs   lines$   /mit/python/lib/python2.0/imaplib.pys	   _get_lines   
c    s…   "| i | ƒ |  _ #t oO $|  i t j	 o |  i d j o( %t d | i	 |  i i
 ƒ  f ƒ n n &|  i t j	 Sd  S(   Ni   s   	matched r'%s' => %s(   s   cres   matchs   ss   selfs   mos	   __debug__s   Nones   debugs   _mesgs   patterns   groups(   s   selfs   cres   ss$   /mit/python/lib/python2.0/imaplib.pys   _matchs
   
#,c    sJ   )+d |  i |  i f } ,|  i d |  _ -t |  i | <.| Sd  S(   Ns   %s%si   (   s   selfs   tagpres   tagnums   tags   Nones   tagged_commands(   s   selfs   tags$   /mit/python/lib/python2.0/imaplib.pys   _new_tag)s   c    s¡   16t  | ƒ t  d ƒ j	 o 7| Sn 8| d | d f d d f d d f f j o 9| Sn :|  i i | ƒ t j o ;| Sn <|  i | ƒ Sd  S(   Ns    i    i   s   (s   )s   "(   s   types   args   selfs	   mustquotes   searchs   Nones   _quote(   s   selfs   args$   /mit/python/lib/python2.0/imaplib.pys   _checkquote1s   1c    sB   ?At  i | d d ƒ } Bt  i | d d ƒ } Dd | Sd  S(   Ns   \s   \\s   "s   \"s   "%s"(   s   strings   replaces   arg(   s   selfs   args$   /mit/python/lib/python2.0/imaplib.pys   _quote?s   c    s-   GI|  i | t |  i | f | ƒ ƒ Sd  S(   N(   s   selfs   _command_completes   names   applys   _commands   args(   s   selfs   names   argss$   /mit/python/lib/python2.0/imaplib.pys   _simple_commandGs   c    s¹   LN| d j o O| | f Sn P|  i i | ƒ o Q| t g f Sn R|  i | } St o2 T|  i	 d j o Ut
 d | | f ƒ n n V|  i | =W| | f Sd  S(   Ns   NOi   s   untagged_responses[%s] => %s(   s   typs   dats   selfs   untagged_responsess   has_keys   names   Nones   datas	   __debug__s   debugs   _mesg(   s   selfs   typs   dats   names   datas$   /mit/python/lib/python2.0/imaplib.pys   _untagged_responseLs   
(5   s   __doc__s	   Exceptions   errors   aborts   readonlys   res   compiles	   mustquotes
   IMAP4_PORTs   __init__s   __getattr__s   opens   recents   responses   sockets   appends   authenticates   checks   closes   copys   creates   deletes   expunges   fetchs   lists   logins   logouts   lsubs   noops   partials   renames   searchs   Nones   selects   statuss   stores	   subscribes   uids   unsubscribes   xatoms   _append_untaggeds
   _check_byes   _commands   _command_completes   _get_responses   _get_tagged_responses	   _get_lines   _matchs   _new_tags   _checkquotes   _quotes   _simple_commands   _untagged_response(    s$   /mit/python/lib/python2.0/imaplib.pys   IMAP4L s`   	):
HLs   _Authenticatorc      s>   [d  Z  _ad „  Z dd „  Z jd „  Z €d „  Z RS(   sV   Private class to provide en/decoding
		for base64-based authentication conversation.
	c    s   ab| |  _ d  S(   N(   s   mechinsts   selfs   mech(   s   selfs   mechinsts$   /mit/python/lib/python2.0/imaplib.pys   __init__as   c    sM   de|  i |  i | ƒ ƒ } f| t j o gd Sn h|  i | ƒ Sd  S(   Ns   *(   s   selfs   mechs   decodes   datas   rets   Nones   encode(   s   selfs   datas   rets$   /mit/python/lib/python2.0/imaplib.pys   processds   c    s¤   jsd } tx‡ t| o| ut | ƒ d j o v| d  } w| d } n y| } zd } {t i | ƒ } || o }| | d  } n q W~| Sd  S(   Ns    i0   i   (   s   oups   inps   lens   ts   binasciis
   b2a_base64s   e(   s   selfs   inps   oups   ts   es$   /mit/python/lib/python2.0/imaplib.pys   encodejs   		 
		
c    s-   €| o ‚d Sn ƒt i | ƒ Sd  S(   Ns    (   s   inps   binasciis
   a2b_base64(   s   selfs   inps$   /mit/python/lib/python2.0/imaplib.pys   decode€s   (   s   __doc__s   __init__s   processs   encodes   decode(    s$   /mit/python/lib/python2.0/imaplib.pys   _Authenticator[s
   	i   s   Jani   s   Febi   s   Mari   s   Apri   s   Mayi   s   Juni   s   Juli   s   Augi	   s   Sepi
   s   Octi   s   Novi   s   Decc 	 	  sl  Š‘e  i |  ƒ } ’| o “e Sn •e | i d ƒ } –| i d ƒ } ˜x= d d d d d d d	 f d
 ˜r } ™d | | f d Uqw We
 d e d } ž| d j o Ÿ| } n ¡e | e e e e d d d f	 } £e i | ƒ } ¨e i | ƒ } ©e i o	 | d o ª| e i } n ¬| e i } ®e i | | ƒ Sd S(   sG   Convert IMAP4 INTERNALDATE to UT.

	Returns Python time module tuple.
	s   mons   zonens   days   years   hours   mins   secs   zonehs   zonemi    s    %s = string.atoi(mo.group('%s'))Ni<   s   -i   (   s   InternalDates   matchs   resps   mos   Nones   Mon2nums   groups   mons   zonens   names   zonehs   zonems   zones   years   days   hours   mins   secs   tts   times   mktimes   utcs	   localtimes   lts   daylights   altzones   timezone(	   s   resps   mos   mons   zonens   names   zones   tts   utcs   lts$   /mit/python/lib/python2.0/imaplib.pys   Internaldate2tupleŠs&   ! 	'c    ss   ²´¶d } d } ·t t |  ƒ ƒ }  ¸x8 ¸|  o- ¹t |  d ƒ \ }  } º| | | } q0 W»| Sd S(   s-   Convert integer to A-P string representation.s    s   ABCDEFGHIJKLMNOPi   N(   s   vals   APs   ints   abss   nums   divmods   mod(   s   nums   vals   APs   mods$   /mit/python/lib/python2.0/imaplib.pys   Int2AP²s    
c    sQ   ¿ÁÃt  i |  ƒ } Ä| o Åf  Sn Çt t i | i d ƒ ƒ ƒ Sd S(   s-   Convert IMAP4 flags response to python tuple.s   flagsN(   s   Flagss   matchs   resps   mos   tuples   strings   splits   group(   s   resps   mos$   /mit/python/lib/python2.0/imaplib.pys
   ParseFlags¿s
   c    s>  ÊÏÑt  |  ƒ } Ò| t  d ƒ j p | t  d ƒ j o Ót i |  ƒ } nN Ô| t  f  ƒ j o Õ|  } n+ Ö| t  d ƒ j o ×|  Sn
 Øt ‚ Út i d | ƒ } Û| d d j o Üd | d } n Ýt i	 o	 | d o Þt i
 } n àt i } ád | d	 t | d
 d
 ƒ d Sd S(   ss   Convert 'date_time' to IMAP4 INTERNALDATE representation.

	Return string in form: '"DD-Mmm-YYYY HH:MM:SS +HHMM"'
	i   f1.1s    s   %d-%b-%Y %H:%M:%Si    s   0s    s   "s
    %+02d%02di<   N(   s   types	   date_times   dttypes   times	   localtimes   tts
   ValueErrors   strftimes   dts   daylights   altzones   zones   timezones   divmod(   s	   date_times   dttypes   tts   dts   zones$   /mit/python/lib/python2.0/imaplib.pys   Time2InternaldateÊs    )	c    s€   çè| t j o ét i ƒ  } n êt i d t i | ƒ ƒ } ët i i d | | d d |  f ƒ ìt i i
 ƒ  d  S(   Ns   %M:%Ss     %s.%02d %s
id   (   s   secss   Nones   times   strftimes	   localtimes   tms   syss   stderrs   writes   ss   flush(   s   ss   secss   tms$   /mit/python/lib/python2.0/imaplib.pys   _mesgçs
   (c    sy   îð|  i ƒ  } ñ| o ñd  Sn òd } ót i } ôt | d „ | ƒ } õt d | | | | ƒ f ƒ d  S(   Ns   
		c    s8   ôd |  d |  d d o | |  d d ƒ p d f S(   Ns   %s: "%s"i    i   s   " "s    (   s   xs   j(   s   xs   js$   /mit/python/lib/python2.0/imaplib.pys   <lambda>ôs    s   untagged responses dump:%s%s(	   s   dicts   itemss   ls   ts   strings   joins   js   maps   _mesg(   s   dicts   ls   ts   js$   /mit/python/lib/python2.0/imaplib.pys   _dump_urîs    	c    sG   úüt  t ƒ t j o ýt d =n þt i t i ƒ  |  f ƒ d  S(   Ni    (   s   lens   _cmd_logs   _cmd_log_lens   appends   times   line(   s   lines$   /mit/python/lib/python2.0/imaplib.pys   _logús   c     sM    t  d t t ƒ ƒ x) t d r \ }  } t  | |  ƒ q& Wd  S(   Ns   last %d IMAP4 interactions:i    (   s   _mesgs   lens   _cmd_logs   secss   line(   s   secss   lines$   /mit/python/lib/python2.0/imaplib.pys	   print_log s    s   __main__s   d:s   -ds    s   IMAP password for %s on %ss	   localhosts0   From: %s@localhost
Subject: IMAP4 test

data...
s   logins   creates
   /tmp/xxx 1s   renames   /tmp/yyys
   /tmp/yyz 2s   appends   lists   /tmps   yy*s   selects   searchs   SUBJECTs   tests   partials   1s   RFC822i   s   stores   FLAGSs
   (\Deleted)s   expunges   recents   closes   responses   UIDVALIDITYs   uids   ALLs   EXISTSs   logoutc    sa   67t  d |  | f ƒ 8t t d |  ƒ | ƒ \ } } 9t  d |  | | f ƒ :| Sd  S(   Ns   %s %ss   M.%ss   %s => %s %s(   s   _mesgs   cmds   argss   applys   evals   typs   dat(   s   cmds   argss   typs   dats$   /mit/python/lib/python2.0/imaplib.pys   run6s   "s   PROTOCOL_VERSION = %ss   /tmp/s   yy%s   .*"([^"]+)"$s   deletes   %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
(B   s   __doc__s   __version__s   binasciis   res   sockets   strings   times   randoms   syss   CRLFs   Debugs
   IMAP4_PORTs   AllowedVersionss   Commandss   compiles   Continuations   Flagss   InternalDates   Literals   Response_codes   Untagged_responses   Untagged_statuss   IMAP4s   _Authenticators   Mon2nums   Internaldate2tuples   Int2APs
   ParseFlagss   Time2Internaldates	   __debug__s   Nones   _mesgs   _dump_urs   _cmd_logs   _cmd_log_lens   _logs	   print_logs   __name__s   getopts   getpasss   argvs   optlists   argss   errors   vals   opts   ints   hosts   getusers   USERs   PASSWDs	   test_mesgs	   test_seq1s	   test_seq2s   runs   Ms   PROTOCOL_VERSIONs   cmds   mls   matchs   mos   groups   paths   splits   dats   uid(    s$   /mit/python/lib/python2.0/imaplib.pys   ? sž   	B			ÿr ÿ ÿ ÿ ,u(
			&  #Ã`
  	
  "
 
&