[Mimedefang] Why does my x-header appear more than once?
Matthew.van.Eerde at hbinc.com
Matthew.van.Eerde at hbinc.com
Wed Jun 23 17:34:14 EDT 2004
> From: Mark Penkower [mailto:mark at roycenet.com]
> I added the follwoing code to my filter:
>
> action_add_header("X-Spam-Checked-By", "Custom Spam Checking Rules");
>
> When I send email to myself locally, the header only appears
> once. If I send email to myself from an external account,
> the header appears 2 or 3 times.
>
> Why?
You have it in filter($...) which gets called multiple times per email
Consider putting it in filter_end(...) instead which only gets called at the
end
Consider using action_change_header instead which will replace the header if
it exists
More information about the MIMEDefang
mailing list