[Pymilter] addheader question
Ed Wong
smewcc at gmail.com
Fri May 19 06:03:29 EDT 2023
Hi,
I have the following code:
if __name__ == "__main__":
Milter.factory = SimpleMilter
Milter.set_exception_policy(milter.CONTINUE)
Milter.set_flags(Milter.CHGHDRS + Milter.ADDHDRS)
sys.stdout.flush()
Milter.runmilter("simplemilter", "/tmp/simpmilt.socket", 240)
Given that, I should be able to add a header field/value to the headers,
but when I do the following:
def close(self):
...
self.addheader("X-MARK", "Seen by SimpleMilter")
I get an error:
milter.error: cannot add header
Now I'm wondering if I can't addheaders that late into the process.
Is this the case?
Any clarifications appreciated, thanks.
Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gathman.org/pipermail/pymilter/attachments/20230519/1e5381a1/attachment.html>
More information about the Pymilter
mailing list