Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/email/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/email/generator.pyc |
³ò h”Rc @ sú d Z d d g Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k l Z d d k l Z d Z d Z e i d e i ƒ Z d „ Z d d d „ ƒ YZ d Z d e f d „ ƒ YZ e e e i d ƒ ƒ Z d e Z d d „ Z d S( s: Classes to generate plain text from a message object tree.t Generatort DecodedGeneratoriÿÿÿÿN( t StringIO( t Headert _s s ^From c C sC t | t ƒ o/ y t | d ƒ Wq? t j o t Sq? Xn t S( Ns us-ascii( t isinstancet strt unicodet UnicodeErrort Truet False( t s( ( s+ /usr/local/lib/python2.5/email/generator.pyt _is8bitstring s c B s€ e Z d Z e d d „ Z d „ Z e d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e Z d „ Z d „ Z d „ Z RS( sŠ Generates output from a Message object tree. This basic generator writes the message to the given file object as plain text. iN c C s | | _ | | _ | | _ d S( sá Create the generator for message flattening. outfp is the output file-like object for writing the message to. It must have a write() method. Optional mangle_from_ is a flag that, when True (the default), escapes From_ lines in the body of the message by putting a `>' in front of them. Optional maxheaderlen specifies the longest length for a non-continued header. When a header line is longer (in characters, with tabs expanded to 8 spaces) than maxheaderlen, the header will split as defined in the Header class. Set maxheaderlen to zero to disable header wrapping. The default is 78, as recommended (but not required) by RFC 2822. N( t _fpt _mangle_from_t _maxheaderlen( t selft outfpt mangle_from_t maxheaderlen( ( s+ /usr/local/lib/python2.5/email/generator.pyt __init__+ s c C s | i i | ƒ d S( N( R t write( R R ( ( s+ /usr/local/lib/python2.5/email/generator.pyR @ s c C sY | oA | i ƒ } | p d t i t i ƒ ƒ } n | i | IJn | i | ƒ d S( sì Print the message object tree rooted at msg to the output file specified when the Generator instance was created. unixfrom is a flag that forces the printing of a Unix From_ delimiter before the first object in the message tree. If the original message has no From_ delimiter, a `standard' one is crafted. By default, this is False to inhibit the printing of any From_ delimiter. Note that for subobjects, no From_ line is printed. s From nobody N( t get_unixfromt timet ctimeR t _write( R t msgt unixfromt ufrom( ( s+ /usr/local/lib/python2.5/email/generator.pyt flattenD s c C s | i | | i | i ƒ S( s1 Clone this generator with the exact same options.( t __class__R R ( R t fp( ( s+ /usr/local/lib/python2.5/email/generator.pyt cloneV s c C s‹ | i } z! t ƒ | _ } | i | ƒ Wd | | _ Xt | d d ƒ } | d j o | i | ƒ n | | ƒ | i i | i ƒ ƒ d S( Nt _write_headers( R R t _dispatcht getattrt NoneR! R t getvalue( R R t oldfpt sfpt meth( ( s+ /usr/local/lib/python2.5/email/generator.pyR ^ s c C s° | i ƒ } | i ƒ } t i | | f ƒ i d d ƒ } t | d | d ƒ } | d j oF | i d d ƒ } t | d | d ƒ } | d j o | i } q¢ n | | ƒ d S( Nt -R t _handle_( t get_content_maintypet get_content_subtypet UNDERSCOREt joint replaceR# R$ t _writeBody( R R t maint subt specificR( t generic( ( s+ /usr/local/lib/python2.5/email/generator.pyR"