• Home
  • Raw
  • Download

Lines Matching full:email

1 :mod:`email.header`: Internationalized headers
4 .. module:: email.header
7 **Source code:** :source:`Lib/email/header.py`
11 This module is part of the legacy (``Compat32``) email API. In the current API
13 dictionary-like API of the :class:`~email.message.EmailMessage` class. In
19 :rfc:`2822` is the base standard that describes the format of email messages.
21 a time when most email was composed of ASCII characters only. :rfc:`2822` is a
22 specification written assuming email contains only 7-bit ASCII characters.
24 Of course, as email has been deployed worldwide, it has become
26 email messages. The base standard still requires email messages to be
28 written describing how to encode email containing non-ASCII characters into
30 :rfc:`2047`, and :rfc:`2231`. The :mod:`email` package supports these standards
31 in its :mod:`email.header` and :mod:`email.charset` modules.
33 If you want to include non-ASCII characters in your email headers, say in the
35 :class:`Header` class and assign the field in the :class:`~email.message.Message`
37 value. Import the :class:`Header` class from the :mod:`email.header` module.
40 >>> from email.message import Message
41 >>> from email.header import Header
53 :class:`~email.message.Message` instance was flattened, the :mailheader:`Subject`
96 Optional *charset*, if given, should be a :class:`~email.charset.Charset`
97 instance (see :mod:`email.charset`) or the name of a character set, which
98 will be converted to a :class:`~email.charset.Charset` instance. A value
173 The :mod:`email.header` module also provides the following convenient functions.
188 >>> from email.header import decode_header