Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
DebuggingServer Class Reference
Inheritance diagram for DebuggingServer:
SMTPServer dispatcher

Public Member Functions

def process_message
 
- Public Member Functions inherited from SMTPServer
def __init__
 
def handle_accept
 
def process_message
 
- Public Member Functions inherited from dispatcher
def __init__
 
def __repr__
 
def add_channel
 
def del_channel
 
def create_socket
 
def set_socket
 

Additional Inherited Members

- Data Fields inherited from dispatcher
 connected
 
 socket
 
 family_and_type
 
- Static Public Attributes inherited from dispatcher
int debug = 0
 
int connected = 0
 
int accepting = 0
 
int closing = 0
 
 addr = None
 

Detailed Description

Definition at line 322 of file smtpd.py.

Member Function Documentation

def process_message (   self,
  peer,
  mailfrom,
  rcpttos,
  data 
)

Definition at line 324 of file smtpd.py.

325  def process_message(self, peer, mailfrom, rcpttos, data):
326  inheaders = 1
327  lines = data.split('\n')
328  print '---------- MESSAGE FOLLOWS ----------'
329  for line in lines:
330  # headers first
331  if inheaders and not line:
332  print 'X-Peer:', peer[0]
333  inheaders = 0
334  print line
335  print '------------ END MESSAGE ------------'
336 
337 

The documentation for this class was generated from the following file: