[Pymilter] milter.setreply exception

Steve Foster s.p.foster at leeds.ac.uk
Tue Mar 19 17:15:54 EDT 2013


Ok that makes sense... but the following example doesn't follow the points you have made:

http://spidey2.bmsi.com/pymilter/milter-template_8py-example.html




Stuart D Gathman <stuart at bmsi.com> wrote:

>On Mar 19, Steve Foster transmitted in part:
>
>> On Tue, 19 Mar 2013, Tom Hendrikx wrote:
>>
>>> Can you show us a bit more code, so we can see if you're doing stuff
>in
>>> the wrong order or something like that?
>>
>> Basically I'm using one of the example from the documentation with
>the 
>> following
>>
>>  def envrcpt(self, to, *str):
>>    self.log("mail to:", to, *str)
>>    self.setreply('250','2.0.0','All OK')
>>    return Milter.CONTINUE
>
>If you look at the documentation:
>http://pythonhosted.org/pymilter/classMilter_1_1Base.html#ad474d1db07ac5f7b61ad9b78ece53a23
>
>or the C API documentation:
>https://www.milter.org/developers/api/smfi_setreply
>
>You will see that setreply would be better named "set_error_reply".
>You can only set 4xx/5xx codes, and cannot change the message for 2xx
>codes.
>
>This is a limitation of the current milter protocol.

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gathman.org/pipermail/pymilter/attachments/20130319/3c5b36b7/attachment.html>


More information about the Pymilter mailing list