|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/lib64/python2.4/email/ |
Upload File : |
mò
‚=5Dc @ sÿ d Z d k Z d k Z d k Z d k Z d k l Z d k l Z d Z
d Z d Z d d Z
d Z d Z e d
ƒ Z e d ƒ Z e i d e i e i Bƒ Z e i d
ƒ Z e i i Z d „ Z e e d d „ Z d f d „ ƒ YZ d „ Z d „ Z d S( s+ Header encoding and decoding functionality.N( s HeaderParseError( s Charsets
t u i u iL s us-asciis utf-8si
=\? # 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<encoded>.*?) # non-greedy up to the next ?= is the encoded string
\?= # literal ?=
s [\041-\176]+:$c C s? t | ƒ } t i | ƒ p | d f g Sn g } d }
xÿ| i ƒ D]ñ} t i | ƒ p | i | d f ƒ qF n t i
| ƒ } x¯| o§| i d ƒ i
ƒ } | oW | o9 | d d d j o$ | d d t | d f | d <q| i | d f ƒ n | og } | d d !D] } | | i ƒ q~ \ } } | d } d }
| d j o t i i | ƒ }
nG | d j o9 y t i i | ƒ }
Wq¶t i j
o
t ‚ q¶Xn |
d j o
| }
n | o= | d d | j o( | d d |
| d d f | d <q(| i |
| f ƒ n | d d 5qˆ WqF W| S(
sÒ Decode a message header value without converting charset.
Returns a list of (decoded_string, charset) pairs containing each of the
decoded parts of the header. Charset is None for non-encoded parts of the
header, otherwise a lower-case string containing the name of the character
set specified in the encoded string.
An email.Errors.HeaderParseError may be raised when certain decoding error
occurs (e.g. a base64 decoding exception).
t i iÿÿÿÿi i t qt bi N( t strt headert ecret searcht Nonet decodedt dect
splitlinest linet appendt splitt partst popt stript unenct SPACEt _[1]t st lowert charsett encodingt encodedt emailt
quopriMIMEt
header_decodet
base64MIMEt decodet binasciit Errort HeaderParseError( R R R R R R R R R R R
( ( t$ /usr/lib64/python2.4/email/Header.pyt
decode_header1 sJ
$4
(c C st t d | d | d | ƒ } xR | D]J \ } } | d j o! t | t
ƒ o t
| ƒ } n | i | | ƒ q"