\dHdZgdZddlmZddlmZdZdZ dZ dZ d Z d S) z Encodings and related functions.)encode_7or8bit encode_base64 encode_noop encode_quopri) encodebytes) encodestringcPt|d}|ddS)NT) quotetabs s=20) _encodestringreplace)sencs ..\python\lib\email\encoders.py_qencoders( T * * *C ;;tV $ $$c|d}tt|d}||d|d<dS)zlEncode the message's payload in Base64. Also, add an appropriate Content-Transfer-Encoding header. Tdecodeasciibase64Content-Transfer-EncodingN) get_payloadstr_bencode set_payloadmsgorigencdatas rrrsO ??$? ' 'D(4..'**GOOG'/C#$$$rc|d}t|}||d|d<dS)zvEncode the message's payload in quoted-printable. Also, add an appropriate Content-Transfer-Encoding header. Trzquoted-printablerN)rrrrs rrr&sE ??$? ' 'DtnnGOOG'9C#$$$rc|d}|d|d<dS |dd|d<dS#t$r d|d<YdSwxYw)z9Set the Content-Transfer-Encoding header to 7bit or 8bit.TrN7bitrr8bit)rr UnicodeError)rrs rrr2s ??$? ' 'D |+1 '(2 G,2 '((( 222+1 '((((2s=AAcdS)z Do nothing.N)rs rrrDsrN) __doc____all__rrrquoprirr rrrrrr'rrr+s '&   +*****000000%%% 000:::222$r