Re: [Exim] Long spaces in subject line

Pàgina inicial
Delete this message
Reply to this message
Autor: John W Baxter
Data:  
A: exim-users@exim.org
Assumpte: Re: [Exim] Long spaces in subject line
At 23:52 +0100 12/30/2002, Nico Erfurth wrote:
>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?
>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


Unfortunately, many of the spammers are moving those silly codes closer to
the text of the subject (or even ahead of it). We still mark lots of spam
and some non-spam with the test, though (we look for a few characters after
a run of spaces...where the spammers have caused "few" to shrink, along
with the size of "run"). It's up to the users whether to pay attention to
the header we add.

  --John
--
John Baxter   jwblist@???      Port Ludlow, WA, USA