http://bugzilla.spamassassin.org/show_bug.cgi?id=3389





------- Additional Comments From [EMAIL PROTECTED]  2004-11-10 13:44 -------
Subject: Re:  Request for ability to add arbitrary headers from plugins

On Wed, Nov 10, 2004 at 01:27:08PM -0800, [EMAIL PROTECTED] wrote:
> this is more than that.  bear in mind, rewrite() is not currently supposed to 
> be
> called unless the message is spam.   this is the case where headers need to be
> added even if the message is not marked spam.

Maybe I'm missing something, because ... sure it is!  rewrite_mail()
is called anytime rewriting needs to occurs (ie: all the time unless
specifically disabled), both ham and spam.  It then calls the appropriate
rewrite_report_safe() (only spam) or rewrite_no_report_safe() (ham
and spam).

So in the case wrt plugins, we need hooks from both of those functions to call
into a plugin to do rewriting business -- either adding headers, or general
"here's the output, do what you want with it", both, etc.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to