选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
ó zfc@sdZdZddlZddlZddlZddlZddlZddlZddlZddl Z dddddd gZ d Z d Z d Z d ZddfZdZi'ddfd6dfd6ddddfd6dfd6dfd6dfd6ddfd6ddfd6ddfd6ddfd6dfd6dfd6ddfd 6ddfd!6ddfd"6ddfd#6ddfd$6ddfd%6dfd&6ddddfd6ddfd'6dfd(6ddfd)6ddddfd*6dfd+6dfd,6ddfd-6dfd.6ddfd/6ddfd06ddfd16ddfd26dfd36ddfd46dfd56ddfd66dfd76dfd86ddfd96Zejd:ƒZejd;ƒZejd<ƒZejd=ƒZejd>ƒZejd?ƒZejd@ƒZejdAƒZdfdB„ƒYZyddlZWnek rBn$XdCefdD„ƒYZe jdCƒdefdE„ƒYZ dFfdG„ƒYZ!i dHdI6dJdK6dLdM6dNdO6dPdQ6dRdS6dTdU6dVdW6dXdY6dZd[6d\d]6d^d_6Z"d`„Z#da„Z$db„Z%dc„Z&e'ddkrddl(Z(ddl)Z)y#e(j(ej*dHdeƒ\Z+Z,Wn(e(j-k r~Z.fff\Z+Z,nXe/Z0xWe+D]O\Z1Z.e1dfkr³e2e.ƒZ n(e1dgkrÛe.Z0e, rØe0fZ,nnqŒWe, ròdhfZ,ne,d Z3e)j4ƒZ5e)j)die5e3pdjfƒZ6dkie5dl6dmdn6Z7doe5e6ffdpdqffdrdqdsffddtffdudte/e/e7ffdvdwdxffdydtffdze/d{d|ffd}d~dffd€d~d�d‚ffdƒffd„ffd…ffd†fffZ8dyffd‡dˆffd‰d.dŠffd‡d‹ffdue/e/e/e7ffd…ffdŒfffZ9d�„Z:y„e0r€e e0ƒZ;n ee3ƒZ;e;j<dkr¨e8dHZ8ne;j=dŽe;j>ƒe;j=d�e;j?fƒx!e8D]\Z@Z,e:e@e,ƒqÚWxge:dvd�d‘fƒD]PZAejBd’eAƒZCeCr=eCjDdHƒZEneAjFƒdZEe:d“eEfƒq Wx‚e9D]z\Z@Z,e:e@e,ƒZGe@e,fd‰d.dŠffkr§qhneGdjFƒZHeH rÄqhne:d‰dd”eHdd•fƒqhWd–GHWn)d—GHe rd˜ej*d GHn‚nXndS(™söIMAP4 client. Based on RFC 2060. Public class: IMAP4 Public variable: Debug Public functions: Internaldate2tuple Int2AP ParseFlags Time2Internaldate s2.58iÿÿÿÿNtIMAP4t IMAP4_streamtInternaldate2tupletInt2APt ParseFlagstTime2Internaldates ii�iát IMAP4REV1i@BtAUTHtSELECTEDtAPPENDtNONAUTHt AUTHENTICATEtLOGOUTt CAPABILITYtCHECKtCLOSEtCOPYtCREATEtDELETEt DELETEACLtEXAMINEtEXPUNGEtFETCHtGETACLt GETANNOTATIONtGETQUOTAt GETQUOTAROOTtMYRIGHTStLISTtLOGINtLSUBtMOVEt 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.*))?cBs´eZdZdefd„ƒYZdefd„ƒYZdefd„ƒYZejdƒZ de d „Z d „Z de d „Z d „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!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/d0„Z0d1e1d2„Z2d3„Z3d4„Z4d5„Z5d6„Z6d7„Z7d8„Z8d9„Z9d:„Z:d;„Z;d<„Z<d=„Z=d>„Z>d?„Z?d@„Z@dA„ZAdB„ZBdC„ZCdD„ZDdE„ZEdF„ZFdG„ZGdH„ZHdI„ZIdJ„ZJRS(Ksë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. 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/lib64/python2.7/imaplib.pyR1œstabortcBseZRS((R2R3(((s/usr/lib64/python2.7/imaplib.pyR4�streadonlycBseZRS((R2R3(((s/usr/lib64/python2.7/imaplib.pyR5žss[^\w!#$%&'*+,.:;<=>?^`|~-]tcCs|t|_d|_d|_i|_i|_d|_t|_ d|_ |j ||ƒt t jddƒƒ|_tjd|jdƒ|_|jƒ|_d|jkrºd |_n-d |jkrÕd |_n|j|jƒ‚|jƒ\}}|dgkr|jd ƒ‚nt|d jƒjƒƒ|_x-tD]%}||jkr[q@n||_dSW|jdƒ‚dS(NR R6iiiÿÿs(?Ps"\d+) (?P[A-Z]+) (?P.*)tPREAUTHRtOKR s"no CAPABILITY response from serveriÿÿÿÿsserver not IMAP4 compliant(tDebugtdebugtstatetNonetliteralttagged_commandstuntagged_responsestcontinuation_responsetFalset is_readonlyttagnumtopenRtrandomtrandintttagpretretcompilettagret _get_responsetwelcomeR1t capabilityttupletuppertsplitt capabilitiestAllowedVersionstPROTOCOL_VERSION(tselfthosttportttyptdattversion((s/usr/lib64/python2.7/imaplib.pyt__init__¢s8             cCs3|tkrt||jƒƒStd|ƒ‚dS(NsUnknown IMAP4 command: '%s'(tCommandstgetattrtlowertAttributeError(RTtattr((s/usr/lib64/python2.7/imaplib.pyt __getattr__Ýs cCsC||_||_tj||fƒ|_|jjdƒ|_dS(sÑSetup 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(RURVtsockettcreate_connectiontsocktmakefiletfile(RTRURV((s/usr/lib64/python2.7/imaplib.pyRDès  cCs|jj|ƒS(sRead 'size' bytes from remote.(Rftread(RTtsize((s/usr/lib64/python2.7/imaplib.pyRgôscCsB|jjtdƒ}t|ƒtkr>|jdtƒ‚n|S(sRead line from remote.isgot more than %d bytes(Rftreadlinet_MAXLINEtlenR1(RTtline((s/usr/lib64/python2.7/imaplib.pyRiùscCs|jj|ƒdS(sSend data to remote.N(Rdtsendall(RTtdata((s/usr/lib64/python2.7/imaplib.pytsendscCst|jjƒzRy|jjtjƒWn4tjk r]}|jtjdfkr^‚q^nXWd|jjƒXdS(s Close I/O established in "open".i&'N( RftcloseRdtshutdownRbt SHUT_RDWRR1terrnotENOTCONN(RTte((s/usr/lib64/python2.7/imaplib.pyRqs cCs|jS(sfReturn socket instance used to connect to IMAP4 server. socket = .socket() (Rd(RT((s/usr/lib64/python2.7/imaplib.pyRbscCs]d}|jddg|ƒ\}}|dr8||fS|jƒ\}}|j|||ƒ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. tRECENTR8iÿÿÿÿN(t_untagged_responseR<tnoop(RTtnameRWRX((s/usr/lib64/python2.7/imaplib.pytrecent!s   cCs|j|dg|jƒƒS(s¥Return data for response 'code' if received, or None. Old value for response 'code' is cleared. (code, [data]) = .response(code) N(RwR<RO(RTtcode((s/usr/lib64/python2.7/imaplib.pytresponse2scCs‘d}|sd}n|rE|d|dfdkrKd|}qKnd }|r`t|ƒ}nd }tjt|ƒ|_|j||||ƒS( s°Append message to named mailbox. (typ, [data]) = .append(mailbox, flags, date_time, message) All args except `message' can be None. R tINBOXiiÿÿÿÿt(t)s(%s)(R~RN(R<RtMapCRLFtsubtCRLFR=t_simple_command(RTtmailboxtflagst date_timetmessageRy((s/usr/lib64/python2.7/imaplib.pytappend@s cCsk|jƒ}t|ƒj|_|jd|ƒ\}}|dkrX|j|dƒ‚nd|_||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 R8iÿÿÿÿR(ROt_AuthenticatortprocessR=RƒR1R;(RTt mechanismt authobjecttmechRWRX((s/usr/lib64/python2.7/imaplib.pyt authenticateWs   cCs.d}|j|ƒ\}}|j|||ƒS(sT(typ, [data]) = .capability() Fetch capabilities list from server.R (RƒRw(RTRyRWRX((s/usr/lib64/python2.7/imaplib.pyRMtscCs |jdƒS(sRCheckpoint mailbox on server. (typ, [data]) = .check() R(Rƒ(RT((s/usr/lib64/python2.7/imaplib.pytcheck}scCs0z|jdƒ\}}Wdd|_X||fS(sÌClose currently selected mailbox. Deleted messages are removed from writable mailbox. This is the recommended command before 'LOGOUT'. (typ, [data]) = .close() RNR(RƒR;(RTRWRX((s/usr/lib64/python2.7/imaplib.pyRp…s cCs|jd||ƒS(s‚Copy 'message_set' messages onto end of 'new_mailbox'. (typ, [data]) = .copy(message_set, new_mailbox) R(Rƒ(RTt message_sett new_mailbox((s/usr/lib64/python2.7/imaplib.pytcopy”scCs|jd|ƒS(sPCreate new mailbox. (typ, [data]) = .create(mailbox) R(Rƒ(RTR„((s/usr/lib64/python2.7/imaplib.pytcreateœscCs|jd|ƒS(sPDelete old mailbox. (typ, [data]) = .delete(mailbox) R(Rƒ(RTR„((s/usr/lib64/python2.7/imaplib.pytdelete¤scCs|jd||ƒS(s€Delete the ACLs (remove any rights) set for who on mailbox. (typ, [data]) = .deleteacl(mailbox, who) R(Rƒ(RTR„twho((s/usr/lib64/python2.7/imaplib.pyt deleteacl«scCs.d}|j|ƒ\}}|j|||ƒS(s÷Permanently 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(RƒRw(RTRyRWRX((s/usr/lib64/python2.7/imaplib.pytexpunge²s cCs4d}|j|||ƒ\}}|j|||ƒ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(RƒRw(RTR�t message_partsRyRWRX((s/usr/lib64/python2.7/imaplib.pytfetchÀs cCs+|jd|ƒ\}}|j||dƒS(sXGet the ACLs for a mailbox. (typ, [data]) = .getacl(mailbox) RtACL(RƒRw(RTR„RWRX((s/usr/lib64/python2.7/imaplib.pytgetaclÏscCs1|jd|||ƒ\}}|j||dƒS(sa(typ, [data]) = .getannotation(mailbox, entry, attribute) Retrieve ANNOTATIONs.Rt ANNOTATION(RƒRw(RTR„tentryt attributeRWRX((s/usr/lib64/python2.7/imaplib.pyt getannotationØscCs+|jd|ƒ\}}|j||dƒS(sªGet the quota root's resource usage and limits. Part of the IMAP4 QUOTA extension defined in rfc2087. (typ, [data]) = .getquota(root) RtQUOTA(RƒRw(RTtrootRWRX((s/usr/lib64/python2.7/imaplib.pytgetquotaàscCs^|jd|ƒ\}}|j||dƒ\}}|j||dƒ\}}|||gfS(sœGet the list of quota roots for the named mailbox. (typ, [[QUOTAROOT responses...], [QUOTA responses]]) = .getquotaroot(mailbox) RR t QUOTAROOT(RƒRw(RTR„RWRXtquotat quotaroot((s/usr/lib64/python2.7/imaplib.pyt getquotarootëss""t*cCs4d}|j|||ƒ\}}|j|||ƒS(s«List mailbox names in directory matching pattern. (typ, [data]) = .list(directory='""', pattern='*') 'data' is list of LIST responses. R(RƒRw(RTt directorytpatternRyRWRX((s/usr/lib64/python2.7/imaplib.pytlistöscCsY|jd||j|ƒƒ\}}|dkrF|j|dƒ‚nd|_||fS(s”Identify client using plaintext password. (typ, [data]) = .login(user, password) NB: 'password' will be quoted. RR8iÿÿÿÿR(Rƒt_quoteR1R;(RTtusertpasswordRWRX((s/usr/lib64/python2.7/imaplib.pytlogins $  cCs&|||_|_|jd|jƒS(sr Force use of CRAM-MD5 authentication. (typ, [data]) = .login_cram_md5(user, password) sCRAM-MD5(R¬R­RŽt_CRAM_MD5_AUTH(RTR¬R­((s/usr/lib64/python2.7/imaplib.pytlogin_cram_md5scCs0ddl}|jd|j|j|ƒjƒS(s1 Authobject to use with CRAM-MD5 authentication. iÿÿÿÿNt (thmacR¬tHMACR­t hexdigest(RTt challengeR²((s/usr/lib64/python2.7/imaplib.pyR¯s cCs~d|_y|jdƒ\}}Wn%ddtjƒd g}}nX|jƒd|jkrtd|jdfS||fS(s|Shutdown connection to server. (typ, [data]) = .logout() Returns server 'BYE' response. R tNOs%s: %sitBYE(R;Rƒtsystexc_infoRqR?(RTRWRX((s/usr/lib64/python2.7/imaplib.pytlogouts " cCs4d}|j|||ƒ\}}|j|||ƒS(sÐList 'subscribed' mailbox names in directory matching pattern. (typ, [data, ...]) = .lsub(directory='""', pattern='*') 'data' are tuples of message part envelope and data. R(RƒRw(RTR¨R©RyRWRX((s/usr/lib64/python2.7/imaplib.pytlsub/scCs+|jd|ƒ\}}|j||dƒS(sƒShow my ACLs for a mailbox (i.e. the rights that I have on mailbox). (typ, [data]) = .myrights(mailbox) R(RƒRw(RTR„RWRX((s/usr/lib64/python2.7/imaplib.pytmyrights:scCs.d}|j|ƒ\}}|j|||ƒS(sb Returns IMAP namespaces ala rfc2342 (typ, [data, ...]) = .namespace() R (RƒRw(RTRyRWRX((s/usr/lib64/python2.7/imaplib.pyt namespaceBscCs |jdƒS(sFSend NOOP command. (typ, [data]) = .noop() R!(Rƒ(RT((s/usr/lib64/python2.7/imaplib.pyRxLscCs:d}|j|||||ƒ\}}|j||dƒS(sÂFetch 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(RƒRw(RTt message_numt message_parttstarttlengthRyRWRX((s/usr/lib64/python2.7/imaplib.pytpartialWs!cCsd}|jd|ƒS(s³Assume authentication as "user". Allows an authorised administrator to proxy into any user's mailbox. (typ, [data]) = .proxyauth(user) R#(Rƒ(RTR¬Ry((s/usr/lib64/python2.7/imaplib.pyt proxyauthcs cCs|jd||ƒS(skRename old mailbox name to new. (typ, [data]) = .rename(oldmailbox, newmailbox) R$(Rƒ(RTt oldmailboxt newmailbox((s/usr/lib64/python2.7/imaplib.pytrenamepscGsXd}|r-|j|d||Œ\}}n|j||Œ\}}|j|||ƒS(s·Search mailbox for matching messages. (typ, [data]) = .search(charset, criterion, ...) 'data' is space separated list of matching message numbers. R%tCHARSET(RƒRw(RTtcharsettcriteriaRyRWRX((s/usr/lib64/python2.7/imaplib.pytsearchxs !R}cCs¯i|_||_|r!d}nd}|j||ƒ\}}|dkr^d|_||fSd|_d|jkr“| r“|jd|ƒ‚n||jjdd gƒfS( 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&R8RRs READ-ONLYs%s is not writabletEXISTSN(R?RBRƒR;R5tgetR<(RTR„R5RyRWRX((s/usr/lib64/python2.7/imaplib.pytselect‡s       cCs|jd|||ƒS(sZSet a mailbox acl. (typ, [data]) = .setacl(mailbox, who, what) R'(Rƒ(RTR„R•twhat((s/usr/lib64/python2.7/imaplib.pytsetacl§scGs+|jd|Œ\}}|j||dƒS(s_(typ, [data]) = .setannotation(mailbox[, entry, attribute]+) Set ANNOTATIONs.R(Rœ(RƒRw(RTtargsRWRX((s/usr/lib64/python2.7/imaplib.pyt setannotation¯scCs.|jd||ƒ\}}|j||dƒS(siSet the quota root's resource limits. (typ, [data]) = .setquota(root, limits) R)R (RƒRw(RTR¡tlimitsRWRX((s/usr/lib64/python2.7/imaplib.pytsetquota·scGs^d}|d|dfdkr-d|}n|j||||Œ\}}|j|||ƒS(s�IMAP4rev1 extension SORT command. (typ, [data]) = .sort(sort_criteria, charset, search_criteria, ...) R*iiÿÿÿÿR~Rs(%s)(R~R(RƒRw(RTt sort_criteriaRÈtsearch_criteriaRyRWRX((s/usr/lib64/python2.7/imaplib.pytsortÀs  cCs4d}|j|||ƒ\}}|j|||ƒS(spRequest named status conditions for mailbox. (typ, [data]) = .status(mailbox, names) R+(RƒRw(RTR„tnamesRyRWRX((s/usr/lib64/python2.7/imaplib.pytstatusÎscCsX|d|dfdkr'd|}n|jd|||ƒ\}}|j||dƒS( s�Alters flag dispositions for messages in mailbox. (typ, [data]) = .store(message_set, command, flags) iiÿÿÿÿR~Rs(%s)R,R(R~R(RƒRw(RTR�tcommandR…RWRX((s/usr/lib64/python2.7/imaplib.pytstoreÚs cCs|jd|ƒS(sYSubscribe to new mailbox. (typ, [data]) = .subscribe(mailbox) R-(Rƒ(RTR„((s/usr/lib64/python2.7/imaplib.pyt subscribeåscGs7d}|j||||Œ\}}|j|||ƒS(s‹IMAPrev1 extension THREAD command. (type, [data]) = .thread(threading_algorithm, charset, search_criteria, ...) R.(RƒRw(RTtthreading_algorithmRÈRÕRyRWRX((s/usr/lib64/python2.7/imaplib.pytthreadíscGs¿|jƒ}|tkr.|jd|ƒ‚n|jt|krp|jd||jdjt|ƒfƒ‚nd}|j|||Œ\}}|d kr¦|}nd}|j|||ƒS( såExecute "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(R%R*R.(ROR[R1R;tjoinRƒRw(RTRÙRÐRyRWRX((s/usr/lib64/python2.7/imaplib.pytuid÷s      cCs|jd|ƒS(s_Unsubscribe from old mailbox. (typ, [data]) = .unsubscribe(mailbox) R0(Rƒ(RTR„((s/usr/lib64/python2.7/imaplib.pyt unsubscribescGs;|jƒ}|tkr+|jft|.xatom(name, arg, ...) Returns response appropriate to extension command `name'. (ROR[R;Rƒ(RTRyRÐ((s/usr/lib64/python2.7/imaplib.pytxatoms  cCsO|dkrd}n|j}||kr>||j|ƒn |g||R@( RTRyRÐRWttagRntargR=t literatortval((s/usr/lib64/python2.7/imaplib.pyRêBsX               cCsà|dkr|jƒny|j|ƒ\}}Wn]|jk rc}|jd||fƒ‚n/|jk r‘}|jd||fƒ‚nX|dkr«|jƒn|dkrÖ|jd|||fƒ‚n||fS(NR scommand: %s => %sRæs%s command error: %s %s(Råt_get_tagged_responseR4R1(RTRyRìRWRnRï((s/usr/lib64/python2.7/imaplib.pyt_command_completeŒs     cCs6|jƒ}|j|j|ƒr•|jjdƒ}||jkrX|jd|ƒ‚n|jjdƒ}|jjdƒ}||gf|j|R4R<tUntagged_responsetUntagged_statust ContinuationR@tLiteraltintRgRãt Response_code(RTtrespRìRWRXtdat2RhRn((s/usr/lib64/python2.7/imaplib.pyRK�s@  +cCsfx_|j|}|dk r*|j|=|S|jƒy|jƒWq|jk r]}‚qXqWdS(N(R>R<RåRKR4(RTRìtresultRï((s/usr/lib64/python2.7/imaplib.pyRðés    cCsS|jƒ}|s$|jdƒ‚n|jdƒsE|jdƒ‚n|d }|S(Nssocket error: EOFs ssocket error: unterminated lineiþÿÿÿ(RiR4tendswith(RTRl((s/usr/lib64/python2.7/imaplib.pyRós  cCs|j|ƒ|_|jdk S(N(tmatchRõR<(RTtcrets((s/usr/lib64/python2.7/imaplib.pyRôscCs7d|j|jf}|jd|_d|j|<|S(Ns%s%si(RGRCR<R>(RTRì((s/usr/lib64/python2.7/imaplib.pyRç#s cCs�t|ƒtdƒk r|St|ƒdkrR|d|dfdd fkrR|S|rt|jj|ƒdkrt|S|j|ƒS( NR6iiiÿÿÿÿR~Rt"(R~R(RR(RéRkt mustquoteRÊR<R«(RTRí((s/usr/lib64/python2.7/imaplib.pyRè+s2cCs,|jddƒ}|jddƒ}d|S(Ns\s\\Rs\"s"%s"(treplace(RTRí((s/usr/lib64/python2.7/imaplib.pyR«9scGs|j||j||ŒƒS(N(RñRê(RTRyRÐ((s/usr/lib64/python2.7/imaplib.pyRƒAscCsN|dkr||fS||jkr2|dgfS|jj|ƒ}||fS(NR¶(R?R<tpop(RTRWRXRyRn((s/usr/lib64/python2.7/imaplib.pyRwFs    (KR2R3t__doc__t ExceptionR1R4R5RHRIRt IMAP4_PORTRZR`RDRgRiRoRqRbRzR|RˆRŽRMR�RpR’R“R”R–R—R™R›RŸR¢R¦RªR®R°R¯RºR»R¼R½RxRÂRÃRÆRÊRARÍRÏRÑRÓRÖRØRÚRÛRÝRßRàRáRãRåRêRñRKRðRóRôRçRèR«RƒRw(((s/usr/lib64/python2.7/imaplib.pyRnsŠ,;                                   J  L       t IMAP4_SSLcBsVeZdZdeddd„Zded„Zd„Zd„Zd„Z d„Z RS( s÷IMAP4 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. R6cCs)||_||_tj|||ƒdS(N(tkeyfiletcertfileRRZ(RTRURVR R ((s/usr/lib64/python2.7/imaplib.pyRZŽs  cCsd||_||_tj||fƒ|_tj|j|j|jƒ|_ |j j dƒ|_ dS(sæSetup 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. RaN( RURVRbRcRdtsslt wrap_socketR R tsslobjReRf(RTRURV((s/usr/lib64/python2.7/imaplib.pyRD”s   !cCsYt|ƒ}xF|dkrT|jj|ƒ}||kr=Pn||}||}qWdS(sSend data to remote.iN(RkRtwrite(RTRntbytestsent((s/usr/lib64/python2.7/imaplib.pyRo¡s   cCs|jjƒ|jjƒdS(s Close I/O established in "open".N(RfRpRd(RT((s/usr/lib64/python2.7/imaplib.pyRq¬s cCs|jS(snReturn socket instance used to connect to IMAP4 server. socket = .socket() (Rd(RT((s/usr/lib64/python2.7/imaplib.pyRb²scCs|jS(s‡Return SSLObject instance used to communicate with the IMAP4 server. ssl = ssl.wrap_socket(.socket) (R(RT((s/usr/lib64/python2.7/imaplib.pyRºsN( R2R3RtIMAP4_SSL_PORTR<RZRDRoRqRbR(((s/usr/lib64/python2.7/imaplib.pyR s   cBsJeZdZd„Zddd„Zd„Zd„Zd„Zd„Z RS(síIMAP4 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||_tj|ƒdS(N(RÙRRZ(RTRÙ((s/usr/lib64/python2.7/imaplib.pyRZÐs c Csyd|_d|_d|_d|_tj|jdtjdtjdt dt ƒ|_ |j j |_ |j j |_dS(s…Setup a stream connection. This connection will be used by the routines: read, readline, send, shutdown. tstdintstdouttshellt close_fdsN(R<RURVRdRft subprocesstPopenRÙtPIPEtTrueRŠRt writefileRtreadfile(RTRURV((s/usr/lib64/python2.7/imaplib.pyRDÕs    cCs|jj|ƒS(sRead 'size' bytes from remote.(RRg(RTRh((s/usr/lib64/python2.7/imaplib.pyRgåscCs |jjƒS(sRead line from remote.(RRi(RT((s/usr/lib64/python2.7/imaplib.pyRiêscCs!|jj|ƒ|jjƒdS(sSend data to remote.N(RRtflush(RTRn((s/usr/lib64/python2.7/imaplib.pyRoïscCs+|jjƒ|jjƒ|jjƒdS(s Close I/O established in "open".N(RRpRRŠtwait(RT((s/usr/lib64/python2.7/imaplib.pyRqõs  N( R2R3RRZR<RDRgRiRoRq(((s/usr/lib64/python2.7/imaplib.pyRÄs     R‰cBs2eZdZd„Zd„Zd„Zd„ZRS(scPrivate class to provide en/decoding for base64-based authentication conversation. cCs ||_dS(N(R�(RTtmechinst((s/usr/lib64/python2.7/imaplib.pyRZscCs5|j|j|ƒƒ}|dkr(dS|j|ƒS(NR§(R�tdecodeR<tencode(RTRntret((s/usr/lib64/python2.7/imaplib.pyRŠs cCsrd}xe|rmt|ƒdkr8|d }|d}n |}d}tj|ƒ}|r ||d }q q W|S(NR6i0iÿÿÿÿ(Rktbinasciit b2a_base64(RTtinptoupttRu((s/usr/lib64/python2.7/imaplib.pyR# s    cCs|s dStj|ƒS(NR6(R%t a2b_base64(RTR'((s/usr/lib64/python2.7/imaplib.pyR""s(R2R3RRZRŠR#R"(((s/usr/lib64/python2.7/imaplib.pyR‰ýs    itJanitFebitMaritApritMayitJunitJulitAugi tSepi tOcti tNovi tDecc Csvtj|ƒ}|sd St|jdƒ}|jdƒ}t|jdƒƒ}t|jdƒƒ}t|jdƒƒ}t|jdƒƒ}t|jdƒƒ}t|jdƒƒ} t|jd ƒƒ} | d | d } |d krö| } n||||||d d d f } tj| ƒ} tj| ƒ}tj rX|d rX| tj } n | tj } tj| | ƒS(s«Parse an IMAP4 INTERNALDATE string. Return corresponding local time. The return value is a time.struct_time instance or None if the string has wrong format. tmontzonentdaytyearthourtmintsectzonehtzonemi<t-iÿÿÿÿN( t InternalDateRR<tMon2numRöRûttimetmktimet localtimetdaylighttaltzonettimezone(RýRõR7R8R9R:R;R<R=R>R?tzonettttutctlt((s/usr/lib64/python2.7/imaplib.pyR,s,  ! cCsRd}d}tt|ƒƒ}x-|rMt|dƒ\}}|||}q!W|S(s-Convert integer to A-P string representation.R6tABCDEFGHIJKLMNOPi(Rûtabstdivmod(tnumRïtAPtmod((s/usr/lib64/python2.7/imaplib.pyRYs cCs2tj|ƒ}|sdSt|jdƒjƒƒS(s-Convert IMAP4 flags response to python tuple.R…((tFlagsRRNRöRP(RýRõ((s/usr/lib64/python2.7/imaplib.pyRfscCst|tttfƒr*tj|ƒ}nZt|ttjfƒrK|}n9t|tƒrx|d|dfd krx|St dƒ‚tj d|ƒ}|ddkr·d|d}ntj r×|dr×tj }n tj }d|d t|d d ƒdS( s¨Convert date_time to IMAP4 INTERNALDATE representation. Return string in form: '"DD-Mmm-YYYY HH:MM:SS +HHMM"'. The date_time argument can be a number (int or float) representing seconds since epoch (as returned by time.time()), a 9-tuple representing local time (as returned by time.localtime()), or a double-quoted string. In the last case, it is assumed to already be in the correct format. iiÿÿÿÿRsdate_time not of a known types%d-%b-%Y %H:%M:%St0R±is %+03d%02di<(RR(t isinstanceRûtlongtfloatRCRERNt struct_timetstrt ValueErrortstrftimeRFRGRHRO(R†RJtdtRI((s/usr/lib64/python2.7/imaplib.pyRqs  )   t__main__sd:s:s-ds-sR6sIMAP password for %s on %s: t localhostsJFrom: %(user)s@localhost%(lf)sSubject: IMAP4 test%(lf)s%(lf)sdata...%(lf)sR¬s tlfR®R“s /tmp/xxx 1RÆs/tmp/yyys /tmp/yyz 2RˆRªs/tmpsyy*RÍRÊtSUBJECTttestR™t1s(FLAGS INTERNALDATE RFC822)RÚtFLAGSs (\Deleted)R½R—RzRpR|t UIDVALIDITYRßtALLRËRºcCsitjd||fƒtt|ƒ|Œ\}}tjd|||fƒ|dkre|d‚n|S(Ns%s %ss %s => %s %sR¶i(tMt_mesgR\(tcmdRÐRWRX((s/usr/lib64/python2.7/imaplib.pytrunÉs  sPROTOCOL_VERSION = %ssCAPABILITIES = %rs/tmp/syy%s .*"([^"]+)"$R”s%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 (IRt __version__R%RsRERHRbRR¸RCt__all__R‚R9R RRRRjR[RIRùRSRARúR€RüR÷RøRRt ImportErrorR RˆRR‰RBRRRRR2tgetopttgetpasstargvtoptlistRÐR1RïR<tstream_commandtoptRûRUtgetusertUSERtPASSWDt test_mesgt test_seq1t test_seq2RiRfR;RgRSRQRhtmlRRõRötpathRPRXRß(((s/usr/lib64/python2.7/imaplib.pyt s, `                                     ÿÿÿÿ B 9,-- - #