Le Mercredi 9 Décembre 2009 10:19:33, Mark Martinec a écrit :
> Alan,
> 
> > The current deployment is already configured as per the help file and is
> > working fine. The help file would imply that what the users want is not
> > possible.
> > 
> > They are all using Outlook and at least 2007 report the following header
> > fields when replying:
> > 
> > References:
> > In-Reply-To:
> > 
> > And while these are not consistent across mail clients I would be able
> > to kill signing with a disclaimer if there were a
> > disclaimer_options_byheader_maps type.
> 
> If it suffices to base the decision on these mail header fields, you can
> supply a small custom hook which loads a policy bank, which can do
> whatever you want, like disabling adding disclaimers when loaded.
> 
> 
> amavisd.conf:
> 
> $policy_bank{'OUR-REPLY'} = {
>   allow_disclaimers => 0,
> };
> 
> include_config_files('/etc/amavisd-custom.conf');
> 
> 
> 
> /etc/amavisd-custom.conf :
> 
> package Amavis::Custom;
> use strict;
> sub new {
>   my($class,$conn,$msginfo) = @_;
>   my($self) = bless {}, $class;
>   my($subj) = $msginfo->get_header_field_body('subject');
>   my($refs) = $msginfo->get_header_field_body('references');
>   my($inre) = $msginfo->get_header_field_body('in-reply-to');
>   if ($msginfo->originating &&
>       (defined $refs || defined $inre || $subj =~ /^\s*re:/i)) {
>     Amavis::load_policy_bank('OUR-REPLY');
>   }
>   $self;
> }
> 1;  # insure a defined return
> 
> 
> Mark
> 
> ---------------------------------------------------------------------------
> --- Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> 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/


Hi  mark, 2 thinks

where we could find all the policies that amavis has, like "OUR-REPLY",
and 2nd, as i realize, altermime has a bug (i did alredy reported to author), 
there are some mail servers taht thoos next:

"user complet name" <"u...@domain"> (simple or double quotes)

this breas alermime, could we do something to normalize that?

TIA

LD

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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