Table of Contents

Class: DomainPickler Twisted-0.17.4/twisted/mail/relay.py

An SMTP domain which keeps relayable pickles of all messages

Methods   
__init__
exists
startMessage
willRelay
  __init__ 
__init__ ( self,  path )

Initialize

First argument is the directory in which pickles are kept

  exists 
exists (
        self,
        user,
        success,
        failure,
        )

Check whether we will relay

Call overridable willRelay method

  startMessage 
startMessage ( self,  user )

save a relayable pickle of the message

The filename is uniquely chosen. The pickle contains a tuple: from, to, message

  willRelay 
willRelay ( self,  protocol )

Check whether we agree to relay

The default is to relay for non-inet connections or for localhost inet connections. Note that this means we are an open IPv6 relay


Table of Contents

This document was automatically generated on Sat Apr 20 01:30:55 2002 by HappyDoc version 2.0