Re: [EXIM] Filtering of obscenities....

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nigel Metheringham
Dátum:  
Címzett: Nigel Cass
CC: exim-users
Tárgy: Re: [EXIM] Filtering of obscenities....

ncass@??? said:
} He has now decided that he wants to start scoring messages against a
} bad-word list and take a copy of the ones that come out over a given
} level of obscenity - basically for monitoring purposes.

Nice to see some people don't have enough to do...

I'd run this one past your lawyers before doing anything.

The *easiest* way of doing this would be something like a system filter

    if $message_body contains "word1"
        then
        add 1 to n1
    endif
    if $message_body contains "word2"
        then
        add 1 to n1
    endif
    if $message_body contains "word3"
        then
        add 1 to n1
        endif
    if $message_body contains "word4"
        then
        add 1 to n1
    endif


        if $n1 above 2
        then
        ... do something...
    endif


However that rates for range of language in the first 500 characters
rather than a general blueness rating. Otherwise you are stuck with
shoving everything through an external filter program.

Have a look and see if one of the external spam filters can do this.

    Nigel.


-- 
[ Nigel.Metheringham@???   -  Systems Software Engineer ]
[ Tel : +44 113 207 6112                   Fax : +44 113 234 6065 ]
[ *** Note new telephone number - old one will no longer work *** ] 
[      Real life is but a pale imitation of a Dilbert strip       ]




--
*** Exim information can be found at http://www.exim.org/ ***