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
> > 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
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
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"
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
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
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
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
>
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
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
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
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
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
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 =
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
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
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 &&
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*
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
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
> 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.
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
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
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
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
> 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
> >
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
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
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]
>>
>
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
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
31 matches
Mail list logo