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/ 

Reply via email to