Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
0fbec55e
Kaydet (Commit)
0fbec55e
authored
Nis 23, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Shorten the section title.
Adjust markup to be a little more consistent with the rest of the document.
üst
c2aadcd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
libmimify.tex
Doc/lib/libmimify.tex
+13
-13
No files found.
Doc/lib/libmimify.tex
Dosyayı görüntüle @
0fbec55e
\section
{
\module
{
mimify
}
---
\section
{
\module
{
mimify
}
---
Mimification and unmimification of mail messages.
}
MIME processing of mail messages
}
\declaremodule
{
standard
}{
mimify
}
\declaremodule
{
standard
}{
mimify
}
\modulesynopsis
{
Mimification and unmimification of mail messages.
}
\modulesynopsis
{
Mimification and unmimification of mail messages.
}
...
@@ -10,7 +10,7 @@ and from MIME format. The mail message can be either a simple message
...
@@ -10,7 +10,7 @@ and from MIME format. The mail message can be either a simple message
or a so-called multipart message. Each part is treated separately.
or a so-called multipart message. Each part is treated separately.
Mimifying (a part of) a message entails encoding the message as
Mimifying (a part of) a message entails encoding the message as
quoted-printable if it contains any characters that cannot be
quoted-printable if it contains any characters that cannot be
represented using 7-bit ASCII. Unmimifying (a part of) a message
represented using 7-bit
\
ASCII
. Unmimifying (a part of) a message
entails undoing the quoted-printable encoding. Mimify and unmimify
entails undoing the quoted-printable encoding. Mimify and unmimify
are especially useful when a message has to be edited before being
are especially useful when a message has to be edited before being
sent. Typical use would be:
sent. Typical use would be:
...
@@ -29,17 +29,17 @@ user-settable variables:
...
@@ -29,17 +29,17 @@ user-settable variables:
Copy the message in
\var
{
infile
}
to
\var
{
outfile
}
, converting parts to
Copy the message in
\var
{
infile
}
to
\var
{
outfile
}
, converting parts to
quoted-printable and adding MIME mail headers when necessary.
quoted-printable and adding MIME mail headers when necessary.
\var
{
infile
}
and
\var
{
outfile
}
can be file objects (actually, any
\var
{
infile
}
and
\var
{
outfile
}
can be file objects (actually, any
object that has a
\
code
{
readline
}
method (for
\var
{
infile
}
) or a
object that has a
\
method
{
readline()
}
method (for
\var
{
infile
}
) or a
\
code
{
write
}
method (for
\var
{
outfile
}
)) or strings naming the files.
\
method
{
write()
}
method (for
\var
{
outfile
}
)) or strings naming the files.
If
\var
{
infile
}
and
\var
{
outfile
}
are both strings, they may have the
If
\var
{
infile
}
and
\var
{
outfile
}
are both strings, they may have the
same value.
same value.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
unmimify
}{
infile, outfile
, decode
_
base64 = 0
}
\begin{funcdesc}
{
unmimify
}{
infile, outfile
\optional
{
, decode
_
base64
}}
Copy the message in
\var
{
infile
}
to
\var
{
outfile
}
, decoding all
Copy the message in
\var
{
infile
}
to
\var
{
outfile
}
, decoding all
quoted-printable parts.
\var
{
infile
}
and
\var
{
outfile
}
can be file
quoted-printable parts.
\var
{
infile
}
and
\var
{
outfile
}
can be file
objects (actually, any object that has a
\
code
{
readline
}
method (for
objects (actually, any object that has a
\
method
{
readline()
}
method (for
\var
{
infile
}
) or a
\
code
{
write
}
method (for
\var
{
outfile
}
)) or strings
\var
{
infile
}
) or a
\
method
{
write()
}
method (for
\var
{
outfile
}
)) or strings
naming the files. If
\var
{
infile
}
and
\var
{
outfile
}
are both strings,
naming the files. If
\var
{
infile
}
and
\var
{
outfile
}
are both strings,
they may have the same value.
they may have the same value.
If the
\var
{
decode
_
base64
}
argument is provided and tests true, any
If the
\var
{
decode
_
base64
}
argument is provided and tests true, any
...
@@ -56,14 +56,14 @@ Return a MIME-encoded version of the header line in \var{line}.
...
@@ -56,14 +56,14 @@ Return a MIME-encoded version of the header line in \var{line}.
\begin{datadesc}
{
MAXLEN
}
\begin{datadesc}
{
MAXLEN
}
By default, a part will be encoded as quoted-printable when it
By default, a part will be encoded as quoted-printable when it
contains any non-
ASCII
characters (i.e., characters with the 8th bit
contains any non-
\ASCII
{}
characters (i.e., characters with the 8th bit
set), or if there are any lines longer than
\co
de
{
MAXLEN
}
characters
set), or if there are any lines longer than
\co
nstant
{
MAXLEN
}
characters
(default value 200).
(default value 200).
\end{datadesc}
\end{datadesc}
\begin{datadesc}
{
CHARSET
}
\begin{datadesc}
{
CHARSET
}
When not specified in the mail headers, a character set must be filled
When not specified in the mail headers, a character set must be filled
in. The string used is stored in
\co
de
{
CHARSET
}
, and the default
in. The string used is stored in
\co
nstant
{
CHARSET
}
, and the default
value is ISO-8859-1 (also known as Latin1 (latin-one)).
value is ISO-8859-1 (also known as Latin1 (latin-one)).
\end{datadesc}
\end{datadesc}
...
@@ -77,10 +77,10 @@ to encode (mimify) and decode (unmimify) respectively. \var{infile}
...
@@ -77,10 +77,10 @@ to encode (mimify) and decode (unmimify) respectively. \var{infile}
defaults to standard input,
\var
{
outfile
}
defaults to standard output.
defaults to standard input,
\var
{
outfile
}
defaults to standard output.
The same file can be specified for input and output.
The same file can be specified for input and output.
If the
\
code
{
-l
}
option is given when encoding, if there are any lines
If the
\
strong
{
-l
}
option is given when encoding, if there are any lines
longer than the specified
\var
{
length
}
, the containing part will be
longer than the specified
\var
{
length
}
, the containing part will be
encoded.
encoded.
If the
\
code
{
-b
}
option is given when decoding, any base64 parts will
If the
\
strong
{
-b
}
option is given when decoding, any base64 parts will
be decoded as well.
be decoded as well.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment