Markus,

 

The particular article that you pointed to is regarding preceding and not trailing spaces. To do preceding spaces is much more complicated since Scott would have to implement some sort of delimiter which then gives the problem of how would you look for the delimiters themselves.

 

They way that I understand the filter lines is DECLUDE will take the first non-blank character (after the CONTAINS etc) and then use everything to the CRLF as the text for matching, which could include anything including spaces and other special characters.

 

Scott can you please confirm or correct me on the last statement that I made.

 

 

     Goran Jovanovic

     The LAN Shoppe

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guhl, Markus (LDS)
Sent: Tuesday, July 06, 2004 2:27 AM
To: [EMAIL PROTECTED]
Subject: AW: [Declude.JunkMail] Filter with a traling space question

 

hi,

 

as far as i remember a filterline like

 

BODY     5     CONTAINS      HGH

 

would trigger everything with hgh in it:

 

blablabla hgh blablabla

 

blablablahghblablabla

 

blablablahgh blablabla

 

blablabla hghblablabla

 

regardless if there is a space behind hgh in the filter or not

 

there was a discusion on leading (or following) spaces some time ago (last thing that i remember is a messages from scott http://www.mail-archive.com/[EMAIL PROTECTED]/msg17411.html )

 

mfg
i.a.
gez.  markus guhl

***********************************
lds nrw
dez. 235
tel.: 0211 9449 2578
fax.: 0211 9449 8344
mailto:[EMAIL PROTECTED]
***********************************

 

 

 

 

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von Goran Jovanovic
Gesendet am: Dienstag, 6. Juli 2004 05:07
An: [EMAIL PROTECTED]
Betreff: [Declude.JunkMail] Filter with a traling space question

 

Hi all,

 

Happy Canada Day and July 4 to all Canadians and Americans respectively.

 

I have an e-mail fail a filter test that I was being really careful with. The test is Kami’s Viagra test. In the log I get

 

07/05/2004 10:57:50 Q6c682c190080ebdc Filter FILTER-VIAGRA-RX: Not skipping E-mail due to current weight of 0.

07/05/2004 10:57:50 Q6c682c190080ebdc Filter: Set max weight to 60.

07/05/2004 10:57:51 Q6c682c190080ebdc Triggered CONTAINS filter FILTER-VIAGRA-RX on HGH  [weight->5; hgh SmtznGNrlFJahEpSe0JKcyEpUh].

 

And in the Viagra filter I have the following at the end of the filter and I have removed the original line that did not have a trailing space

 

# Need a space at the end to prevent problems

BODY     5     CONTAINS      HGH

# End of adding a space to filter lines

 

Now you will notice that the BODY line really does have a space behind the HGH

 

The e-mail that failed was an HTML mail with lots of embedded pictures etc.

 

It appears that the portion of the e-mail that the “HGH “ failed is on some mime (or something) encoding. Now it seems wrong to me that there would be a space in the encoding and somehow something happened and it somehow added a space?? I am not really sure what I think may be the problem but I guess my doubt comes from the fact that I believe that a space would not be present in the encoding.

 

So my questions:

 

Did it really fail on hgh with a trailing space?

Can you have a space in the encoding?

If the above is true then do you have any idea on how common a space in the encoding would be?

 

Thanx

 

     Goran Jovanovic

     The LAN Shoppe

<<image001.gif>>

Reply via email to