pybitmessage.class_smtpServer module¶
SMTP server thread
-
exception
SmtpServerChannelException[source]¶ Bases:
exceptions.ExceptionGeneric smtp server channel exception.
-
class
smtpServerChannel(server, conn, addr)[source]¶ Bases:
smtpd.SMTPChannelAsyncore 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.SMTPServerAsyncore 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.StoppableThreadSMTP 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.
-