Re: [Exim] Use of wildcards

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Kirill Miazine
Ημερομηνία:  
Προς: Pete Horn
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Use of wildcards
Pete Horn wrote:
> I use a shared server which runs Exim 3.16 (out of date but out of my
> hands).


Guess what? I have an account on a system running Exim 2.12!

> I use the .forward file as a spam filter for my incoming mail but recently
> more spam has been getting through due to the use of various substitute
> characters for "i".
>
> Is there a way I can use wildcards when I'm checking the headers, as in:
>
>   if
>     $header_subject: contains "str?ng conta?n?ng w?ldcards"
>   then
>     save $home/.mail/junkmail
>     finish

>
> where the question mark is a wildcard character?


You can use regular expression matching. A period (dot, ".") will act as
a wildcard character:

    if $header_subject: matches "str.ng conta.n.ng w.ldcards" then ...


--
Kirill Miazine
mailto:km@krot.org
http://km.krot.org/