[Mimedefang] Reject based on Character-Set
Alexander Dalloz
alexander.dalloz at uni-bielefeld.de
Mon Jun 21 20:46:43 EDT 2004
Am Di, den 22.06.2004 schrieb Gabriel Corcodel um 2:06:
> Unfortunately, the search engine on the mailing list is broken...
> So, can you tell me how to reject e-mails based on Character-set code?
> Cause nobody in our company speaks Korean, for example:-)
>
> Gabriel
I do that directly with Sendmail and not using MimeDefang, with
following in sendmail.mc set:
LOCAL_CONFIG
Kbadcharsets regex -m (text/html|text/plain)[;
]*charset="?(ks_c_5601-1987|iso-2022-kr|euc-kr|GB2312)
dnl
LOCAL_RULESETS
HContent-Type: $>Block_charset
dnl
SBlock_charset
R$* $: $(badcharsets $1 $: <OK> $) # Using a regex
R<OK> $@ OK
R$+ $#error $: 561 HTML or PLAIN charset specified
not supported
[be aware to use tabstops]
Alexander
--
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) on Athlon CPU kernel 2.6.6-1.435
Serendipity 02:44:44 up 2 days, 8:32, load average: 1.07, 1.20, 1.00
More information about the MIMEDefang
mailing list