Re: Personal rule matching ToCc

2006-02-07 Thread hamann . w
Hi, I was experimenting with something similar, although as a client of a big ISP I need full match rather than domain match. My experience so far: some mail that does not have me in To or Cc is definitely spam, or worse. The other part is legit mail, mostly from mailinglists or other mail for

Re: Personal rule matching ToCc

2006-02-07 Thread Loren Wilton
> > header __TO_DOMAIN_NETToCc =~ /[EMAIL PROTECTED]/i > > > > But the above rule would match "@domain.net" as well as > > "@domain.net.in" > > You have not tried it, have you? The \b assures that it will not match > on @domain.net.in. Well, no, it will. The dot is a wordbreak, and \b is onl

Re: Personal rule matching ToCc

2006-02-07 Thread Matt Kettler
jdow wrote: > From: "Ramprasad" <[EMAIL PROTECTED]> > >> Hi, >> I want to write a personal domain-wise rule The rule I am using now is >> header __TO_DOMAIN_NETToCc =~ /[EMAIL PROTECTED]/i >> >> But the above rule would match "@domain.net" as well as >> "@domain.net.in" > > You have not trie

Re: Personal rule matching ToCc

2006-02-07 Thread Ramprasad
On Tue, 2006-02-07 at 00:15 -0800, jdow wrote: > From: "Ramprasad" <[EMAIL PROTECTED]> > > > Hi, > > I want to write a personal domain-wise rule > > The rule I am using now is > > > > header __TO_DOMAIN_NETToCc =~ /[EMAIL PROTECTED]/i > > > > But the above rule would match "@domain.net"

Re: Personal rule matching ToCc

2006-02-07 Thread jdow
From: "Ramprasad" <[EMAIL PROTECTED]> Hi, I want to write a personal domain-wise rule The rule I am using now is header __TO_DOMAIN_NETToCc =~ /[EMAIL PROTECTED]/i But the above rule would match "@domain.net" as well as "@domain.net.in" You have not tried it, have you? The \b assur

Personal rule matching ToCc

2006-02-06 Thread Ramprasad
Hi, I want to write a personal domain-wise rule The rule I am using now is header __TO_DOMAIN_NETToCc =~ /[EMAIL PROTECTED]/i But the above rule would match "@domain.net" as well as "@domain.net.in" Which is the best way to match only @domain.net and not @domain.net.in Thanks Ram

Re: Personal rule matching ToCc

2006-02-04 Thread mouss
Matt Kettler a écrit : > Ramprasad wrote: > >>Hi, >> I want to write a personal rule to match recipients of a particular >>domain >>The rule I am using now is >> >> header __TO_DOMAIN_NETToCc =~ /[EMAIL PROTECTED]/i >> >>B

Re: Personal rule matching ToCc

2006-02-04 Thread Matt Kettler
Ramprasad wrote: > Hi, >I want to write a personal rule to match recipients of a particular > domain > The rule I am using now is > > header __TO_DOMAIN_NETToCc =~ /[EMAIL PROTECTED]/i > > But the above rule would match "@domain.net" as well as >

Personal rule matching ToCc

2006-02-03 Thread Ramprasad
Hi, I want to write a personal rule to match recipients of a particular domain The rule I am using now is header __TO_DOMAIN_NETToCc =~ /[EMAIL PROTECTED]/i But the above rule would match "@domain.net" as well as "@domain.net.in" Which is the best way to match only

RE: Personal Rule

2005-09-30 Thread Herb Martin
Bowie > Hmmm Maybe I could capture an optional match for a > quote and then use that match later to pair the quote (or lack thereof). I may attempt that later today. Good idea but perhaps easier (maybe even faster) would be to just write an extra META rule and 'or' them. -- Herb Martin

RE: Personal Rule

2005-09-30 Thread Bowie Bailey
From: Herb Martin [mailto:[EMAIL PROTECTED] > > Bowie Bailey wrote: > > > ...and yet I have never seen one of these "fake" real names > > > without the quotes, probably because these are always in this > > > format: > > > > > > "Firstname Lastname" <[EMAIL PROTECTED]> > > > > > > Removing the

RE: Personal Rule

2005-09-30 Thread Herb Martin
Bowie Bailey wrote: > > ...and yet I have never seen one of these "fake" real names without > > the quotes, probably because these are always in this format: > > > > "Firstname Lastname" <[EMAIL PROTECTED]> > > > > Removing the quotes will however simplify the whole thing though. > > I was

RE: Personal Rule

2005-09-30 Thread Bowie Bailey
From: Herb Martin [mailto:[EMAIL PROTECTED] > > Bowie > > That will match a name in quotes, but the real name is not > > required to be quoted if there are no spaces or odd characters. > > > > To: Herb <[EMAIL PROTECTED]> > > > > ... is a perfectly good header and will not match your patter

RE: Personal Rule

2005-09-30 Thread Bowie Bailey
From: Bowie Bailey > > After some experimentation, I came up with this simpler rule. It > should match if your domain shows up in the TO or CC headers and it is > matched to a realname that does not include "mike" or "michael". > > Try it and see what happens > > header __TOCC_MYEMAIL ToCc =

RE: Personal Rule

2005-09-29 Thread Bowie Bailey
From: Mike Spamassassin [mailto:[EMAIL PROTECTED] > > From: Mike Spamassassin [mailto:[EMAIL PROTECTED] > >> > >> This is working pretty well so far. > >> Thanks for you help with this. > >> > >> I would like to enhance it to cater for the situations where I am > >> not in the "To" address (e.g. I

RE: Personal Rule

2005-09-29 Thread Herb Martin
Bowie > That will match a name in quotes, but the real name is not > required to be quoted if there are no spaces or odd characters. > > To: Herb <[EMAIL PROTECTED]> > > ... is a perfectly good header and will not match your pattern. > > It will also not match a missing real name field, whi

RE: Personal Rule

2005-09-29 Thread Bowie Bailey
From: Herb Martin [mailto:[EMAIL PROTECTED] > > Try this (with your names of course): > > header __HM_USER To =~ > /"[^"]*"\s*<(herb|martin)[EMAIL PROTECTED]@[EMAIL PROTECTED]>/i > header __HM_REALNAME To =~ /"[^"]*(herb|hm|martin)[^"]*"\s* meta HM_NAME_MISMATCH __HM_USER &&

RE: Personal Rule

2005-09-29 Thread Herb Martin
Try this (with your names of course): header __HM_USER To =~ /"[^"]*"\s*<(herb|martin)[EMAIL PROTECTED]@[EMAIL PROTECTED]>/i header __HM_REALNAME To =~ /"[^"]*(herb|hm|martin)[^"]*"\s*

RE: Personal Rule

2005-09-29 Thread Mike Spamassassin
I used the second option and had a couple of problems. First problem was quickly solved; double underscores needed to stop the header rules adding to the score. Second problem is that the "blank" name is scoring the same as if it were the wrong name. > From: Mike Spamassassin [mailto:[EMAIL PROTEC

RE: Personal Rule

2005-09-27 Thread Bowie Bailey
From: Mike Spamassassin [mailto:[EMAIL PROTECTED] > > This is working pretty well so far. > Thanks for you help with this. > > I would like to enhance it to cater for the situations where I am > not in the "To" address (e.g. I am in CC: to Bcc: or the "mailing > list" situation. > > How would I

Re: Personal Rule

2005-09-27 Thread Loren Wilton
> I would like to enhance it to cater for the situations where I am not in > the "To" address (e.g. I am in CC: to Bcc: or the "mailing list" > situation. BCC you aren't going to get, by definition. It isn't there to get. To check in both to and cc, use ToCc instead of To as the header to test.

RE: Personal Rule

2005-09-27 Thread Mike Spamassassin
This is working pretty well so far. Thanks for you help with this. I would like to enhance it to cater for the situations where I am not in the "To" address (e.g. I am in CC: to Bcc: or the "mailing list" situation. How would I do a test of the form: If To: email address contains ernstoff.net th

Re: Personal Rule

2005-09-22 Thread Mike Spamassassin
So far so good. I have given this rule a score of 1. 4 is classified as spam and 2 is filtered into a MaybeSpam folder. I have implemented the rule to allow blank/Mike/Michael > From: "Mike Spamassassin" <[EMAIL PROTECTED]> > >>I have seen a rule to identify that the "From" address does not have

Re: Personal Rule

2005-09-21 Thread jdow
From: "Bowie Bailey" <[EMAIL PROTECTED]> From: Mike Spamassassin [mailto:[EMAIL PROTECTED] I have seen a rule to identify that the "From" address does not have a "real name", which I presume is the description (i.e. in my case "Mike Spamassassin"). I would like to have a rule which identifies

Re: Personal Rule

2005-09-21 Thread jdow
From: "Mike Spamassassin" <[EMAIL PROTECTED]> I have seen a rule to identify that the "From" address does not have a "real name", which I presume is the description (i.e. in my case "Mike Spamassassin"). I would like to have a rule which identifies emails where the "To" address does not contain

RE: Personal Rule

2005-09-21 Thread Herb Martin
> idea. There > > are > lots of newsletters and mailing lists (including this one) > that do not put your name in the "To" field. > > > > If you want to try it, you can use a rule such as this: > > > > header NOT_MY_NAME To:name !~ /\b(?:Mike|Michael)\b/i > > score NOT_MY_NAME 0.5 > >

Re: Personal Rule

2005-09-21 Thread Fred
Mike Spamassassin wrote: >> header NOT_MY_NAME To:name !~ /\b(?:Mike|Michael)\b/i >> score NOT_MY_NAME 0.5 >> describe NOT_MY_NAME To does not contain Mike or Michael Ok you want to be able to allow blank names try this rule: header NOT_MY_NAME To:name !~ /\b(?:Mi(?:ke|chael))\b/i [i

RE: Personal Rule

2005-09-21 Thread Bowie Bailey
From: Mike Spamassassin [mailto:[EMAIL PROTECTED] > > > From: Mike Spamassassin [mailto:[EMAIL PROTECTED] > >> > >> I have seen a rule to identify that the "From" address does not > >> have a "real name", which I presume is the description (i.e. in > >> my case "Mike Spamassassin"). I would like

RE: Personal Rule

2005-09-21 Thread Mike Spamassassin
Thanks for your help. I will try this out, and see how it goes. Presumably it could be amended to check for Mike, Michael or blank to avoid the problem you mentioned. I will look up the regular expression syntax and see if I can suss it out. > From: Mike Spamassassin [mailto:[EMAIL PROTECTED] >> >

RE: Personal Rule

2005-09-21 Thread Bowie Bailey
From: Mike Spamassassin [mailto:[EMAIL PROTECTED] > > I have seen a rule to identify that the "From" address does not have > a "real name", which I presume is the description (i.e. in my case > "Mike Spamassassin"). I would like to have a rule which identifies > emails where the "To" address does

Personal Rule

2005-09-21 Thread Mike Spamassassin
I have seen a rule to identify that the "From" address does not have a "real name", which I presume is the description (i.e. in my case "Mike Spamassassin"). I would like to have a rule which identifies emails where the "To" address does not contain either "Mike" or "Michael". Has anyone created a