[Avcheck] Feature request

Michael Tokarev Avcheck list <avcheck@list.innominate.org>
Fri, 21 Sep 2001 18:38:49 +0400


Juri Haberland wrote:
> 
[]
> Actually, I got my idea from a qmail av-script. There it is done by looking for special headers, like:
> x-loop, x-listname, x-listmember, mailing-list, precedence=(bulk|list|junk)
> and so on.
[]
> [ $SENDER examples snipped ]
[]
> How "expensive" (in terms of computing power) would it be to grep for those headers in every rejected mail?
> (I think I will try to implement this soon.)

I think it will not cost anything.  Ok -- trivial solution, again, around the same
$SENDER lines:

case "$SENDER" in
 ""|MAILER-DAEMON@*) ;;
 list[1-4]@example.com) ;;
 other-list@example.com) ;;
 ...
 *)
   if sed '/^$/q' "$MAIL" | egrep -qi '^(x-loop|x-listname|x-listmember|mailinglist|precedence:
(bulk|list|junk)) ; then
     :
   else
    # send actual sender report
   fi
esac

This is just to show an "idea" -- actual regexp should be adjusted.

Well, this is a good feature IMHO.  If you can construct appropriate
expression, then just do it please, or else I'll do that myself when
time permits...  ;)

Regards,
 Michael.