Document milterContext

This commit is contained in:
Stuart Gathman
2009-07-28 22:31:34 +00:00
parent c29a21d2dd
commit 2848a090e3
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
# Copyright 2001,2009 Business Management Systems, Inc.
# This code is under the GNU General Public License. See COPYING for details.
__version__ = '0.9.2'
__version__ = '0.9.3'
import os
import milter
+13
View File
@@ -6,6 +6,19 @@
# A thin wrapper around libmilter.
#
## Hold context for a milter connection.
# Each connection to sendmail creates a new <code>SMFICTX</code> struct within
# libmilter. The milter module in turn creates a milterContext
# tied to the <code>SMFICTX</code> struct via <code>smfi_setpriv</code>
# to hold a PyThreadState and a user defined Python object for the connection.
#
# Most application interaction with libmilter takes places via
# the milterContext object for the connection. It is passed to
# callback functions as the first parameter.
#
# The <code>Milter</code> module creates a python class for each connection,
# and converts function callbacks to instance method invocations.
#
class milterContext(object):
def getsymval(self,sym): pass
def setreply(self,rcode,xcode,*msg): pass