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
c7f8b863
Kaydet (Commit)
c7f8b863
authored
Eki 11, 2001
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Describe the HeaderParser class.
üst
bf7a59d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
emailparser.tex
Doc/lib/emailparser.tex
+11
-0
No files found.
Doc/lib/emailparser.tex
Dosyayı görüntüle @
c7f8b863
...
...
@@ -24,6 +24,17 @@ no magical connection between the \module{email} package's bundled
parser and the
\class
{
Message
}
class, so your custom parser can create
message object trees in any way it find necessary.
The primary parser class is
\class
{
Parser
}
which parses both the
headers and the payload of the message. In the case of
\mimetype
{
multipart
}
messages, it will recursively parse the body of
the container message. The
\module
{
email.Parser
}
module also provides
a second class, called
\class
{
HeaderParser
}
which can be used if
you're only interested in the headers of the message.
\class
{
HeaderParser
}
can be much faster in this situations, since it
does not attempt to parse the message body, instead setting the
payload to the raw body as a string.
\class
{
HeaderParser
}
has the
same API as the
\class
{
Parser
}
class.
\subsubsection
{
Parser class API
}
\begin{classdesc}
{
Parser
}{
\optional
{_
class
}}
...
...
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