Re: [AMaViS-user] Playing with the amavisd-new custom hooks

This is a discussion on Re: [AMaViS-user] Playing with the amavisd-new custom hooks within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Jacob, > I've been playing around with the Amavis::Custom hooks for fun and > entertainment, it's cool ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-14-2008
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] Playing with the amavisd-new custom hooks

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/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0