/snap/core24/1587/usr/lib/python3.12/email/__pycache__
Edit: /snap/core24/1587/usr/lib/python3.12/email/__pycache__/header.cpython-312.pyc (24574B)
Цi^ d Z g dZddlZddlZddlZddlZddlmZ ddlm Z
e
j ZdZdZ
dZd Zd
ZdZdZ ed
Z ed Z ej* dej, ej. z Z ej* d Z ej* d Zej6 j8 Zd Z ddZ G d d Z G d d Z G d de! Z"y)z+Header encoding and decoding functionality.)Header
decode_headermake_header N)HeaderParseError)charset
z N z us-asciizutf-8ai
=\? # literal =?
(?P
[^?]*?) # non-greedy up to the next ? is the charset
\? # literal ?
(?P[qQbB]) # either a "q" or a "b", case insensitive
\? # literal ?
(?P.*?) # non-greedy up to the next ?= is the encoded string
\?= # literal ?=
z[\041-\176]+:$z
\n[^ \t]+:c
t | d rG| j D cg c]/ \ }}t j |t | t | f1 c}}S t
j
| s| dfgS g }| j D ] }t
j | }d}|s|j d }|r|j }d}|r|j |ddf |rc|j d j }|j d j }|j d } |j | ||f |r g }
t | D ]K \ }}|dkD s|d s||dz
d s||dz
d j s8|
j |dz
M t |
D ] }
||
= g }|D ] \ }}}||j ||f |dk( r3t j" j% | }|j ||f U|d k( rOt' | d
z }|r|ddd
|z
z
} t j( j+ | }|j ||f t3 d
|z g }dx}}|D ]Y \ }}t5 |t rt7 |d }||}|})||k7 r|j ||f |}|}F|
|t8 |z z
}U||z
}[ |j ||f |S c c}}w # t, j. $ r t1 d w xY w)a; Decode a message header value without converting charset.
Returns a list of (string, charset) pairs containing each of the decoded
parts of the header. Charset is None for non-encoded parts of the header,
otherwise a lower-case string containing the name of the character set
specified in the encoded string.
header may be a string that may or may not contain RFC2047 encoded words,
or it may be a Header object.
An email.errors.HeaderParseError may be raised when certain decoding error
occurs (e.g. a base64 decoding exception).
_chunksNTr F qb z===zBase64 decoding errorzUnexpected encoding: zraw-unicode-escape)hasattrr _charset_encodestrecresearch
splitlinessplitpoplstripappendlower enumerateisspacereversedemail
quoprimime
header_decodelen
base64mimedecodebinasciiErrorr AssertionError
isinstancebytesBSPACE)headerstringr wordslinepartsfirst unencodedencodingencodeddroplistnwd
decoded_wordsencoded_stringwordpaderr collapsed last_wordlast_charsets #/usr/lib/python3.12/email/header.pyr r ; sN vy!+1>>;' !!g,7WF ; ; ;;v
E!!# ;
4 !I%,,. it45))A,,,. 99Q<--/))A,gx9: ;" H% !1Q31Q4E!A#JqMeAaCjm.C.C.EOOAaC ! h
!H M-2 E)' .'!:;
_##11.AD $1
_(1,F%V"44
6''..~> $$dG_5 !88!CDD%E* I##I&