filter to delete mail not in English/French...

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
Thomas Parvais
Normal user
Normal user
Posts: 111
Joined: 2004-12-17 12:21
Contact:

filter to delete mail not in English/French...

Post by Thomas Parvais » 2008-11-26 17:54

Hello,

Is there a solution to delete all mails received in Turkish, Chinease and others non-european alphabet ? They are always spams....

Thank you

Thomas
Interrested by Law & new technologies ?
Intéressé par le droit de l'internet et des nouvelles technologies ?
Visit/Visitez http://www.droit-technologie.org

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: filter to delete mail not in English/French...

Post by ^DooM^ » 2008-11-26 20:13

You could check for specific charsets in the header and delete with a rule using custom header field.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

Thomas Parvais
Normal user
Normal user
Posts: 111
Joined: 2004-12-17 12:21
Contact:

Re: filter to delete mail not in English/French...

Post by Thomas Parvais » 2008-12-03 22:48

^DooM^ wrote:You could check for specific charsets in the header and delete with a rule using custom header field.
I tried as follow on this image. I'm not sure it works fine.

Image

Can you confirm ?

Tx

Thomas
Interrested by Law & new technologies ?
Intéressé par le droit de l'internet et des nouvelles technologies ?
Visit/Visitez http://www.droit-technologie.org

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: filter to delete mail not in English/French...

Post by ^DooM^ » 2008-12-03 23:46

Are you still receiving emails with that content type?
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

Thomas Parvais
Normal user
Normal user
Posts: 111
Joined: 2004-12-17 12:21
Contact:

Re: filter to delete mail not in English/French...

Post by Thomas Parvais » 2008-12-04 10:18

^DooM^ wrote:You could check for specific charsets in the header and delete with a rule using custom header field.
yes because I also discover that charset header is not often present in mail's header ! sometimes this is in the mail's body:
Return-Path: <urzalezzetavi@gmail.com>
Received: from pc.local ([78.188.138.135])
by serveur.maxetzoe.com
with hMailServer ; Thu, 4 Dec 2008 05:47:16 +0100
Received: from pc.local[127.0.0.1] by pc.local[127.0.0.1]
(SMTPD32); Thu, 4 Dec 2008 06:47:10 +0200
Reply-To: urzalezzetavi@gmail.com
Message-ID: <616d050fa5ce5a311792a9731fb8821d@gmail.com>
From: "=?iso-8859-9?B?VVJaQSAgQef9bGT9Li4=?=" <urzalezzetavi@gmail.com>
To: <thomas -at- parvais.com>
Subject: =?iso-8859-9?B?VVJaQSAgQef9bGT9Li4=?=
Date: Thu, 4 Dec 2008 06:45:28 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=SPLITOR00A_001_21662953D"

This is a multi-part message in MIME format.

------=SPLITOR00A_001_21662953D
Content-Type: text/plain;
charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable
I've maybe to add others filters for body's message

I'll try

Thomas
Interrested by Law & new technologies ?
Intéressé par le droit de l'internet et des nouvelles technologies ?
Visit/Visitez http://www.droit-technologie.org

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: filter to delete mail not in English/French...

Post by ^DooM^ » 2008-12-04 11:11

it is in the From line as well by the looks.

From: "=?iso-8859-9?
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

Post Reply