rest25/library/smtpd.rst => rest262/library/smtpd.rst
n1- 
2:mod:`smtpd` --- SMTP Server
3============================
4
5.. module:: smtpd
n6- 
n5+   :synopsis: A SMTP server implementation in Python.
7
8.. moduleauthor:: Barry Warsaw <barry@zope.com>
9.. sectionauthor:: Moshe Zadka <moshez@moshez.org>
10
11
12
13
14This module offers several classes to implement SMTP servers.  One is a generic
23.. class:: SMTPServer(localaddr, remoteaddr)
24
25   Create a new :class:`SMTPServer` object, which binds to local address
26   *localaddr*.  It will treat *remoteaddr* as an upstream SMTP relayer.  It
27   inherits from :class:`asyncore.dispatcher`, and so will insert itself into
28   :mod:`asyncore`'s event loop on instantiation.
29
30
n31-.. method:: SMTPServer.process_message(peer, mailfrom, rcpttos, data)
n30+   .. method:: process_message(peer, mailfrom, rcpttos, data)
32
t33-   Raise :exc:`NotImplementedError` exception. Override this in subclasses to do
t32+      Raise :exc:`NotImplementedError` exception. Override this in subclasses to
34-   something useful with this message. Whatever was passed in the constructor as
33+      do something useful with this message. Whatever was passed in the
35-   *remoteaddr* will be available as the :attr:`_remoteaddr` attribute. *peer* is
34+      constructor as *remoteaddr* will be available as the :attr:`_remoteaddr`
36-   the remote host's address, *mailfrom* is the envelope originator, *rcpttos* are
35+      attribute. *peer* is the remote host's address, *mailfrom* is the envelope
37-   the envelope recipients and *data* is a string containing the contents of the
36+      originator, *rcpttos* are the envelope recipients and *data* is a string
38-   e-mail (which should be in :rfc:`2822` format).
37+      containing the contents of the e-mail (which should be in :rfc:`2822`
38+      format).
39
40
41DebuggingServer Objects
42-----------------------
43
44
45.. class:: DebuggingServer(localaddr, remoteaddr)
46
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op