python (3.11.7)
    eO                        d Z ddgZddlZddlZddlZddlmZmZ ddlm	Z	 ddlm
Z
 ddlmZm
Z
 dd	lmZ dd
lmZ ej        ZdZ ej        d          Zd
 ZddZd Zd Zd Z G d d          Z G d de          Z G d de          ZdS )z8Basic message object for the email package object model.MessageEmailMessage    N)BytesIOStringIO)utils)errors)Policycompat32charset)decode_bz; z[ \(\)<>@,;:\\"/\[\]\?=]c                     t          |                               d          \  }}}|s|                                d fS |                                |                                fS )N;)str	partitionstrip)paramasepbs       A/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/email/message.py_splitparamr      sX    
 E
$$S))IAsA wwyy$7799aggii    Tc                    |t          |          dk    rt          |t                    r4| dz
  } t          j        |d         |d         |d                   }| d|S 	 |                    d           n2# t          $ r% | dz
  } t          j        |dd	          }| d|cY S w xY w|st                              |          r| d
t          j	        |          dS | d|S | S )a~  Convenience function to format and return a key=value pair.
    This will quote the value if needed or if quote is true.  If value is a
    three tuple (charset, language, value), it will be encoded according
    to RFC2231 rules.  If it contains non-ascii characters it will likewise
    be encoded according to RFC2231 rules, using the utf-8 charset and
    a null language.
    Nr   *      =asciizutf-8 z="")
len
isinstancetupler   encode_rfc2231encodeUnicodeEncodeError	tspecialssearchquote)r   valuer*   s      r   _formatparamr,   '