Benny, > On Thu, 09 Jun 2011 22:38:25 -0400, Daryl C. W. O'Shea wrote: > > header CUSTOM_X_SPAM_FLAG X-Spam-Flag:raw =~ /\bYES\b/i
Can't work, the M::S::PerMsgStatus::check_timed calls: $self->{msg}->delete_header('X-Spam-.*'); before invoking any checks. Moving that call further down makes it work. > nope, is headers case sensitive ? Header field names are case-insensitive as per RFC 5322, and are treated as such by SpamAssassin and by amavis. > spamassassin have case like the above, but aol changed it all > uppercase, and my rule works from spamassassin, but fails in amavis > since this header is removed case insensitive, what a life :-) Strange. A message passed from amavis to SpamAssassin is pristine, no header fields are removed or changed, just some header fields are prepended (like a Return-Path and some X-Amavis-* informational additions). The X-Spam-* header fields are deleted by amavisd on-the-fly as a last step when a mesasge is fed back to a MTA. So SA would not see these header fields only if SA were invoked separately and after amavisd, which is not normally the case. Mark