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
fd16ca45
Kaydet (Commit)
fd16ca45
authored
Tem 30, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added mimify docs (Sjoerd).
üst
74d25e7d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
159 additions
and
1 deletion
+159
-1
Makefile
Doc/Makefile
+1
-1
lib.tex
Doc/lib.tex
+1
-0
lib.tex
Doc/lib/lib.tex
+1
-0
libmimify.tex
Doc/lib/libmimify.tex
+75
-0
libwww.tex
Doc/lib/libwww.tex
+3
-0
libmimify.tex
Doc/libmimify.tex
+75
-0
libwww.tex
Doc/libwww.tex
+3
-0
No files found.
Doc/Makefile
Dosyayı görüntüle @
fd16ca45
...
@@ -112,7 +112,7 @@ LIBFILES = lib.tex \
...
@@ -112,7 +112,7 @@ LIBFILES = lib.tex \
libuser.tex libanydbm.tex librandom.tex libsite.tex libwhichdb.tex
\
libuser.tex libanydbm.tex librandom.tex libsite.tex libwhichdb.tex
\
libbase64.tex libfnmatch.tex libquopri.tex libzlib.tex libsocksvr.tex
\
libbase64.tex libfnmatch.tex libquopri.tex libzlib.tex libsocksvr.tex
\
libmailbox.tex libcommands.tex libcmath.tex libni.tex libgzip.tex
\
libmailbox.tex libcommands.tex libcmath.tex libni.tex libgzip.tex
\
libpprint.tex libcode.tex
libpprint.tex libcode.tex
libmimify.tex
# Library document
# Library document
lib.dvi
:
$(LIBFILES)
lib.dvi
:
$(LIBFILES)
...
...
Doc/lib.tex
Dosyayı görüntüle @
fd16ca45
...
@@ -168,6 +168,7 @@ to Python and how to embed it in other applications.
...
@@ -168,6 +168,7 @@ to Python and how to embed it in other applications.
\input
{
libquopri
}
\input
{
libquopri
}
\input
{
libsocksvr
}
\input
{
libsocksvr
}
\input
{
libmailbox
}
\input
{
libmailbox
}
\input
{
libmimify
}
\input
{
librestricted
}
\input
{
librestricted
}
\input
{
librexec
}
\input
{
librexec
}
...
...
Doc/lib/lib.tex
Dosyayı görüntüle @
fd16ca45
...
@@ -168,6 +168,7 @@ to Python and how to embed it in other applications.
...
@@ -168,6 +168,7 @@ to Python and how to embed it in other applications.
\input
{
libquopri
}
\input
{
libquopri
}
\input
{
libsocksvr
}
\input
{
libsocksvr
}
\input
{
libmailbox
}
\input
{
libmailbox
}
\input
{
libmimify
}
\input
{
librestricted
}
\input
{
librestricted
}
\input
{
librexec
}
\input
{
librexec
}
...
...
Doc/lib/libmimify.tex
0 → 100644
Dosyayı görüntüle @
fd16ca45
\section
{
Standard Module
\sectcode
{
mimify
}}
\stmodindex
{
mimify
}
\renewcommand
{
\indexsubitem
}{
(in module mimify)
}
The mimify module defines two functions to convert mail messages to
and from MIME format. The mail message can be either a simple message
or a so-called multipart message. Each part is treated separately.
Mimifying (a part of) a message entails encoding the message as
quoted-printable if it contains any characters that cannot be
represented using 7-bit ASCII. Unmimifying (a part of) a message
entails undoing the quoted-printable encoding. Mimify and unmimify
are especially useful when a message has to be edited before being
sent. Typical use would be:
\begin{verbatim}
unmimify message
edit message
mimify message
send message
\end{verbatim}
The modules defines the following user-callable functions and
user-settable variables:
\begin{funcdesc}
{
mimify
}{
infile, outfile
}
Copy the message in
\var
{
infile
}
to
\var
{
outfile
}
, converting parts to
quoted-printable and adding MIME mail headers when necessary.
\var
{
infile
}
and
\var
{
outfile
}
can be file objects (actually, any
object that has a
\code
{
readline
}
method (for
\var
{
infile
}
) or a
\code
{
write
}
method (for
\var
{
outfile
}
)) or strings naming the files.
If
\var
{
infile
}
and
\var
{
outfile
}
are both strings, they may have the
same value.
\end{funcdesc}
\begin{funcdesc}
{
unmimify
}{
infile, outfile, decode
_
base64 = 0
}
Copy the message in
\var
{
infile
}
to
\var
{
outfile
}
, decoding all
quoted-printable parts.
\var
{
infile
}
and
\var
{
outfile
}
can be file
objects (actually, any object that has a
\code
{
readline
}
method (for
\var
{
infile
}
) or a
\code
{
write
}
method (for
\var
{
outfile
}
)) or strings
naming the files. If
\var
{
infile
}
and
\var
{
outfile
}
are both strings,
they may have the same value.
If the
\var
{
decode
_
base64
}
argument is provided and tests true, any
parts that are coded in the base64 encoding are decoded as well.
\end{funcdesc}
\begin{datadesc}
{
MAXLEN
}
By default, a part will be encoded as quoted-printable when it
contains any non-ASCII characters (i.e., characters with the 8th bit
set), or if there are any lines longer than
\code
{
MAXLEN
}
characters
(default value 200).
\end{datadesc}
\begin{datadesc}
{
CHARSET
}
When not specified in the mail headers, a character set must be filled
in. The string used is stored in
\code
{
CHARSET
}
, and the default
value is ISO-8859-1 (also known as Latin1 (latin-one)).
\end{datadesc}
This module can also be used from the command line. Usage is as
follows:
\begin{verbatim}
mimify.py -e [-l length] [infile [outfile]]
mimify.py -d [-b] [infile [outfile]]
\end{verbatim}
to encode (mimify) and decode (unmimify) respectively.
\var
{
infile
}
defaults to standard input,
\var
{
outfile
}
defaults to standard 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
longer than the specified
\var
{
length
}
, the containing part will be
encoded.
If the
\code
{
-b
}
option is given when decoding, any base64 parts will
be decoded as well.
Doc/lib/libwww.tex
Dosyayı görüntüle @
fd16ca45
...
@@ -80,4 +80,7 @@ written by Sun Microsystems, Inc. June 1987.
...
@@ -80,4 +80,7 @@ written by Sun Microsystems, Inc. June 1987.
\item
[mailbox]
\item
[mailbox]
--- Read various mailbox formats.
--- Read various mailbox formats.
\item
[mimify]
--- Mimification and unmimification of mail messages.
\end{description}
\end{description}
Doc/libmimify.tex
0 → 100644
Dosyayı görüntüle @
fd16ca45
\section
{
Standard Module
\sectcode
{
mimify
}}
\stmodindex
{
mimify
}
\renewcommand
{
\indexsubitem
}{
(in module mimify)
}
The mimify module defines two functions to convert mail messages to
and from MIME format. The mail message can be either a simple message
or a so-called multipart message. Each part is treated separately.
Mimifying (a part of) a message entails encoding the message as
quoted-printable if it contains any characters that cannot be
represented using 7-bit ASCII. Unmimifying (a part of) a message
entails undoing the quoted-printable encoding. Mimify and unmimify
are especially useful when a message has to be edited before being
sent. Typical use would be:
\begin{verbatim}
unmimify message
edit message
mimify message
send message
\end{verbatim}
The modules defines the following user-callable functions and
user-settable variables:
\begin{funcdesc}
{
mimify
}{
infile, outfile
}
Copy the message in
\var
{
infile
}
to
\var
{
outfile
}
, converting parts to
quoted-printable and adding MIME mail headers when necessary.
\var
{
infile
}
and
\var
{
outfile
}
can be file objects (actually, any
object that has a
\code
{
readline
}
method (for
\var
{
infile
}
) or a
\code
{
write
}
method (for
\var
{
outfile
}
)) or strings naming the files.
If
\var
{
infile
}
and
\var
{
outfile
}
are both strings, they may have the
same value.
\end{funcdesc}
\begin{funcdesc}
{
unmimify
}{
infile, outfile, decode
_
base64 = 0
}
Copy the message in
\var
{
infile
}
to
\var
{
outfile
}
, decoding all
quoted-printable parts.
\var
{
infile
}
and
\var
{
outfile
}
can be file
objects (actually, any object that has a
\code
{
readline
}
method (for
\var
{
infile
}
) or a
\code
{
write
}
method (for
\var
{
outfile
}
)) or strings
naming the files. If
\var
{
infile
}
and
\var
{
outfile
}
are both strings,
they may have the same value.
If the
\var
{
decode
_
base64
}
argument is provided and tests true, any
parts that are coded in the base64 encoding are decoded as well.
\end{funcdesc}
\begin{datadesc}
{
MAXLEN
}
By default, a part will be encoded as quoted-printable when it
contains any non-ASCII characters (i.e., characters with the 8th bit
set), or if there are any lines longer than
\code
{
MAXLEN
}
characters
(default value 200).
\end{datadesc}
\begin{datadesc}
{
CHARSET
}
When not specified in the mail headers, a character set must be filled
in. The string used is stored in
\code
{
CHARSET
}
, and the default
value is ISO-8859-1 (also known as Latin1 (latin-one)).
\end{datadesc}
This module can also be used from the command line. Usage is as
follows:
\begin{verbatim}
mimify.py -e [-l length] [infile [outfile]]
mimify.py -d [-b] [infile [outfile]]
\end{verbatim}
to encode (mimify) and decode (unmimify) respectively.
\var
{
infile
}
defaults to standard input,
\var
{
outfile
}
defaults to standard 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
longer than the specified
\var
{
length
}
, the containing part will be
encoded.
If the
\code
{
-b
}
option is given when decoding, any base64 parts will
be decoded as well.
Doc/libwww.tex
Dosyayı görüntüle @
fd16ca45
...
@@ -80,4 +80,7 @@ written by Sun Microsystems, Inc. June 1987.
...
@@ -80,4 +80,7 @@ written by Sun Microsystems, Inc. June 1987.
\item
[mailbox]
\item
[mailbox]
--- Read various mailbox formats.
--- Read various mailbox formats.
\item
[mimify]
--- Mimification and unmimification of mail messages.
\end{description}
\end{description}
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