Print Page | Close Window

Regex and attachments.. again :)

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=3317
Printed Date: 25 June 2025 at 8:01am


Topic: Regex and attachments.. again :)
Posted By: Lee
Subject: Regex and attachments.. again :)
Date Posted: 24 March 2004 at 1:28pm

I am sorry to ask this question because I can't but think it has been asked many times before. But I searched the forum and did not find an answer.

I admit I am new to Regex and have been trying to teach myself the syntax so I can built my own search strings. But could someone give me a jump start on the proper syntax to block attachments ?

I would like to create individual matches for different types of extensions. In other words I want to explicitly define matches for *.zip, *.exe, *.scr, *.exe...

Can someone give me a few working examples of working syntax for this type of regex traps ?

By the way I did find a pretty good tutorial site called http://www.regular-expressions.info" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://www.regular-expressions.info" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://www.regular-expressions.info .

Thanks and again apologize if  this has been answer before.

Lee




Replies:
Posted By: Desperado
Date Posted: 24 March 2004 at 11:24pm

Actually, for simple extension matches, RegEx's are not required. A simple list will work as below /// or am I misunderstanding the question?

 

*.pif

*.scr

etc

Dan S.



Posted By: Lee
Date Posted: 24 March 2004 at 11:39pm

Dan,

Actually it is my fault for not specifying enough information.

Unfortunetly I am using 1.2.0.212 which does not have the extenstion blocking capability. :(  So I was under the impression that I could use regex in the Keyword field to block specific file extentions.

Lee



Posted By: Desperado
Date Posted: 24 March 2004 at 11:43pm

Lee,

If that is possible, I do not know how to do it.  I believe there were significant code changes to allow for the attachment blocking.  IF, however, you got lucky, you may be able to dig it out of the "Content" lines but I have not had real reliable luck there.

Dan S.



Posted By: Lee
Date Posted: 25 March 2004 at 11:07am

Ok Dan then I misunderstood the other threads about regex and attachments. I assumed they were trying to do this using the keywords because the versions that were being used did not have the Attachment blocking.

Oh well. Bummer. :(

Thanks for taking the time to "splain it too me" (said in my best Ricky Ricardo voice) hehe

Lee



Posted By: Desperado
Date Posted: 25 March 2004 at 3:37pm

As in "Lucy .... you have some splaining to do!"

Dan S.




Print Page | Close Window