Lines Matching refs:email
3 # Contact: email-sig@python.org
13 import email.base64mime
14 import email.quoprimime
16 from email import errors
17 from email.encoders import encode_7or8bit
68 # them to the real ones used in email.
161 """Map character sets to their email properties.
163 This class provides information about the requirements imposed on email
167 information on how to use that character set in an email in an
171 when used in email headers or bodies. Certain character sets must be
172 converted outright, and are not allowed in email. Instances of this
176 are converted to their `official' email names (e.g. latin_1
180 used in an email header, this attribute will be set to
191 used in email headers or bodies. If the input_charset is
341 return email.base64mime.base64_len(s) + len(cset) + MISC_LEN
343 return email.quoprimime.header_quopri_len(s) + len(cset) + MISC_LEN
345 lenb64 = email.base64mime.base64_len(s)
346 lenqp = email.quoprimime.header_quopri_len(s)
369 return email.base64mime.header_encode(s, cset)
371 return email.quoprimime.header_encode(s, cset, maxlinelen=None)
373 lenb64 = email.base64mime.base64_len(s)
374 lenqp = email.quoprimime.header_quopri_len(s)
376 return email.base64mime.header_encode(s, cset)
378 return email.quoprimime.header_encode(s, cset, maxlinelen=None)
388 multibyte charsets in email bodies, so this is usually pretty safe.
397 return email.base64mime.body_encode(s)
399 return email.quoprimime.body_encode(s)