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

Milter support for chgfrom.

parent f12bcf9a
No related branches found
No related tags found
No related merge requests found
......@@ -112,8 +112,8 @@ class Milter:
def chgheader(self,field,idx,value):
return self.__ctx.chgheader(field,idx,value)
def addrcpt(self,rcpt):
return self.__ctx.addrcpt(rcpt)
def addrcpt(self,rcpt,params=None):
return self.__ctx.addrcpt(rcpt,params)
def delrcpt(self,rcpt):
return self.__ctx.delrcpt(rcpt)
......@@ -121,6 +121,9 @@ class Milter:
def replacebody(self,body):
return self.__ctx.replacebody(body)
def chgfrom(self,sender,params=None):
return self.__ctx.chgfrom(sender,params)
# When quarantined, a message goes into the mailq as if to be delivered,
# but delivery is deferred until the message is unquarantined.
def quarantine(self,reason):
......
......@@ -35,6 +35,9 @@ $ python setup.py help
libraries=["milter","smutil","resolv"]
* $Log$
* Revision 1.12 2008/11/21 20:42:52 customdesigned
* Support smfi_chgfrom and smfi_addrcpt_par.
*
* Revision 1.11 2007/09/25 02:26:29 customdesigned
* Update license.
*
......@@ -1031,7 +1034,7 @@ milter_chgfrom(PyObject *self, PyObject *args) {
SMFICTX *ctx;
PyThreadState *t;
if (!PyArg_ParseTuple(args, "sz:chgfrom", &sender, &params))
if (!PyArg_ParseTuple(args, "s|z:chgfrom", &sender, &params))
return NULL;
ctx = _find_context(self);
if (ctx == NULL) return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment