Jacob, > I've been playing around with the Amavis::Custom hooks for fun and > entertainment, it's cool stuff. I'm not seeing, however, and maybe I > just missed it, a nice hookable way to add per-recipient headers. If I > haven't missed something clever, would there be any interest in a patch > for this? > If so, which would be the preferable method: > 1.) add a per_recip header array to be added by > add_forwarding_header_per_recip > 2.) add another hook somewhere > > or some other ingenious something I doubtless haven't though of, yet.
Common header edits (for all recipients) can be made from custom hooks even now (2.5.4, 2.6.0) - see my two todays replies on topics: RELAYCOUNTRY Header passed and X-Spam-Languages header (patch) But you are right there is no hooks provision for per-recipient header edits, because 'header_edits' is a property of the $msginfo object, and per-recipient header edits are done through a magic around add_forwarding_header_edits_per_recip. I'll put on a TODO list this need, but it will not be in 2.6.0 yet. Until this is implemented, hacking of add_forwarding_header_edits_per_recip is needed. Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/