You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pymilter-1.0.5-py3.8-linux-x86_64.egg/Milter/init.py", line 854, in
milter.set_body_callback(lambda ctx,chunk: ctx.getpriv().body(chunk))
TypeError: 'bytes' object is not callable
The text was updated successfully, but these errors were encountered:
Does your milter by any chance do something like this:
self.body = some_bytes_object
That would produce exactly the result described. My milters use self.fp and self.body_start.
self.body() is a callback function that you override to get the body bytes.
for some of the emails i get below error
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pymilter-1.0.5-py3.8-linux-x86_64.egg/Milter/init.py", line 854, in
milter.set_body_callback(lambda ctx,chunk: ctx.getpriv().body(chunk))
TypeError: 'bytes' object is not callable
The text was updated successfully, but these errors were encountered: