Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
proc
/
self
/
root
/
usr
/
lib
/
python2.4
/
email
/
Upload File :
New :
File
Dir
//proc/self/root/proc/self/root/usr/lib/python2.4/email/Utils.pyo
mò ‚=5Dc�����������@���s·��d��Z��d�k�Z�d�k�Z�d�k�Z�d�k�Z�d�k�Z�d�k�Z�d�k�Z�d�k�l �Z �d�k �l�Z�d�k �l�Z �d�k �l�Z�d�k �l�Z�d�k �l�Z�d�k�l�Z�d �k�l�Z�l�Z�d �Z�d�Z�d�Z�d �Z�e�i�d�ƒ�Z�e�i�d�ƒ�Z�d�„��Z �d�„��Z!�d�„��Z"�d�„��Z#�d�„��Z$�e�i�d�e�i%�e�i&�Bƒ�Z'�d�e)�e)�d�„�Z*�d�d�„�Z+�d�„��Z�d�„��Z�d�„��Z,�d�„��Z-�d�„��Z.�d�d�d�„�Z/�e�i�d�ƒ�Z0�d�„��Z1�d �d!�d"�„�Z2�d�S(#���s���Miscellaneous utilities.N(���s���StringIO(���s���quote(���s���AddressList(���s ���mktime_tz(���s ���parsedate(���s���parsedate_tz(���s���decodestring(���s���_bencodes���_qencodes���, t����u����s��� s���[][\\()<>@,:;".]s ���[][\\()"]c���������C���s���|��S(���N(���t���s(���R���(����(����t!���/usr/lib/python2.4/email/Utils.pyt ���_identity)���s����c���������C���sO���|��p�|��Sn�t�i�|��ƒ�}�|��i�d�ƒ�o�|�i�d�ƒ�o�|�d� Sn�|�S(���Ns��� iÿÿÿÿ(���R���t���base64t���decodestringt���valuet���endswith(���R���R���(����(����R���t���_bdecode-���s����!c���������C���s.���t��i�d�t�|��ƒ�}��t��i�d�t�|��ƒ�}��|��S(���s+���Replace all line-ending characters with .s ���(?<!\r)\ns���\r(?!\n)N(���t���ret���subt���CRLFR���(���R���(����(����R���t���fix_eols9���s�����c���������C���sa���|��\�}�}�|�oJ�d�}�t�i�|�ƒ�o �d�}�n�t�i�d�|�ƒ�}�d�|�|�|�|�f�Sn�|�S(���s��The 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. R����t���"s���\\\g<0>s���%s%s%s <%s>N(���t���pairt���namet���addresst���quotest ���specialsret���searcht ���escapesreR ���(���R���R���R���R���(����(����R���t ���formataddrC���s����� c���������C���s"���t��i�|��ƒ�}�t�|�ƒ�}�|�i�S(���s7���Return a list of (REALNAME, EMAIL) for each fieldvalue.N(���t ���COMMASPACEt���joint���fieldvaluest���allt���_AddressListt���at���addresslist(���R���R���R���(����(����R���t���getaddressesV���s�����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��� ������C���sX��|��d$�j�o�t�i�ƒ��}��n�|�o�t�i�|��ƒ�}�t�i�o�|�d�o �t�i�}�n �t�i�}�t �t �|�ƒ�d�ƒ�\�}�}�|�d�j�o �d�}�n�d�}�d�|�|�|�d�f�}�n'�t�i�|��ƒ�}�|�o �d�}�n�d �}�d �d�d�d �d�d�d�d�g�|�d�|�d�d�d�d�d�d�d�d�d�d�d�d�d�g�|�d �d �|�d�|�d!�|�d"�|�d#�|�f�S(%���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ÿÿÿÿi��i����t���-t���+s ���%s%02d%02di<���t���GMTs���-0000s"���%s, %02d %s %04d %02d:%02d:%02d %st���Mont���Tuet���Wedt���Thut���Frit���Satt���Suni���i���t���Jant���Febt���Mart���Aprt���Mayt���Junt���Jult���Augt���Sept���Octt���Novt���Deci���i���i���i���N(���t���timevalt���Nonet���timet ���localtimet���nowt���daylightt���altzonet���offsett���timezonet���divmodt���abst���hourst���minutest���signt���zonet���gmtimet���usegmt( ���R4���R7���RD���RB���R;���RA���R?���R8���R@���(����(����R���t ���formatdatej���s$����� c���������C���sŒ���t��i��ƒ��}�t��i�d�t��i�|�ƒ�ƒ�}�t�i�ƒ��}�t�i �d�ƒ�}�|��d�j�o �d�}��n�d�|��}��t �i�ƒ��}�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 †�R����t���.s���<%s.%s.%s%s@%s>N(���R6���R4���t���strftimeRC���t���utcdatet���ost���getpidt���pidt���randomt ���randranget���randintt���idstringR5���t���sockett���getfqdnt���idhostt���msgid(���RO���RH���RN���RS���RK���R4���RR���(����(����R���t ���make_msgidŸ���s����� c���������C���s���|��p�d��Sn�t�|��ƒ�S(���N(���t���dataR5���t ���_parsedate(���RU���(����(����R���t ���parsedate¸���s����c���������C���s���|��p�d��Sn�t�|��ƒ�S(���N(���RU���R5���t ���_parsedate_tz(���RU���(����(����R���t���parsedate_tz¾���s����c���������C���s&���t��|��ƒ�i�}�|�p�d�Sn�|�d�S(���NR����i����(���R����R����(���R���t���addrR���t���addrs(���RZ���R[���(����(����R���t ���parseaddrÄ���s����c���������C���s‘���t��|��ƒ�d�j�oz�|��i�d�ƒ�o7�|��i�d�ƒ�o'�|��d�d�!i�d�d�ƒ�i�d�d�ƒ�Sn�|��i�d�ƒ�o�|��i�d�ƒ�o�|��d�d�!Sq�n�|��S( ���s���Remove quotes from a string.i���R ���iÿÿÿÿs���\\s���\s���\"t���<t���>N(���t���lent���strt ���startswithR���t���replace(���R`���(����(����R���t���unquoteÌ���s����� ' c���������C���sm���d�k��}�|��i�d�d�ƒ�}�t�|�ƒ�d�j�o�d�d�|�i�|��ƒ�f�Sn�|�\�}�}�}��|�|�|�i�|��ƒ�f�S(���s#���Decode string according to RFC 2231Nt���'i���i���( ���t���urllibR���t���splitt���partsR_���R5���Rc���t���charsett���language(���R���Ri���Rh���Rg���Re���(����(����R���t���decode_rfc2231Ø���s����� c���������C���sh���d�k��}�|�i�|��d�d�ƒ}��|�d�j�o�|�d�j�o�|��Sn�|�d�j�o �d�}�n�d�|�|�|��f�S(���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. Nt���safeR����s���%s'%s'%s(���Re���t���quoteR���Rh���R5���Ri���(���R���Rh���Ri���Re���(����(����R���t���encode_rfc2231â���s����� s&���^(?P<name>\w+)\*((?P<num>[0-9]+)\*?)?$c���������C���s‹��g��}�h��} �|��d�\�}�}�|�i�|�|�f�ƒ�xµ�|��d�D]©�\�}�}�t�|�ƒ�}�t�i�|�ƒ�}�|�o^�|�i �d�d�ƒ�\�}�}�|�d�j �o�t �|�ƒ�}�n�| �i�|�g��ƒ�} �| �i�|�|�f�ƒ�q:�|�i�|�d�t�|�ƒ�f�ƒ�q:�W| �o™�x–�| �i�ƒ��D]„�\�}�}�g��}�|�i�ƒ��x!�|�D]�\�}�}�|�i�|�ƒ�qWt�t�i�|�ƒ�ƒ�\�}�}�}�|�i�|�|�|�d�t�|�ƒ�f�f�ƒ�qû�Wn�|�S(���s���Decode parameters list according to RFC 2231. params is a sequence of 2-tuples containing (content type, string value). i����i���R���t���nums���"%s"N(���t ���new_paramst���rfc2231_paramst���paramsR���R���t���appendRc���t���rfc2231_continuationt���matcht���mot���groupRn���R5���t���intt ���setdefaultt���rfc2231_param1Rl���t���itemst ���continuationst���sortt���continuationRj���t���EMPTYSTRINGR���Rh���Ri���(���Rq���R���Ri���Ro���Ru���Rh���R���R{���Rn���Ry���Rp���R}���(����(����R���t ���decode_paramsô���s6������ ! � �.Rb���s���us-asciic���������C���s}���t��|��t�ƒ�o_�t�|��d�ƒ�}�|��d�p�d�}�y�t�|�|�|�ƒ�SWqy�t�j �o�t�|�|�|�ƒ�Sqy�Xn�t�|��ƒ�Sd��S(���Ni���i����s���us-ascii( ���t ���isinstanceR���t���tupleRc���t���rawvalRh���t���unicodet���errorst���LookupErrort���fallback_charset(���R���R„���R†���R‚���Rh���(����(����R���t���collapse_rfc2231_value��s����(3���t���__doc__RI���R ���R6���R���RL���RP���t���warningst ���cStringIOt���StringIOt���email._parseaddrRl���t���AddressListR���t ���mktime_tzRW���RV���RY���RX���t���quopriR���t���_qdecodet���email.Encoderst���_bencodet���_qencodeR���R~���t���UEMPTYSTRINGR���t���compileR���R���R���R���R���R���R���t���VERBOSEt ���IGNORECASEt���ecreR5���t���FalseRE���RT���R\���Rc���Rj���Rm���Rs���R���R‡���('���RW���Rc���R”���R“���RL���R‡���R���R���R���R���R���RT���R ���RY���RE���R���R���Rs���Rj���R���R���R‰���Rl���Rm���R���R���R’���R\���R˜���RP���R‹���RI���R���R~���R6���RV���RX���RŽ���R���(����(����R���t���?���sL��� 5 $