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

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 338 of file smtpd.py.

Member Function Documentation

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

Definition at line 339 of file smtpd.py.

References PureProxy._deliver(), and SMTPServer._remoteaddr.

340  def process_message(self, peer, mailfrom, rcpttos, data):
341  lines = data.split('\n')
342  # Look for the last header
343  i = 0
344  for line in lines:
345  if not line:
346  break
347  i += 1
348  lines.insert(i, 'X-Peer: %s' % peer[0])
349  data = NEWLINE.join(lines)
350  refused = self._deliver(mailfrom, rcpttos, data)
351  # TBD: what to do with refused addresses?
352  print >> DEBUGSTREAM, 'we got some refusals'

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