On 10/03/07, Markus Oestreicher <[EMAIL PROTECTED]> wrote:
>
> Frank Patzig schrieb:
> > Hallo,
> >
> > in the new version from amavisd-new is the disclamer funktion includet.
> >
> > In my config is this:
> >
> > $altermime = '/usr/local/bin/altermime';
> >
> > @altermime_args_disclaimer =
> >        qw(--verbose --disclaimer=/etc/postfix/disclaimer.txt);
> > $defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];
> > allow_disclaimers => 1;
>
> Will it be possible to add different disclaimers using mysql queries?
>
> When hosting multiple domains each one needs a different text.
> Maybe the filename could be stored in the database together with
> spam_lover, tag_level, spam_modifies_subject etc.
>
> Markus



I agree with Markus in that it would be pretty cool to get this from SQL.
You could go even more flexible and store the disclaimers themselves in SQL,
writing two little temp files for altermime to parse.  A table for storing
disclaimers could have fields somewhat like:
mynet source IP range   |   text diclaimer   |   html disclaimer

with row entries like:
('192.168.0.0/24', '\nmy text disclaimer 1', '<br>my html disclaimer 1')
('192.168.1.0/24', '\nmy text disclaimer 2', '<br>my html disclaimer 2')

If you were thinking of storing MYNET entries in SQL at some point, this
could be a good excuse too..

Riaan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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/

Reply via email to