Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | handle_accept |
def | process_message |
![]() | |
def | __init__ |
def | __repr__ |
def | add_channel |
def | del_channel |
def | create_socket |
def | set_socket |
Additional Inherited Members | |
![]() | |
connected | |
socket | |
family_and_type | |
![]() | |
int | debug = 0 |
int | connected = 0 |
int | accepting = 0 |
int | closing = 0 |
addr = None | |
def __init__ | ( | self, | |
localaddr, | |||
remoteaddr | |||
) |
Definition at line 276 of file smtpd.py.
References dispatcher.__init__(), SMTPServer._localaddr, SMTPServer._remoteaddr, and dispatcher.create_socket().
def handle_accept | ( | self) |
def process_message | ( | self, | |
peer, | |||
mailfrom, | |||
rcpttos, | |||
data | |||
) |
Override this abstract method to handle messages from the client. peer is a tuple containing (ipaddr, port) of the client that made the socket connection to our smtp port. mailfrom is the raw address the client claims the message is coming from. rcpttos is a list of raw addresses the client wishes to deliver the message to. data is a string containing the entire full text of the message, headers (if supplied) and all. It has been `de-transparencied' according to RFC 821, Section 4.5.2. In other words, a line containing a `.' followed by other text has had the leading dot removed. This function should return None, for a normal `250 Ok' response; otherwise it returns the desired response string in RFC 821 format.
Definition at line 296 of file smtpd.py.