Stopping unwanted character sets

Scott Silva ssilva at sgvwater.com
Mon Aug 6 00:04:46 IST 2007


Hugo van der Kooij spake the following on 8/4/2007 1:10 AM:
> On Fri, 3 Aug 2007, Matt Kettler wrote:
> 
>> Hugo van der Kooij wrote:
>>> Hi,
>>>
>>> There was some discussion a while ago about stopping messages based on
>>> country of orrigin.
>>>
>>> But I see more use in stopping unwanted charactersets.
>>>
>>> For example:
>>> ------=_NextPart_000_0000_7D761D51.CFA8A7DF
>>> Content-Type: text/plain;
>>>     charset="windows-1251"
>>> Content-Transfer-Encoding: quoted-printable
>>>
>>>
>>> I have no need for messages in this character set nor anyone else.
>>>
>>> Is there a way to filter on these?
>>
>> If you've got the mimeheader plugin loaded (defaults to being loaded
>> in 3.1.0
>> and higher) you can use a mimeheader rule
>>
>> something like this should work:
>> mimehader MIME_WIN_1251    Content-Type =~/windows-1251/i
> 
> It seems it is accepting this fine. Now let us see if there will be hits.
> 
> And I needed to clean up a bit I noticed. I understood it is not
> recommended to put your own ruleset in a private file.
> 
> So they now live in spam.hvdkooij.rules.conf
> 
> Hugo.
> 
Doesn't that need to be a .cf file?

-- 

MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!



More information about the MailScanner mailing list