Le vendredi 14 août 2009 11:26:49, Mark Martinec a écrit :
> Luis,
>
> > Well after doing this config, I have a footer in all emails:
> >
> > $altermime = 'altermime';
> > @altermime_args_disclaimer = qw(--verbose
> > --disclaimer=/etc/mail/altermime- disclaimer.txt);
> > @altermime_args_defang = @altermime_args_disclaimer;
> > $defang_maps_by_ccat{+CC_CATCHALL} = [ 'altermime' ];
> >
> > how ever, I wonder to add a special footer based on mail information.
> > Mainly because to let a normal user to feedback amavis to let it learn
> > about ham or spam.
> >
> > so I wondering if there is a way to know in a variable messages mail_id
> > or secret_id in realtime. So I can push this value in altermime data to
> > have a custom foot based on mail information rather than static one.
> >
> > Look that I'm looking a data about mail, not recipients nor senders.
>
> Should the footer be totally dynamic (generated on-the-fly), or
> would it suffice to switch between a couple of pre-configured
> settings?
>
> If the later, remember that @altermime_args_defang and
> @altermime_args_disclaimer are members of policy banks.
>
> You can prepare several policy banks, each with its own
> settings for these two variables, and then use a custom
> plugin to load a policy bank of choice based on virus and
> spam checks (and other data) collected so far.
>
> >From a custom hook you can load a policy bank like this:
>
> Amavis::load_policy_bank('WHATEVERNAME');
>
>
> Mark
>
> ---------------------------------------------------------------------------
>--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day trial. Simplify your report design, integration and deployment - and
> focus on what you do best, core application coding. Discover what's new
> with Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> AMaViS-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/amavis-user
> AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
> AMaViS-HowTos:http://www.amavis.org/howto/
Footer generated on the fly, such to add lets say, date of review.
How ever, i did it with postfix, but amavisd. I was trying something like
$date = sub{ .... }, but once i add $date in @altermime... array, it does not
change.
thanx any way
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/