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
2363e8fe
Kaydet (Commit)
2363e8fe
authored
Tem 11, 2004
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added documentation for the "smtpd" module.
Closes SF bug #450803.
üst
88e8e34a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
0 deletions
+65
-0
Makefile.deps
Doc/Makefile.deps
+1
-0
lib.tex
Doc/lib/lib.tex
+1
-0
libsmtpd.tex
Doc/lib/libsmtpd.tex
+63
-0
No files found.
Doc/Makefile.deps
Dosyayı görüntüle @
2363e8fe
...
@@ -288,6 +288,7 @@ LIBFILES= $(MANSTYLES) $(INDEXSTYLES) $(COMMONTEX) \
...
@@ -288,6 +288,7 @@ LIBFILES= $(MANSTYLES) $(INDEXSTYLES) $(COMMONTEX) \
lib/libheapq.tex
\
lib/libheapq.tex
\
lib/libmimetypes.tex
\
lib/libmimetypes.tex
\
lib/libsmtplib.tex
\
lib/libsmtplib.tex
\
lib/libsmtpd.tex
\
lib/libcmd.tex
\
lib/libcmd.tex
\
lib/libmultifile.tex
\
lib/libmultifile.tex
\
lib/libthreading.tex
\
lib/libthreading.tex
\
...
...
Doc/lib/lib.tex
Dosyayı görüntüle @
2363e8fe
...
@@ -228,6 +228,7 @@ and how to embed it in other applications.
...
@@ -228,6 +228,7 @@ and how to embed it in other applications.
\input
{
libimaplib
}
\input
{
libimaplib
}
\input
{
libnntplib
}
\input
{
libnntplib
}
\input
{
libsmtplib
}
\input
{
libsmtplib
}
\input
{
libsmtpd
}
\input
{
libtelnetlib
}
\input
{
libtelnetlib
}
\input
{
liburlparse
}
\input
{
liburlparse
}
\input
{
libsocksvr
}
\input
{
libsocksvr
}
...
...
Doc/lib/libsmtpd.tex
0 → 100644
Dosyayı görüntüle @
2363e8fe
\section
{
\module
{
smtpd
}
---
SMTP Server
}
\declaremodule
{
standard
}{
smtpd
}
\moduleauthor
{
Barry Warsaw
}{
barry@zope.com
}
\sectionauthor
{
Moshe Zadka
}{
moshez@moshez.org
}
\modulesynopsis
{
Implement a flexible SMTP server
}
This module offers several classes to implement SMTP servers. One is
a generic do-nothing implementation, which can be overridden, while
the other two offer specific mail-sending strategies.
\subsection
{
SMTPServer Objects
}
\begin{classdesc}
{
SMTPServer
}{
localaddr, remoteaddr
}
Create a new
\class
{
SMTPServer
}
object, which binds to local address
\var
{
localaddr
}
. It will treat
\var
{
remoteaddr
}
as an upstream SMTP
relayer. It inherits from
\class
{
asyncore.dispatcher
}
, and so will
insert itself into
\refmodule
{
asyncore
}
's event loop on instantiation.
\end{classdesc}
\begin{methoddesc}
[SMTPServer]
{
process
_
message
}{
peer, mailfrom, rcpttos, data
}
Raise
\exception
{
NotImplementedError
}
exception. Override this in
subclasses to do something useful with this message. Whatever was
passed in the constructor as
\var
{
remoteaddr
}
will be available as the
\member
{_
remoteaddr
}
attribute.
\var
{
peer
}
is the remote host's address,
\var
{
mailfrom
}
is the envelope originator,
\var
{
rcpttos
}
are the
envelope recipients and
\var
{
data
}
is a string containing the contents
of the e-mail (which should be in
\rfc
{
2822
}
format).
\end{methoddesc}
\subsection
{
DebuggingServer Objects
}
\begin{classdesc}
{
DebuggingServer
}{
localaddr, remoteaddr
}
Create a new debugging server. Arguments are as per
\class
{
SMTPServer
}
. Messages will be discarded, and printed on
stdout.
\end{classdesc}
\subsection
{
PureProxy Objects
}
\begin{classdesc}
{
PureProxy
}{
localaddr, remoteaddr
}
Create a new pure proxy server. Arguments are as per
\class
{
SMTPServer
}
.
Everything will be relayed to
\var
{
remoteaddr
}
. Note that running
this has a good chance to make you into an open relay, so please be
careful.
\end{classdesc}
\subsection
{
MailmanProxy Objects
}
\begin{classdesc}
{
MailmanProxy
}{
localaddr, remoteaddr
}
Create a new pure proxy server. Arguments are as per
\class
{
SMTPServer
}
. Everything will be relayed to
\var
{
remoteaddr
}
,
unless local mailman configurations knows about an address, in which
case it will be handled via mailman. Note that running this has a
good chance to make you into an open relay, so please be careful.
\end{classdesc}
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