|
Apache/2.2.15 (CentOS) Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64 uid=48(apache) gid=48(apache) groups=48(apache) server ip : 172.67.192.52 | your ip : 10.244.126.0 safemode OFF > / usr / lib64 / python2.6 / email / |
| Filename | /usr/lib64/python2.6/email/parser.pyo |
| Size | 3.76 kb |
| Permission | rw-r--r-- |
| Owner | apache |
| Create time | 23-Dec-2025 17:41 |
| Last modified | 20-Jun-2019 19:45 |
| Last accessed | 22-Apr-2026 09:41 |
| Actions | edit | rename | delete | download (gzip) |
| View | text | code | image |
Ñò
§ÚêLc @ s{ d Z d d g Z d d k Z d d k l Z d d k l Z d d k l Z d d
d � � YZ d e f d � � YZ
d S( s- A parser of RFC 2822 and MIME email messages.t Parsert HeaderParseriÿÿÿÿN( t StringIO( t
FeedParser( t Messagec B s) e Z d � Z e d � Z e d � Z RS( c O s t | � d j o/ d | j o t d � � n | d | d <n t | � d j o/ d | j o t d � � n | d | d <n t | � d j o t d � � n d | j o | d | _ | d =n
t | _ d | j o t i d t d � | d =n | o t d
� � n d 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.
i t _classs( Multiple values for keyword arg '_class'i i t stricts( Multiple values for keyword arg 'strict's Too many argumentss- 'strict' argument is deprecated (and ignored)s Unexpected keyword argumentsN( t lent TypeErrorR R t warningst warnt DeprecationWarning( t selft argst kws( ( s$ /usr/lib64/python2.6/email/parser.pyt __init__ s(
c C se t | i � } | o | i � n x4 t o, | i d � } | p Pn | i | � q' W| i � 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 ( R R t _set_headersonlyt Truet readt feedt close( R t fpt headersonlyt
feedparsert data( ( s$ /usr/lib64/python2.6/email/parser.pyt parse8 s c C s | i t | � 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 ( R R ( R t textR ( ( s$ /usr/lib64/python2.6/email/parser.pyt parsestrJ s ( t __name__t
__module__R t FalseR R ( ( ( s$ /usr/lib64/python2.6/email/parser.pyR s &c B s e Z e d � Z e d � Z RS( c C s t i | | t � S( N( R R R ( R R R ( ( s$ /usr/lib64/python2.6/email/parser.pyR W s c C s t i | | t � S( N( R R R ( R R R ( ( s$ /usr/lib64/python2.6/email/parser.pyR Z s ( R R R R R ( ( ( s$ /usr/lib64/python2.6/email/parser.pyR V s ( ( t __doc__t __all__R t cStringIOR t email.feedparserR t
email.messageR R R ( ( ( s$ /usr/lib64/python2.6/email/parser.pyt <module> s E
§ÚêLc @ s{ d Z d d g Z d d k Z d d k l Z d d k l Z d d k l Z d d
d � � YZ d e f d � � YZ
d S( s- A parser of RFC 2822 and MIME email messages.t Parsert HeaderParseriÿÿÿÿN( t StringIO( t
FeedParser( t Messagec B s) e Z d � Z e d � Z e d � Z RS( c O s t | � d j o/ d | j o t d � � n | d | d <n t | � d j o/ d | j o t d � � n | d | d <n t | � d j o t d � � n d | j o | d | _ | d =n
t | _ d | j o t i d t d � | d =n | o t d
� � n d 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.
i t _classs( Multiple values for keyword arg '_class'i i t stricts( Multiple values for keyword arg 'strict's Too many argumentss- 'strict' argument is deprecated (and ignored)s Unexpected keyword argumentsN( t lent TypeErrorR R t warningst warnt DeprecationWarning( t selft argst kws( ( s$ /usr/lib64/python2.6/email/parser.pyt __init__ s(
c C se t | i � } | o | i � n x4 t o, | i d � } | p Pn | i | � q' W| i � 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 ( R R t _set_headersonlyt Truet readt feedt close( R t fpt headersonlyt
feedparsert data( ( s$ /usr/lib64/python2.6/email/parser.pyt parse8 s c C s | i t | � 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 ( R R ( R t textR ( ( s$ /usr/lib64/python2.6/email/parser.pyt parsestrJ s ( t __name__t
__module__R t FalseR R ( ( ( s$ /usr/lib64/python2.6/email/parser.pyR s &c B s e Z e d � Z e d � Z RS( c C s t i | | t � S( N( R R R ( R R R ( ( s$ /usr/lib64/python2.6/email/parser.pyR W s c C s t i | | t � S( N( R R R ( R R R ( ( s$ /usr/lib64/python2.6/email/parser.pyR Z s ( R R R R R ( ( ( s$ /usr/lib64/python2.6/email/parser.pyR V s ( ( t __doc__t __all__R t cStringIOR t email.feedparserR t
email.messageR R R ( ( ( s$ /usr/lib64/python2.6/email/parser.pyt <module> s E