Re: [Exim] Long spaces in subject line

Pàgina inicial
Delete this message
Reply to this message
Autor: George Szekely
Data:  
A: exim-users
Assumpte: Re: [Exim] Long spaces in subject line
>On Mon, 30 Dec 2002, George Szekely wrote:
>
>> I was hoping an expert user might be able to help me with a small
>> issue I'm having.
>>
>> I would like to bounce any messages that contains more than 8
> > consecutive spaces in the message subject. (Not checking spaces
>> used to wrap the Subject header across multiple lines.)
>>
>> I've set up a system filter, but I don't think it recognizes blank spaces.
> >
>>         $h_subject contains "        "

>
>Have you tried it?



Yes, but... as it turns out it works after all if the consecutive spaces are
anywhere except at the beginning of the subject line.
Somehow it will not match and reject if the subject begins with 8 space.

What is the benefit of using ACL's instead of the system filter? Speed?
Or the way it's rejected "550 ..."?


Thanks for the response.

George




>It should work, if not, try $h_subject matches " {8}"
>
>If you use exim4, you should use a DATA-ACL something like this
>
>deny message = Subject contains too many spaces
>      condition = ${if match {$h_subject}{\N {8}\N}{1}{0}}

>
>ciao
>
>
>--
>
>## List details at http://www.exim.org/mailman/listinfo/exim-users
>Exim details at http://www.exim.org/ ##