64
!ˆ
ƒ {Ê¿Ë !
Index of /FSS-BCZ/root/lib/python3.9/site-packages/sos/presets
Index of /FSS-BCZ/root/lib/python3.9/site-packages/sos/presets
#ˆÂÈ
ƒ}Æ_Ç¿Ë %§ #a
´i�( ã @ s d Z ddlZddlZddlmZmZmZmZ ddlm Z ddl
mZ ddlm
Z
ddlmZ g d¢Ze d ¡ZeG d
d„ deƒƒZeƒ Ze`ejdd
�Zejdd�Zejddd�Zejdd�ZdS )zcThis will be the home for the policy that hooks in the new
code that adds all the email6 features.
é N)ÚPolicyÚCompat32Úcompat32Ú_extend_docstrings)Ú_has_surrogates)ÚHeaderRegistry)Úraw_data_manager)ÚEmailMessage)r r r ÚEmailPolicyÚdefaultÚstrictÚSMTPÚHTTPz\n|\rc sp e Zd ZdZeZdZdZeƒ Z e
Z‡ fdd„Zdd„ Z
dd „ Zd
d„ Zdd
„ Zdd„ Zdd„ Zddd„Z‡ ZS )r
aQ +
PROVISIONAL
The API extensions enabled by this policy are currently provisional.
Refer to the documentation for details.
This policy adds new header parsing and folding algorithms. Instead of
simple strings, headers are custom objects with custom attributes
depending on the type of the field. The folding algorithm fully
implements RFCs 2047 and 5322.
In addition to the settable attributes listed above that apply to
all Policies, this policy adds the following additional attributes:
utf8 -- if False (the default) message headers will be
serialized as ASCII, using encoded words to encode
any non-ASCII characters in the source strings. If
True, the message headers will be serialized using
utf8 and will not contain encoded words (see RFC
6532 for more on this serialization format).
refold_source -- if the value for a header in the Message object
came from the parsing of some source, this attribute
indicates whether or not a generator should refold
that value when transforming the message back into
stream form. The possible values are:
none -- all source values use original folding
long -- source values that have any line that is
longer than max_line_length will be
refolded
all -- all values are refolded.
The default is 'long'.
header_factory -- a callable that takes two arguments, 'name' and
'value', where 'name' is a header field name and
'value' is an unfolded header field value, and
returns a string-like object that r