Problem with selective downloads....

2002-08-27 Thread David Scarlett

Hi,

I'm trying to set up a selective download filter to block anything
written in Korean (as 90% of my spam is).

I'm using these settings:
Detect by - Entire header
Action - Kill
Detection Method - Match any string as a regular expression

And I've tried a lot of different regexps, such as the following, but
mail with headers that shouldn't have been allow through still get
through.

Content-[Tt]ype:\s*text/html;\s*charset=?(euc-kr|[kK][sS]_[cC]_5601-1987)?
(?i:Content-Type:\s*text/html;\s*charset=?(euc-kr|ks_c_5601-1987)?)
(?i:Content-Type:[\s;/\w]*charset=?(euc-kr|ks_c_5601-1987)?)
euc-kr
ks_c_5601-1987


Thanks in advance,

-- 
David Scarlett
[EMAIL PROTECTED]



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re: Problem with selective downloads....

2002-08-27 Thread Ricardo M. Reyes

DS And I've tried a lot of different regexps, such as the following, but
DS mail with headers that shouldn't have been allow through still get
DS through.

why don't you send the headers of one of the messages so we can look
for the reason?

-- 
Ricardo M. Reyes | [EMAIL PROTECTED]
 | (Mar del Plata - Argentina)
 | Usando The Bat! 1.60c



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re: Problem with selective downloads....

2002-08-27 Thread Daniel Grunberg

Tue, 27 Aug 2002 18:15:30[GMT +1000]   (4:15 AM EDST) David Scarlett
wrote:

 Hi,

 I'm trying to set up a selective download filter to block anything
 written in Korean (as 90% of my spam is).

 I'm using these settings:
 Detect by - Entire header
 Action - Kill
 Detection Method - Match any string as a regular expression

 And I've tried a lot of different regexps, such as the following, but
 mail with headers that shouldn't have been allow through still get
 through.

 Content-[Tt]ype:\s*text/html;\s*charset=?(euc-kr|[kK][sS]_[cC]_5601-1987)?
 (?i:Content-Type:\s*text/html;\s*charset=?(euc-kr|ks_c_5601-1987)?)
 (?i:Content-Type:[\s;/\w]*charset=?(euc-kr|ks_c_5601-1987)?)
 euc-kr
 ks_c_5601-1987


I wrote about a method I use to eliminate messages whose subjects are
written in alphabets that are not the 26 letters A thru Z in
http://www.mail-archive.com/tbudl@thebat.dutaint.com/msg45463.html.

My method doesn't use regular expressions so it's not as subtle as
yours but it's much easier to use.





Using The Bat! v1.60q/Post3 
on Windows 95 4.0 Build  B



-- 

Daniel A. Grunberg   Kensington, Maryland, USA
homepage: www.nyx.net/~dgrunber/



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html