Re: Filter on language

"David Jarvie" <[email protected]>
Newsgroups gmane.comp.kde.users.pim
Message-ID <[email protected]>
On Sat, November 17, 2012 7:16 pm, Henk van Velden wrote:
> On Saturday 17 November 2012 19:48:32 Martin Steigerwald wrote:
>> Am Donnerstag, 15. November 2012 schrieb ianseeks:
>> > Hi
>>
>> Hi Ian,
>>
>> > I'm getting loads of spam from a japanese sites and i'm now bored of
>> > updating my junk filters every day .
>> >
>> > Is there a way i can filter out emails that are using asian language
>> > fonts?
>
> As the only character encoding that is (going to be) used by modern
> systems is
> UTF-8 encoded Unicode, filtering on encoding (like the several ISO 8859
> versions) is not going to work.
>
> @ianseeks: though I understand what you want, talking about Asian fonts
> will
> not help in understanding the problem. A font is only a small picture
> generated to make visable to a human being what a character code is. It is
> about the Unicode codes you get in the mail. As these are in groups (e.g.
> Japanese Hiragana is 3040 - 309F) a filter could decide that many
> characters
> within specific ranges in a mail could rate that mail as spam. But (as all
> spam filtering) it is no exact science.

I use the attached procmail recipes to filter out Asian and other fonts,
which has worked well for me. (Note that I first started using this a few
years ago, and it's possible that the spamassassin filter provided by my
mail provider might these days filter out quite a bit also (e.g. UTF-8
encoded spam)). If you don't use procmail, you should be able to convert
the recipes to suit your own filter syntax without too much difficulty.
See "man 5 procmailrc" if you don't understand some of the procmail
syntax.

-- 
David Jarvie.
KDE developer.
KAlarm author - http://www.astrojar.org.uk/kalarm

_______________________________________________
KDE PIM users mailing list
Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users
procmailrc (application/octet-stream, 1.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.