http://bugzilla.spamassassin.org/show_bug.cgi?id=3389
Summary: Request for ability to add arbitrary headers from
plugins
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Libraries
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
Hi, Currently there doesn't seem to be a clean way for a plugin to add arbitrary
headers. header rewrites is done by the spamassassin driver. This may not be
useful for other SA consumers such as amavis which don't use SA's header
rewriting facility
Conceptually the plugin could add metadata and at the end of the plugin
invocation there might be a callback api which would allow the SA driver or the
amavis driver to take the metadata and convert them into headers
I wrote to Mark Martinec about his thoughts on this thread
http://marc.theaimsgroup.com/?l=spamassassin-devel&m=108437747309582&w=2
and his reply to me (which he has allowed to be reposted) is as follows
--
Currently amavisd-new uses its own data structure to store
header fields to be added, removed or edited. The representation
is such that it is possible to use it for header rewriting on the fly
(functionally similar to what SA does), but is also suitable
to be represented as sendmail milter requests (which is probably
not the case with SA's representation).
Also, amavisd-new currently ignores header rewriting by SA,
primarily because SA does (did?) not offer the ability
to scan message once, then based on the scan findings
prepere separate mail rewrites for each recipient without having
to rescan the message. If this limitation would be lifted
in SA (as I have been suggesting from time to time on the SAtalk
list but never catches up), I would consider using SA's header
rewriting mechanisms, but currently I don't thinks this is
going to happen in SA any time soon. (but it might be
worth asking again).
Mark
--
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.