Skip to content
Snippets Groups Projects
Commit 2848a090 authored by Stuart Gathman's avatar Stuart Gathman
Browse files

Document milterContext

parent c29a21d2
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# Copyright 2001,2009 Business Management Systems, Inc. # Copyright 2001,2009 Business Management Systems, Inc.
# This code is under the GNU General Public License. See COPYING for details. # This code is under the GNU General Public License. See COPYING for details.
__version__ = '0.9.2' __version__ = '0.9.3'
import os import os
import milter import milter
......
...@@ -6,6 +6,19 @@ ...@@ -6,6 +6,19 @@
# A thin wrapper around libmilter. # 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): class milterContext(object):
def getsymval(self,sym): pass def getsymval(self,sym): pass
def setreply(self,rcode,xcode,*msg): pass def setreply(self,rcode,xcode,*msg): pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment