403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/11490/root/usr/lib/python2.6/email/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/11490/root/usr/lib/python2.6/email/utils.pyo
Ñò
ÉÉŽJc@sdZddddddddd	d
ddgZd
dkZd
dkZd
dkZd
dkZd
dkZd
dkZd
dkZd
dk	Z	d
dk
lZd
dk
lZ
d
dk
lZd
dk
lZd
dk
lZd
dklZd
dklZlZdZdZdZdZdZeidƒZeidƒZ d„Z!d„Z"d„Z#d „Z$d!„Z%eid"ei&ei'BƒZ(de*e*d#„Z+dd$„Z,d%„Zd&„Zd'„Z-d(„Z.d)„Z/ddd*„Z0eid+ƒZ1d,„Z2d-d.d/„Z3dS(0sMiscellaneous utilities.tcollapse_rfc2231_valuet
decode_paramstdecode_rfc2231tencode_rfc2231t
formataddrt
formatdatetgetaddressest
make_msgidt	parseaddrt	parsedatetparsedate_tztunquoteiÿÿÿÿN(tquote(tAddressList(t	mktime_tz(R	(R
(tdecodestring(t_bencodet_qencodes, tus
t's[][\\()<>@,:;".]s	[][\\()"]cCs|S(N((ts((s!/usr/lib/python2.6/email/utils.pyt	_identity9scCsI|p|Sti|ƒ}|idƒo|idƒo	|d S|S(Ns
iÿÿÿÿ(tbase64Rtendswith(Rtvalue((s!/usr/lib/python2.6/email/utils.pyt_bdecode=s!	cCs.tidt|ƒ}tidt|ƒ}|S(s+Replace all line-ending characters with 
.s	(?<!\r)\ns\r(?!\n)(tretsubtCRLF(R((s!/usr/lib/python2.6/email/utils.pytfix_eolsIscCs^|\}}|oGd}ti|ƒo
d}ntid|ƒ}d||||fS|S(sThe inverse of parseaddr(), this takes a 2-tuple of the form
    (realname, email_address) and returns the string value suitable
    for an RFC 2822 From, To or Cc header.

    If the first element of pair is false, then the second element is
    returned unmodified.
    Rt"s\\\g<0>s%s%s%s <%s>(t
specialsretsearcht	escapesreR(tpairtnametaddresstquotes((s!/usr/lib/python2.6/email/utils.pyRSs
cCs"ti|ƒ}t|ƒ}|iS(s7Return a list of (REALNAME, EMAIL) for each fieldvalue.(t
COMMASPACEtjoint_AddressListtaddresslist(tfieldvaluestallta((s!/usr/lib/python2.6/email/utils.pyRfss_
  =\?                   # literal =?
  (?P<charset>[^?]*?)   # non-greedy up to the next ? is the charset
  \?                    # literal ?
  (?P<encoding>[qb])    # either a "q" or a "b", case insensitive
  \?                    # literal ?
  (?P<atom>.*?)         # non-greedy up to the next ?= is the atom
  \?=                   # literal ?=
  c	CsX|d$jotiƒ}n|oti|ƒ}tio|do
ti}n
ti}tt|ƒdƒ\}}|djo
d}nd}d|||df}n'ti|ƒ}|o
d}nd	}d
ddd
ddddg|d|dddddddddddddg|d d |d|d!|d"|d#|fS(%sƒReturns a date string as specified by RFC 2822, e.g.:

    Fri, 09 Nov 2001 01:08:47 -0000

    Optional timeval if given is a floating point time value as accepted by
    gmtime() and localtime(), otherwise the current time is used.

    Optional localtime is a flag that when True, interprets timeval, and
    returns a date relative to the local timezone instead of UTC, properly
    taking daylight savings time into account.

    Optional argument usegmt means that the timezone is written out as
    an ascii string, not numeric one (so "GMT" instead of "+0000"). This
    is needed for HTTP, and is only used when localtime==False.
    iÿÿÿÿiit-t+s
%s%02d%02di<tGMTs-0000s"%s, %02d %s %04d %02d:%02d:%02d %stMontTuetWedtThutFritSattSuniitJantFebtMartAprtMaytJuntJultAugtSeptOcttNovtDeciiiiN(	tNonettimet	localtimetdaylighttaltzonettimezonetdivmodtabstgmtime(	ttimevalREtusegmttnowtoffsetthourstminutestsigntzone((s!/usr/lib/python2.6/email/utils.pyRzs.

	


 !cCsŒtiƒ}tidti|ƒƒ}tiƒ}tidƒ}|djo
d}nd|}ti	ƒ}d|||||f}|S(sèReturns a string suitable for RFC 2822 compliant Message-ID, e.g:

    <20020201195627.33539.96671@nightshade.la.mastaler.com>

    Optional idstring if given is a string used to strengthen the
    uniqueness of the message id.
    s%Y%m%d%H%M%Si †Rt.s<%s.%s.%s%s@%s>N(
RDtstrftimeRKtostgetpidtrandomt	randrangeRCtsockettgetfqdn(tidstringRLtutcdatetpidtrandinttidhosttmsgid((s!/usr/lib/python2.6/email/utils.pyR¯s


cCs|pdSt|ƒS(N(RCt
_parsedate(tdata((s!/usr/lib/python2.6/email/utils.pyR	ÈscCs|pdSt|ƒS(N(RCt
_parsedate_tz(Rc((s!/usr/lib/python2.6/email/utils.pyR
ÎscCs#t|ƒi}|pdS|dS(NRi(RR(R(R)(taddrtaddrs((s!/usr/lib/python2.6/email/utils.pyRÔscCs‹t|ƒdjot|idƒo4|idƒo$|dd!iddƒiddƒS|idƒo|idƒo|dd!Sn|S(	sRemove quotes from a string.iRiÿÿÿÿs\\s\s\"t<t>(tlent
startswithRtreplace(tstr((s!/usr/lib/python2.6/email/utils.pyRÜs $ cCs7|itdƒ}t|ƒdjodd|fS|S(s#Decode string according to RFC 2231iN(tsplittTICKRiRC(Rtparts((s!/usr/lib/python2.6/email/utils.pyRèscCshddk}|i|ddƒ}|djo|djo|S|djo
d}nd|||fS(sÜEncode string according to RFC 2231.

    If neither charset nor language is given, then s is returned as-is.  If
    charset is given but not language, the string is encoded using the empty
    string for language.
    iÿÿÿÿNtsafeRs%s'%s'%s(turllibRRC(RtcharsettlanguageRq((s!/usr/lib/python2.6/email/utils.pyRðs

s&^(?P<name>\w+)\*((?P<num>[0-9]+)\*?)?$c

Cs|}g}h}|idƒ\}}|i||fƒxÛ|oÓ|idƒ\}}|idƒo
t}nt}t|ƒ}ti|ƒ}|o[|iddƒ\}}|dj	ot
|ƒ}n|i|gƒi|||fƒq>|i|dt|ƒfƒq>W|oêxç|i
ƒD]Õ\}}g}t}	|iƒxD|D]<\}}
}|oti|
ƒ}
t}	n|i|
ƒqVWtti|ƒƒ}|	o9t|ƒ\}}}|i|||d|ffƒq-|i|d|fƒq-Wn|S(sDecode parameters list according to RFC 2231.

    params is a sequence of 2-tuples containing (param name, string value).
    it*R#tnums"%s"N(tpoptappendRtTruetFalseRtrfc2231_continuationtmatchtgroupRCtintt
setdefaultRtitemstsortRqtEMPTYSTRINGR'R(
tparamst
new_paramstrfc2231_paramsR#RtencodedtmoRut
continuationstextendedRRrRs((s!/usr/lib/python2.6/email/utils.pyRsJ

&"


$Rksus-asciicCszt|tƒo\t|dƒ}|dpd}yt|||ƒSWqvtj
ot|||ƒSXnt|ƒSdS(Niisus-ascii(t
isinstancettupleRtunicodetLookupError(Rterrorstfallback_charsettrawvalRr((s!/usr/lib/python2.6/email/utils.pyR7s(4t__doc__t__all__RVRRDRRXRZRqtwarningstemail._parseaddrRR
R(RR	RbR
RdtquopriRt_qdecodetemail.encodersRRR&RtUEMPTYSTRINGRRntcompileRR!RRRRRtVERBOSEt
IGNORECASEtecreRCRyRRRRRRRzRR(((s!/usr/lib/python2.6/email/utils.pyt<module>sj				
		5						5

Youez - 2016 - github.com/yon3zu
LinuXploit