rest25/library/mimify.rst => rest262/library/mimify.rst
f1
2:mod:`mimify` --- MIME processing of mail messages
3==================================================
4
5.. module:: mimify
6   :synopsis: Mimification and unmimification of mail messages.
n7+   :deprecated:
7
8
9.. deprecated:: 2.3
10   The :mod:`email` package should be used in preference to the :mod:`mimify`
11   module.  This module is present only to maintain backward compatibility.
12
13The :mod:`mimify` module defines two functions to convert mail messages to and
n14-from MIME format.  The mail message can be either a simple message or a so-
n15+from MIME format.  The mail message can be either a simple message or a
15-called multipart message.  Each part is treated separately. Mimifying (a part
16+so-called multipart message.  Each part is treated separately. Mimifying (a part
16of) a message entails encoding the message as quoted-printable if it contains
17any characters that cannot be represented using 7-bit ASCII.  Unmimifying (a
18part of) a message entails undoing the quoted-printable encoding.  Mimify and
19unmimify are especially useful when a message has to be edited before being
20sent.  Typical use would be::
21
22   unmimify message
23   edit message
56
57.. function:: mime_encode_header(line)
58
59   Return a MIME-encoded version of the header line in *line*.
60
61
62.. data:: MAXLEN
63
t64-   By default, a part will be encoded as quoted-printable when it contains any non-
t65+   By default, a part will be encoded as quoted-printable when it contains any
65-   ASCII characters (characters with the 8th bit set), or if there are any lines
66+   non-ASCII characters (characters with the 8th bit set), or if there are any
66-   longer than :const:`MAXLEN` characters (default value 200).
67+   lines longer than :const:`MAXLEN` characters (default value 200).
67
68
69.. data:: CHARSET
70
71   When not specified in the mail headers, a character set must be filled in.  The
72   string used is stored in :const:`CHARSET`, and the default value is ISO-8859-1
73   (also known as Latin1 (latin-one)).
74
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op