List Info

Thread: Playing with the amavisd-new custom hooks




Playing with the amavisd-new custom hooks
country flaguser name
United States
2008-02-19 14:39:53
Dear All,

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.

Jacob Leaver
C-Corp.net


------------------------------------------------------------
-------------
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-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Playing with the amavisd-new custom hooks
country flaguser name
Slovenia
2008-03-14 11:07:50
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-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )