pybitmessage.class_smtpServer module¶
SMTP server thread
-
exception
SmtpServerChannelException
[source]¶ Bases:
exceptions.Exception
Generic smtp server channel exception.
-
class
smtpServerChannel
(server, conn, addr)[source]¶ Bases:
smtpd.SMTPChannel
Asyncore channel for SMTP protocol (server)
-
smtp_EHLO
(arg)¶ Process an EHLO
-
smtp_AUTH
(arg)¶ Process AUTH
-
smtp_DATA
(arg)¶ Process DATA
-
-
class
smtpServerPyBitmessage
(localaddr, remoteaddr)[source]¶ Bases:
smtpd.SMTPServer
Asyncore SMTP server class
-
handle_accept
()¶ Accept a connection
-
send
(fromAddress, toAddress, subject, message)¶ Send a bitmessage
-
decode_header
(hdr)¶ Email header decoding
-
process_message
(peer, mailfrom, rcpttos, data)¶ Process an email
-
-
class
smtpServer
(_=None)[source]¶ Bases:
pybitmessage.network.threads.StoppableThread
SMTP server thread
-
stopThread
()¶ Stop the thread
-
run
()¶ Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
-