
    d                     H    d Z g dZddlmZ ddlmZ d Zd Z	d Z
d Zd	 Zd
S )z Encodings and related functions.)encode_7or8bitencode_base64encode_noopencode_quopri    )encodebytes)encodestringc                 P    t          | d          }|                    dd          S )NT)	quotetabs    s   =20)_encodestringreplace)sencs        /croot/python-split_1694437901252/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/email/encoders.py_qencoder      s(    
T
*
*
*C;;tV$$$    c                     |                      d          }t          t          |          d          }|                     |           d| d<   dS )zlEncode the message's payload in Base64.

    Also, add an appropriate Content-Transfer-Encoding header.
    Tdecodeasciibase64Content-Transfer-EncodingN)get_payloadstr_bencodeset_payloadmsgorigencdatas      r   r   r      sO    
 ??$?''D(4..'**GOOG'/C#$$$r   c                     |                      d          }t          |          }|                     |           d| d<   dS )zvEncode the message's payload in quoted-printable.

    Also, add an appropriate Content-Transfer-Encoding header.
    Tr   zquoted-printabler   N)r   r   r   r   s      r   r   r   $   sE    
 ??$?''DtnnGOOG'9C#$$$r   c                     |                      d          }|d| d<   dS 	 |                    d           d| d<   dS # t          $ r	 d| d<   Y dS w xY w)z9Set the Content-Transfer-Encoding header to 7bit or 8bit.Tr   N7bitr   r   8bit)r   r   UnicodeError)r   r   s     r   r   r   /   s    ??$?''D|+1'(2G ,2'(((  2 2 2+1'((((2s   = AAc                     dS )zDo nothing.N )r   s    r   r   r   @   s      r   N)__doc____all__r   r   r   quoprir   r   r   r   r   r   r   r'   r   r   <module>r+      s   
 ' &   + * * * * * 0 0 0 0 0 0% % %0 0 0: : :2 2 2"    r   