[Pymilter] milter.error: cannot add header

Stuart D. Gathman stuart at bmsi.com
Wed Oct 24 14:10:44 EDT 2007


On Wed, 24 Oct 2007, Andrew Azarov wrote:

> Traceback (most recent call last):
>   File "/usr/local/lib/python2.5/site-packages/Milter/__init__.py", line 
> 203, in <lambda>
>     milter.set_eom_callback(lambda ctx: ctx.getpriv().eom())
>   File "./avlmilter", line 259, in eom
>     self.addheader("X-AVLMail-Status", "Passed")
>   File "/usr/local/lib/python2.5/site-packages/Milter/__init__.py", line 
> 110, in addheader
>     return self.__ctx.addheader(field,value,idx)
> milter.error: cannot add header
> 
> Where can it come from?

Did you include Milter.ADDHDRS in Milter.set_flags() ?  See FAQ #8.
http://bmsi.com/python/faq.html

-- 
	      Stuart D. Gathman <stuart at bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.




More information about the Pymilter mailing list