Milter support for chgfrom.

This commit is contained in:
Stuart Gathman
2008-11-23 03:06:47 +00:00
parent f12bcf9af9
commit 368ffd5374
2 changed files with 9 additions and 3 deletions
+4 -1
View File
@@ -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;