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
dd868d32
Kaydet (Commit)
dd868d32
authored
Eki 01, 2002
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
nits
üst
73ec9835
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
email.tex
Doc/lib/email.tex
+31
-0
emailgenerator.tex
Doc/lib/emailgenerator.tex
+6
-0
emailparser.tex
Doc/lib/emailparser.tex
+2
-0
No files found.
Doc/lib/email.tex
Dosyayı görüntüle @
dd868d32
...
@@ -100,6 +100,7 @@ following differences:
...
@@ -100,6 +100,7 @@ following differences:
\begin{itemize}
\begin{itemize}
\item
The
\module
{
email.Header
}
and
\module
{
email.Charset
}
modules
\item
The
\module
{
email.Header
}
and
\module
{
email.Charset
}
modules
have been added.
have been added.
\item
The pickle format for
\class
{
Message
}
instances has changed.
\item
The pickle format for
\class
{
Message
}
instances has changed.
Since this was never (and still isn't) formally defined, this
Since this was never (and still isn't) formally defined, this
isn't considered a backward incompatibility. However if your
isn't considered a backward incompatibility. However if your
...
@@ -107,11 +108,13 @@ following differences:
...
@@ -107,11 +108,13 @@ following differences:
aware that in
\module
{
email
}
version 2,
\class
{
Message
}
aware that in
\module
{
email
}
version 2,
\class
{
Message
}
instances now have private variables
\var
{_
charset
}
and
instances now have private variables
\var
{_
charset
}
and
\var
{_
default
_
type
}
.
\var
{_
default
_
type
}
.
\item
Several methods in the
\class
{
Message
}
class have been
\item
Several methods in the
\class
{
Message
}
class have been
deprecated, or their signatures changed. Also, many new methods
deprecated, or their signatures changed. Also, many new methods
have been added. See the documentation for the
\class
{
Message
}
have been added. See the documentation for the
\class
{
Message
}
class for details. The changes should be completely backward
class for details. The changes should be completely backward
compatible.
compatible.
\item
The object structure has changed in the face of
\item
The object structure has changed in the face of
\mimetype
{
message/rfc822
}
content types. In
\module
{
email
}
\mimetype
{
message/rfc822
}
content types. In
\module
{
email
}
version 1, such a type would be represented by a scalar payload,
version 1, such a type would be represented by a scalar payload,
...
@@ -132,29 +135,36 @@ following differences:
...
@@ -132,29 +135,36 @@ following differences:
fine. You just need to make sure your code doesn't do a
fine. You just need to make sure your code doesn't do a
\method
{
set
_
payload()
}
with a
\class
{
Message
}
instance on a
\method
{
set
_
payload()
}
with a
\class
{
Message
}
instance on a
container with a content type of
\mimetype
{
message/rfc822
}
.
container with a content type of
\mimetype
{
message/rfc822
}
.
\item
The
\class
{
Parser
}
constructor's
\var
{
strict
}
argument was
\item
The
\class
{
Parser
}
constructor's
\var
{
strict
}
argument was
added, and its
\method
{
parse()
}
and
\method
{
parsestr()
}
methods
added, and its
\method
{
parse()
}
and
\method
{
parsestr()
}
methods
grew a
\var
{
headersonly
}
argument. The
\var
{
strict
}
flag was
grew a
\var
{
headersonly
}
argument. The
\var
{
strict
}
flag was
also added to functions
\function
{
email.message
_
from
_
file()
}
also added to functions
\function
{
email.message
_
from
_
file()
}
and
\function
{
email.message
_
from
_
string()
}
.
and
\function
{
email.message
_
from
_
string()
}
.
\item
\method
{
Generator.
__
call
__
()
}
is deprecated; use
\item
\method
{
Generator.
__
call
__
()
}
is deprecated; use
\method
{
Generator.flatten()
}
instead. The
\class
{
Generator
}
\method
{
Generator.flatten()
}
instead. The
\class
{
Generator
}
class has also grown the
\method
{
clone()
}
method.
class has also grown the
\method
{
clone()
}
method.
\item
The
\class
{
DecodedGenerator
}
class in the
\item
The
\class
{
DecodedGenerator
}
class in the
\module
{
email.Generator
}
module was added.
\module
{
email.Generator
}
module was added.
\item
The intermediate base classes
\class
{
MIMENonMultipart
}
and
\item
The intermediate base classes
\class
{
MIMENonMultipart
}
and
\class
{
MIMEMultipart
}
have been added, and interposed in the
\class
{
MIMEMultipart
}
have been added, and interposed in the
class hierarchy for most of the other MIME-related derived
class hierarchy for most of the other MIME-related derived
classes.
classes.
\item
The
\var
{_
encoder
}
argument to the
\class
{
MIMEText
}
constructor
\item
The
\var
{_
encoder
}
argument to the
\class
{
MIMEText
}
constructor
has been deprecated. Encoding now happens implicitly based
has been deprecated. Encoding now happens implicitly based
on the
\var
{_
charset
}
argument.
on the
\var
{_
charset
}
argument.
\item
The following functions in the
\module
{
email.Utils
}
module have
\item
The following functions in the
\module
{
email.Utils
}
module have
been deprecated:
\function
{
dump
_
address
_
pairs()
}
,
been deprecated:
\function
{
dump
_
address
_
pairs()
}
,
\function
{
decode()
}
, and
\function
{
encode()
}
. The following
\function
{
decode()
}
, and
\function
{
encode()
}
. The following
functions have been added to the module:
functions have been added to the module:
\function
{
make
_
msgid()
}
,
\function
{
decode
_
rfc2231()
}
,
\function
{
make
_
msgid()
}
,
\function
{
decode
_
rfc2231()
}
,
\function
{
encode
_
rfc2231()
}
, and
\function
{
decode
_
params()
}
.
\function
{
encode
_
rfc2231()
}
, and
\function
{
decode
_
params()
}
.
\item
The non-public function
\function
{
email.Iterators.
_
structure()
}
\item
The non-public function
\function
{
email.Iterators.
_
structure()
}
was added.
was added.
\end{itemize}
\end{itemize}
...
@@ -184,47 +194,65 @@ addition, the top-level package has the following differences:
...
@@ -184,47 +194,65 @@ addition, the top-level package has the following differences:
\begin{itemize}
\begin{itemize}
\item
\function
{
messageFromString()
}
has been renamed to
\item
\function
{
messageFromString()
}
has been renamed to
\function
{
message
_
from
_
string()
}
.
\function
{
message
_
from
_
string()
}
.
\item
\function
{
messageFromFile()
}
has been renamed to
\item
\function
{
messageFromFile()
}
has been renamed to
\function
{
message
_
from
_
file()
}
.
\function
{
message
_
from
_
file()
}
.
\end{itemize}
\end{itemize}
The
\class
{
Message
}
class has the following differences:
The
\class
{
Message
}
class has the following differences:
\begin{itemize}
\begin{itemize}
\item
The method
\method
{
asString()
}
was renamed to
\method
{
as
_
string()
}
.
\item
The method
\method
{
asString()
}
was renamed to
\method
{
as
_
string()
}
.
\item
The method
\method
{
ismultipart()
}
was renamed to
\item
The method
\method
{
ismultipart()
}
was renamed to
\method
{
is
_
multipart()
}
.
\method
{
is
_
multipart()
}
.
\item
The
\method
{
get
_
payload()
}
method has grown a
\var
{
decode
}
\item
The
\method
{
get
_
payload()
}
method has grown a
\var
{
decode
}
optional argument.
optional argument.
\item
The method
\method
{
getall()
}
was renamed to
\method
{
get
_
all()
}
.
\item
The method
\method
{
getall()
}
was renamed to
\method
{
get
_
all()
}
.
\item
The method
\method
{
addheader()
}
was renamed to
\method
{
add
_
header()
}
.
\item
The method
\method
{
addheader()
}
was renamed to
\method
{
add
_
header()
}
.
\item
The method
\method
{
gettype()
}
was renamed to
\method
{
get
_
type()
}
.
\item
The method
\method
{
gettype()
}
was renamed to
\method
{
get
_
type()
}
.
\item
The method
\method
{
getmaintype()
}
was renamed to
\item
The method
\method
{
getmaintype()
}
was renamed to
\method
{
get
_
main
_
type()
}
.
\method
{
get
_
main
_
type()
}
.
\item
The method
\method
{
getsubtype()
}
was renamed to
\item
The method
\method
{
getsubtype()
}
was renamed to
\method
{
get
_
subtype()
}
.
\method
{
get
_
subtype()
}
.
\item
The method
\method
{
getparams()
}
was renamed to
\item
The method
\method
{
getparams()
}
was renamed to
\method
{
get
_
params()
}
.
\method
{
get
_
params()
}
.
Also, whereas
\method
{
getparams()
}
returned a list of strings,
Also, whereas
\method
{
getparams()
}
returned a list of strings,
\method
{
get
_
params()
}
returns a list of 2-tuples, effectively
\method
{
get
_
params()
}
returns a list of 2-tuples, effectively
the key/value pairs of the parameters, split on the
\character
{
=
}
the key/value pairs of the parameters, split on the
\character
{
=
}
sign.
sign.
\item
The method
\method
{
getparam()
}
was renamed to
\method
{
get
_
param()
}
.
\item
The method
\method
{
getparam()
}
was renamed to
\method
{
get
_
param()
}
.
\item
The method
\method
{
getcharsets()
}
was renamed to
\item
The method
\method
{
getcharsets()
}
was renamed to
\method
{
get
_
charsets()
}
.
\method
{
get
_
charsets()
}
.
\item
The method
\method
{
getfilename()
}
was renamed to
\item
The method
\method
{
getfilename()
}
was renamed to
\method
{
get
_
filename()
}
.
\method
{
get
_
filename()
}
.
\item
The method
\method
{
getboundary()
}
was renamed to
\item
The method
\method
{
getboundary()
}
was renamed to
\method
{
get
_
boundary()
}
.
\method
{
get
_
boundary()
}
.
\item
The method
\method
{
setboundary()
}
was renamed to
\item
The method
\method
{
setboundary()
}
was renamed to
\method
{
set
_
boundary()
}
.
\method
{
set
_
boundary()
}
.
\item
The method
\method
{
getdecodedpayload()
}
was removed. To get
\item
The method
\method
{
getdecodedpayload()
}
was removed. To get
similar functionality, pass the value 1 to the
\var
{
decode
}
flag
similar functionality, pass the value 1 to the
\var
{
decode
}
flag
of the
{
get
_
payload()
}
method.
of the
{
get
_
payload()
}
method.
\item
The method
\method
{
getpayloadastext()
}
was removed. Similar
\item
The method
\method
{
getpayloadastext()
}
was removed. Similar
functionality
functionality
is supported by the
\class
{
DecodedGenerator
}
class in the
is supported by the
\class
{
DecodedGenerator
}
class in the
\refmodule
{
email.Generator
}
module.
\refmodule
{
email.Generator
}
module.
\item
The method
\method
{
getbodyastext()
}
was removed. You can get
\item
The method
\method
{
getbodyastext()
}
was removed. You can get
similar functionality by creating an iterator with
similar functionality by creating an iterator with
\function
{
typed
_
subpart
_
iterator()
}
in the
\function
{
typed
_
subpart
_
iterator()
}
in the
...
@@ -251,12 +279,15 @@ The following modules and classes have been changed:
...
@@ -251,12 +279,15 @@ The following modules and classes have been changed:
\item
The
\class
{
MIMEBase
}
class constructor arguments
\var
{_
major
}
\item
The
\class
{
MIMEBase
}
class constructor arguments
\var
{_
major
}
and
\var
{_
minor
}
have changed to
\var
{_
maintype
}
and
and
\var
{_
minor
}
have changed to
\var
{_
maintype
}
and
\var
{_
subtype
}
respectively.
\var
{_
subtype
}
respectively.
\item
The
\code
{
Image
}
class/module has been renamed to
\item
The
\code
{
Image
}
class/module has been renamed to
\code
{
MIMEImage
}
. The
\var
{_
minor
}
argument has been renamed to
\code
{
MIMEImage
}
. The
\var
{_
minor
}
argument has been renamed to
\var
{_
subtype
}
.
\var
{_
subtype
}
.
\item
The
\code
{
Text
}
class/module has been renamed to
\item
The
\code
{
Text
}
class/module has been renamed to
\code
{
MIMEText
}
. The
\var
{_
minor
}
argument has been renamed to
\code
{
MIMEText
}
. The
\var
{_
minor
}
argument has been renamed to
\var
{_
subtype
}
.
\var
{_
subtype
}
.
\item
The
\code
{
MessageRFC822
}
class/module has been renamed to
\item
The
\code
{
MessageRFC822
}
class/module has been renamed to
\code
{
MIMEMessage
}
. Note that an earlier version of
\code
{
MIMEMessage
}
. Note that an earlier version of
\module
{
mimelib
}
called this class/module
\code
{
RFC822
}
, but
\module
{
mimelib
}
called this class/module
\code
{
RFC822
}
, but
...
...
Doc/lib/emailgenerator.tex
Dosyayı görüntüle @
dd868d32
...
@@ -105,13 +105,19 @@ format:
...
@@ -105,13 +105,19 @@ format:
\begin{itemize}
\begin{itemize}
\item
\code
{
type
}
-- Full MIME type of the non-
\mimetype
{
text
}
part
\item
\code
{
type
}
-- Full MIME type of the non-
\mimetype
{
text
}
part
\item
\code
{
maintype
}
-- Main MIME type of the non-
\mimetype
{
text
}
part
\item
\code
{
maintype
}
-- Main MIME type of the non-
\mimetype
{
text
}
part
\item
\code
{
subtype
}
-- Sub-MIME type of the non-
\mimetype
{
text
}
part
\item
\code
{
subtype
}
-- Sub-MIME type of the non-
\mimetype
{
text
}
part
\item
\code
{
filename
}
-- Filename of the non-
\mimetype
{
text
}
part
\item
\code
{
filename
}
-- Filename of the non-
\mimetype
{
text
}
part
\item
\code
{
description
}
-- Description associated with the
\item
\code
{
description
}
-- Description associated with the
non-
\mimetype
{
text
}
part
non-
\mimetype
{
text
}
part
\item
\code
{
encoding
}
-- Content transfer encoding of the
\item
\code
{
encoding
}
-- Content transfer encoding of the
non-
\mimetype
{
text
}
part
non-
\mimetype
{
text
}
part
\end{itemize}
\end{itemize}
The default value for
\var
{
fmt
}
is
\code
{
None
}
, meaning
The default value for
\var
{
fmt
}
is
\code
{
None
}
, meaning
...
...
Doc/lib/emailparser.tex
Dosyayı görüntüle @
dd868d32
...
@@ -135,12 +135,14 @@ Here are some notes on the parsing semantics:
...
@@ -135,12 +135,14 @@ Here are some notes on the parsing semantics:
message object with a string payload. These objects will return
message object with a string payload. These objects will return
\code
{
False
}
for
\method
{
is
_
multipart()
}
. Their
\code
{
False
}
for
\method
{
is
_
multipart()
}
. Their
\method
{
get
_
payload()
}
method will return a string object.
\method
{
get
_
payload()
}
method will return a string object.
\item
All
\mimetype
{
multipart
}
type messages will be parsed as a
\item
All
\mimetype
{
multipart
}
type messages will be parsed as a
container message object with a list of sub-message objects for
container message object with a list of sub-message objects for
their payload. The outer container message will return
their payload. The outer container message will return
\code
{
True
}
for
\method
{
is
_
multipart()
}
and their
\code
{
True
}
for
\method
{
is
_
multipart()
}
and their
\method
{
get
_
payload()
}
method will return the list of
\method
{
get
_
payload()
}
method will return the list of
\class
{
Message
}
subparts.
\class
{
Message
}
subparts.
\item
Most messages with a content type of
\mimetype
{
message/*
}
\item
Most messages with a content type of
\mimetype
{
message/*
}
(e.g.
\mimetype
{
message/deliver-status
}
and
(e.g.
\mimetype
{
message/deliver-status
}
and
\mimetype
{
message/rfc822
}
) will also be parsed as container
\mimetype
{
message/rfc822
}
) will also be parsed as container
...
...
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