Re: [Exim] filtering on &nbsp in subject

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Ian A B Eiloart
Ημερομηνία:  
Υ/ο: Exim-Users (E-mail)
Αντικείμενο: Re: [Exim] filtering on &nbsp in subject

--On Saturday, May 8, 2004 12:28 am +0200 Nico Erfurth <masta@???>
wrote:

> Jeff Lasman wrote:
>
>> We'd like to either refuse (I know, we shouldn't do that after data) or
>> filter out to /dev/null all email with &nbsp; in the subject.
>>
>> Has anyone done this? Can you point me to a quick howto?
>>
>> I'm going nuts trying to figure this out. I'm sure I'm missing
>> something simple, but it's driving me nuts.
>
> Add this to your acl_smtp_data acl.
>
> deny message = We don't allow Subjects starting with &nbsp;
>       condition = ${if match {$h_subject:}{^&nbsp;}{1}}


The problem with this is that the &nbsp; may be translated by the mail
client of the recipient of the bounce. Perhaps an encoded translation
should be offered:

deny message = We don't allow Subjects starting with &nbsp; (&amp;nbsp;)

or something.


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




--
Ian Eiloart
Servers Team
Sussex University ITS