tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
W\¬Qc@s{dZddgZddlZddlmZddlmZddlmZdd
d„ƒYZ    de    fd    „ƒYZ
dS( s-A parser of RFC 2822 and MIME email messages.tParsert HeaderParseriÿÿÿÿN(tStringIO(t
FeedParser(tMessagecBs)eZd„Zed„Zed„ZRS(cOs t|ƒdkr>d|kr-tdƒ‚n|d|d<nt|ƒdkr|d|krktdƒ‚n|d|d<nt|ƒdkrtdƒ‚nd|krÀ|d|_|d=n    t|_d|kròtjd    tdƒ|d=n|rtd
ƒ‚nd S( sÌParser of RFC 2822 and MIME email messages.
 
        Creates an in-memory object tree representing the email message, which
        can then be manipulated and turned over to a Generator to return the
        textual representation of the message.
 
        The string must be formatted as a block of RFC 2822 headers and header
        continuation lines, optionally preceeded by a `Unix-from' header.  The
        header block is terminated either by the end of the string or by a
        blank line.
 
        _class is the class to instantiate for new message objects when they
        must be created.  This class must have a constructor that can take
        zero arguments.  Default is Message.Message.
        it_classs(Multiple values for keyword arg '_class'iitstricts(Multiple values for keyword arg 'strict'sToo many argumentss-'strict' argument is deprecated (and ignored)sUnexpected keyword argumentsN(tlent    TypeErrorRRtwarningstwarntDeprecationWarning(tselftargstkws((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/email/parser.pyt__init__s(    
         
 
cCs_t|jƒ}|r"|jƒnx0trT|jdƒ}|sDPn|j|ƒq%W|jƒS(s\Create a message structure from the data in a file.
 
        Reads all the data from the file and returns the root of the message
        structure.  Optional headersonly is a flag specifying whether to stop
        parsing after reading the headers or not.  The default is False,
        meaning it parses the entire contents of the file.
        i (RRt_set_headersonlytTruetreadtfeedtclose(R tfpt headersonlyt
feedparsertdata((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/email/parser.pytparse8s     cCs|jt|ƒd|ƒS(s-Create a message structure from a string.
 
        Returns the root of the message structure.  Optional headersonly is a
        flag specifying whether to stop parsing after reading the headers or
        not.  The default is False, meaning it parses the entire contents of
        the file.
        R(RR(R ttextR((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/email/parser.pytparsestrJs(t__name__t
__module__RtFalseRR(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/email/parser.pyRs    & cBs eZed„Zed„ZRS(cCstj||tƒS(N(RRR(R RR((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/email/parser.pyRWscCstj||tƒS(N(RRR(R RR((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/email/parser.pyRZs(RRRRR(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/email/parser.pyRVs (( t__doc__t__all__R    t    cStringIORtemail.feedparserRt email.messageRRR(((sT/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/email/parser.pyt<module>s  E