Spam Filter ISP Support Forum

  New Posts New Posts RSS Feed - How does the Subject: attribute work ?
  FAQ FAQ  Forum Search   Register Register  Login Login

How does the Subject: attribute work ?

 Post Reply Post Reply
Author
Lee View Drop Down
Groupie
Groupie


Joined: 04 February 2005
Location: United States
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lee Quote  Post ReplyReply Direct Link To This Post Topic: How does the Subject: attribute work ?
    Posted: 07 June 2004 at 10:43am

I have been playing with 2.0.1.302 and the subject:  feature in the Keyword fields.

My question is does "Subject:Re-finance" for example search the entire subject field for this word or is it only looking for this to be the first word in the subject field ?

If  I read the docs correctly "The subject of an email can be scanned for keywords by prefixing the keyword list with Subject:" this would appear to imply that it looks at the entire subject field.

When testing this and sending email with specific words I found it will not pick out the subject: keywords if it is in the middle of a sentence.

Do I understand how this works or am I making an assumption that it would find that word any where in the subject field ?

Thanks Lee

Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2004 at 10:31pm

Lee,

You are correct, the filter should detect the word in any part of the subject, but it is not. We're classifying this as a bug and will try to patch it as soon as possible.

Roberto F.
LogSat Software

Back to Top
Lee View Drop Down
Groupie
Groupie


Joined: 04 February 2005
Location: United States
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lee Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2004 at 11:19pm

Roberto, thanks for the reply and glad to know I was not going nutz. Well maybe I am any way. :o)

I try to read the docs and do a lot of trial and error before posting a message so it's nice to know that I was at least on the right track.

Keep up the great work and the product sure has come along way since you first started.

Lee

Back to Top
Lee View Drop Down
Groupie
Groupie


Joined: 04 February 2005
Location: United States
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lee Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2004 at 10:41pm

Roberto, (or any one)

If the Subject: doesn't search the entire subject is there a simple way to use a RegEx to do a search in the subject ?

I know everyone is tried of answering Regex questions but for a lot of us it is easier to decode the German Enigma than to figure out regex's. I have learned assembly, Cold Fusion, Javascript a hundred other applications but Regex is painful. :)

If I wanted to search for "re-finance" or "refinance" what would be a basic regex ?  Would (re.?finance) be a valid expression ?

I should say I have download a couple of expression tools but what works in one doesn't seem to work in the SF regex testing tool.

Thanks Lee

 

Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2004 at 11:30pm

Lee,

Yes, RegEx should help. Can you try something like:

((?-s)subject:.*refinance)

..and we absolutely agree on the German Enigma piece. RegEx nad Perl are the most painful things we've seen....

Roberto F.
LogSat Software

Back to Top
Lee View Drop Down
Groupie
Groupie


Joined: 04 February 2005
Location: United States
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lee Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2004 at 11:44pm

Roberto, obviously you are a smart guy and so your comments really make me feel a whole lot better. I thought it was just me. :)

If I wanted to write a more criptic piece of code I do not think I could come up with something as complicated as regex.

What surprises me is that someone has not designed a reverse regex builder. Some thing you can put standard search criteria into and have it spit out regex syntax.

I have found a lot of regex testing tools but not a real builder. I ran across some thing called Regexbuddy and Expresso. The express is free.

Thanks again, your comments are reassuring.

Lee

Back to Top
Lee View Drop Down
Groupie
Groupie


Joined: 04 February 2005
Location: United States
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lee Quote  Post ReplyReply Direct Link To This Post Posted: 14 June 2004 at 8:30am

Roberto I have been working on this Subject: issue and I am a little confused. (whats new) :)

When you use a regex statement in the Subject: field do you put the entire statement in Parens ?  Your example showed the word subject: in parens as well.

So if I wanted to find the word 'weightloss' in the subject would I use

1. Subject:(weightloss) or would it be (Subject:weightloss) ??

I have been using the first example and maybe this is one of my problems.

I poured over the docs before asking because really did want to figure this out without bugging you.

Lee

Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2004 at 12:04am

Hi Lee,

We try to keep a standard with RegEx by identifying a search string to be RegEx if surrounded by parenthesis. So the correct syntax, if you wish to perform a RegEx search, would be the second:

(Subject:weightloss)

Please note that you may want to add the (?-s) parameter to make the search case-insensitive, as follows:

((?-s)Subject:.weightloss)

Roberto F.
LogSat Software

Back to Top
pcmatt View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote pcmatt Quote  Post ReplyReply Direct Link To This Post Posted: 26 June 2004 at 8:46am

This is a significant bug.  Any ideas of when a fix will be available?

Thanks.

Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2004 at 9:51pm

Matt, I was not able to follow the thread. Can you please explain what bug you refer to?

Roberto F.
LogSat Software

Back to Top
Matt View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote Matt Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2004 at 8:25am

Roberto,

Yours was the second post on this thread:

‘Re: How does the Subject: attribute work ?’

  Posted by:   LogSat Software Support (‘LogSat Software Support’)
  Posted on:   Monday, 7th June 2004

 

Lee,

You are correct, the filter should detect the word in any part of the subject, but it is not. We're classifying this as a bug and will try to patch it as soon as possible.

Roberto F.
LogSat Software

 

You'll note there are other threads relating to the same frustrations about keyword filtering of the subject: not working properly as the keyword filtering of message body does. I'm certain that you have just been busy and have overlooked this bug as promised on June 7.

Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2004 at 12:11am

Matt,

Thanks for pointing the correct thread, I got lost and could not find it in the list...

There's a workaround for the bug by using RegEx. For example the following:

((?-s)subject:.*refinance)

will search for the word refinance anywhere in the subject. We've been concentrating on implementing the new SPF (Sender Policy Framework) filter and adding antivirus support, so have set aside a public fix for this issue (which contrary to what it may seem is very complex to fix due to the innerworkings of the subject filter...) while the enhancements are completed.

Roberto F.
LogSat Software

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.297 seconds.