Not "my" Email address delete rule

General discussion about PopTray. You love it? You hate it? Talk about it here.

Moderators: KY Dave, jojobear99, Rdsok

Post Reply
Jakuza
First Timer
Posts: 2
Joined: Thu Nov 25, 2004 10:29 am

Not "my" Email address delete rule

Post by Jakuza » Thu Nov 25, 2004 10:37 am

How to add delete for my rules, if i get the any email and "to" address not contain my address ?
I use over 3.1 version Poptray and that is not use in the Rules preferences the "NO CONTAINS" option.

Jakuza
First Timer
Posts: 2
Joined: Thu Nov 25, 2004 10:29 am

Post by Jakuza » Thu Nov 25, 2004 2:25 pm

No idea ?

I got now new mail and the "TO" address is the Account@freemail.hu, but this is not my address and i want delete the another named addresses.
How would be know that ?

User avatar
lian
Enthusiast
Posts: 25
Joined: Mon Apr 26, 2004 7:39 pm

Post by lian » Thu Nov 25, 2004 5:15 pm

There is a "not" option in the right (with beta 6).

User avatar
Rdsok
PopTray Family
Posts: 1422
Joined: Fri Mar 19, 2004 11:36 pm
Location: Norman, Oklahoma USA
Contact:

Post by Rdsok » Thu Nov 25, 2004 6:34 pm

I need to give you a warning about using this type of rule. Normally I only Mark as Spam this type of email because of the potential for a false positive which could delete an email you may want. Ok now that you are warned, I'll show you the way to check for emails where your email address isn't in TO: and isn't in the CC: field. (You can't test for the BCC: field, but for the most part these are spam anyway).

You must make a rule that has 2 lines or criteria so this will work best. It will may sure that your email address isn't in TO: AND isn't in CC:

Rule name: Not my email address
Account : myemail@myisp.net (this is so you can have several email accts)
Needed : ALL Rows (this is the AND statement so we test 2 fields)

TO: --> CONTAINS --> myemail@myisp.net NOT (the not is a check mark)
CC: --> CONTAINS --> myemail@myisp.net NOT


Next just select the action you want either Delete (not safe) or Mark as Spam (recommended)

genestoy
Enthusiast
Posts: 33
Joined: Tue Mar 18, 2003 3:38 pm
Location: Phoenix, AZ

Post by genestoy » Mon Jan 03, 2005 2:52 am

Redsok,
How would you go about this rule for two different "to's" coming in on the same account?

main account -- mydomain.com

mail sent to -- me@mydomain.com & mywife@mydomain.com

Thanks for any help - Gene

User avatar
Rdsok
PopTray Family
Posts: 1422
Joined: Fri Mar 19, 2004 11:36 pm
Location: Norman, Oklahoma USA
Contact:

Post by Rdsok » Mon Jan 03, 2005 4:24 am

That is only possible with the beta version. It supports using regular expressions. Again you need one line for To and one for CC and the same warnings still apply. I'm only going to write the To line one...


To->RegExpr->[^(me|mywife)]@mydomain.com

genestoy
Enthusiast
Posts: 33
Joined: Tue Mar 18, 2003 3:38 pm
Location: Phoenix, AZ

Post by genestoy » Mon Jan 03, 2005 4:42 am

Thanks Rdsok but that didn't work and I do have the latest PopTray version. Unless I did something wrong, I copied your "To" & "CC" lines exactly, checked the "NOT" box and saved it and closed PopTray, reopened it and set a test email other than the two I wanted and it came right through and not maked as spam. :|
Gene

User avatar
Rdsok
PopTray Family
Posts: 1422
Joined: Fri Mar 19, 2004 11:36 pm
Location: Norman, Oklahoma USA
Contact:

Post by Rdsok » Mon Jan 03, 2005 5:52 am

Hmm.. all I can say is to double check your spelling etc. I have 4 different addresses in mine and it is catching others. Preview the raw email to see if there is something you aren't seeing normally.

Oh... don't select the NOT box... you end up saying not/not then... the ^ sign means not also. Read the following to understand regular expressions more viewtopic.php?t=1626

User avatar
lemming
Groupie
Posts: 55
Joined: Sun Jan 09, 2005 3:51 am
Location: Malaysia

Correction

Post by lemming » Fri Jan 14, 2005 6:57 pm

rdsok, I don't think that would work because [ ] specifies a class of characters, not a phrase.

Why not seach for:

(me|mywife)@mydomain\.com

then use Poptray's Not option? You can just click the Not checkbox.

note the \. because . is a special character in regex.

-Lemming.

User avatar
Rdsok
PopTray Family
Posts: 1422
Joined: Fri Mar 19, 2004 11:36 pm
Location: Norman, Oklahoma USA
Contact:

Post by Rdsok » Fri Jan 14, 2005 9:53 pm

I had missed typing the \. part.. which is what is in my rule.

The reason for using [] is so there can be other email addresses on the to or cc lines, I'm only looking for email addys that aren't mine that are sent to the same domain as I am on. In other words...

If I get an email addy with

someone@mydomain.com it will be marked as spam

but

someone@differentdomain.com won't

this way my contacts can send emails to multiple addresses and only when the addys from my domain don't match the ones I've excluded (ie me and mywife in the example) do they get marked.

User avatar
lemming
Groupie
Posts: 55
Joined: Sun Jan 09, 2005 3:51 am
Location: Malaysia

beware of square brackets

Post by lemming » Sat Jan 15, 2005 5:33 am

Yowee rdsok, that is a tricky one. I'm still racking my brains to come up with a solution for it. :o

But back to your suggested regex:

[^(me|mywife)]@mydomain.com

Unless my understanding of regex is wrong, [ ] only specifies a class of characters. So your regex does not mean "match anything that is not me or mywife".

Rather, it means "match anything that is not

(@mydomain
m@mydomain
e@mydomain
|@mydomain
m@mydomain
y@mydomain
w@mydomain
i@mydomain
f@mydomain
e@mydomain
)@mydomain "

It might even appear to work with casual testing, but the result is probably not what you intented.

-Lemming
Rdsok wrote:I had missed typing the \. part.. which is what is in my rule.

The reason for using [] is so there can be other email addresses on the to or cc lines, I'm only looking for email addys that aren't mine that are sent to the same domain as I am on. In other words...

If I get an email addy with

someone@mydomain.com it will be marked as spam

but

someone@differentdomain.com won't

this way my contacts can send emails to multiple addresses and only when the addys from my domain don't match the ones I've excluded (ie me and mywife in the example) do they get marked.

User avatar
Rdsok
PopTray Family
Posts: 1422
Joined: Fri Mar 19, 2004 11:36 pm
Location: Norman, Oklahoma USA
Contact:

Post by Rdsok » Mon Jan 17, 2005 6:33 pm

lemming,

Ok, here is another variation, but you need 2 rules with 2 rows each.

Both need this...
Needed -> ALL Rows

Rule1
Row1 TO-->RegExpr-->(me|mywife)@myisp\.net NOT
Row2 TO-->RegExpr-->@myisp\.net

Rule2
Row1 CC-->RegExpr-->(me|mywife)@myisp\.net NOT
Row2 CC-->RegExpr-->@myisp\.net

I have yet to validate this one since I woke up with this solution and have just now started to test but I think its correct. The first line should find all that aren't either me@myisp.net or mywife@myisp.net by negating it with NOT, the second should catch all email addys with @cox.net in them and since it requires that both be true to match any address that isn't on the first row should case these rules to fire. (I think)

The only possible drawback... it will also catch and address with @myisp.net.cc etc also

User avatar
Rdsok
PopTray Family
Posts: 1422
Joined: Fri Mar 19, 2004 11:36 pm
Location: Norman, Oklahoma USA
Contact:

Post by Rdsok » Mon Jan 17, 2005 9:09 pm

I need to work more on this. It will let others through as long as one of the allowed email addresses are on the TO or CC lines.

User avatar
lemming
Groupie
Posts: 55
Joined: Sun Jan 09, 2005 3:51 am
Location: Malaysia

detect same domain spam

Post by lemming » Thu Jan 20, 2005 8:25 am

Hi rdsok et al, I've been thinking about this "detect same domain spam" problem, and here's a possible solution. So assuming you have 2 valid addresses

me@myisp.net
mywife@myisp.net

and you want to detect any other address with the same domain.

You can try this rule with three rows, all using To: | Reg Expr

Needed -> Any Row

Row 1
((me|mywife)@myisp\.net.+(me|mywife)@myisp\.net).+@myisp\.net

Row 2
@myisp\.net.+((me|mywife)@myisp\.net.+(me|mywife)@myisp\.net)

Row 3
(me|mywife)@myisp\.net.+@myisp\.net.+(me|mywife)@myisp\.net

This should match the following:

To: me@myisp.net, fakeaddr1@myisp.net, fakeaddr2@myisp.net, mywife@myisp.net
To: fakeaddr1@myisp.net, fakeaddr2@myisp.net, me@myisp.net, mywife@myisp.net
To: mywife@myisp.net, fakeaddr1@myisp.net, fakeaddr2@myisp.net, me@myisp.net

and any other combination or order thereof. Row 2 and 3 are just variants of Row 1, to catch all possible placements of the fake address.

Unfortunately, I can already see some weaknessness right away:

1. The rule will also match two instances of your address, e.g.

To: mywife@myisp.net, mywife@myisp.net, me@myisp.net
To: me@myisp.net, me@myisp.net, mywife@myisp.net

This is rare, and only happens when the sender clicks on your address twice. Spammers never do this, but your friends and relatives might. Though I suppose you could add another rule which looks out for that and does a PROTECT. ;)

2. the rule only covers To: headers, so it won't catch CC: or BCC: spam, or combination To: and CC: spam.

-Lemming.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests