[Avcheck] Feature request

Michael Tokarev mjt@tls.msk.ru
Thu, 20 Sep 2001 20:19:56 +0400


Juri Haberland wrote:
> 
> Hi list,
> 
> I have a feature request:
> What I would like to have in avcheck is that it can detect whether the
> mail was coming from a mailing list and if so, it will not send back a
> message to the list, list-maintainer or original sender.

The main question is: how you can determine if a message is from a mailinglist?
There is no standard way of doing this.

If you know (from) addresses a mailinglist uses, then go to infected.ex2
example, search for "MAILER-DAEMON" case, and add the ML address into there.
For example, if your ML uses return address list@example.com, infected.ex2
will look like:

case "$SENDER" in
 ""|MAILER-DAEMON@*|list@example.com|other_list_addresses) ;; # do not send to special addresses

If there are many addresses like that, list them in different lines, probably
with wildcards:

case "$SENDER" in
 ""|MAILER-DAEMON@*) ;;
 list[1-4]@example.com) ;;
 other-list@example.com) ;;
 ...

I separated detection and infected handling into two distinct pieces
especially for this purpose: one can easily customize things of his
taste/needs/requiriments.

Regards,
 Michael.