Skip to content
Snippets Groups Projects
Commit ec3fa467 authored by dkg's avatar dkg Committed by Stuart D. Gathman
Browse files

Correctly document that body callback chunks are in bytes (#28)

https://github.com/sdgathman/pymilter/issues/12 says "Obviously, body
and replacebody are bytes" and milter_wrap_body in miltermodule.c
says:

   arglist = Py_BuildValue("(Oy#)", c, bodyp, bodylen);
…

So pymilter should sport the correct documentation.
parent 04e0b156
No related branches found
No related tags found
No related merge requests found
...@@ -379,7 +379,7 @@ Sets the Python function invoked for each body chunk. There may\n\ ...@@ -379,7 +379,7 @@ Sets the Python function invoked for each body chunk. There may\n\
be multiple body chunks passed to the filter. End-of-lines are\n\ be multiple body chunks passed to the filter. End-of-lines are\n\
represented as received from SMTP (normally Carriage-Return/Line-Feed).\n\ represented as received from SMTP (normally Carriage-Return/Line-Feed).\n\
Function takes args (ctx, chunk) -> int\n\ Function takes args (ctx, chunk) -> int\n\
chunk -> String - body data"; chunk -> bytes - body data";
static PyObject * static PyObject *
milter_set_body_callback(PyObject *self, PyObject *args) { milter_set_body_callback(PyObject *self, PyObject *args) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment