Page 1 of 1

blocking emails

Posted: Wed Jul 13, 2016 1:05 pm
by silky
How can I block all emails that that have .pw at the end of email address.They are always junk mail

Re: blocking emails

Posted: Wed Jul 13, 2016 1:36 pm
by spc3rd
Welcome to the Esumsoft Forums, silky!

While awaiting further review of your post by other Esumsoft Team members, please post back with the following information:

1. Which version of POP Peeper are you using?

Best regards,

Re: blocking emails

Posted: Wed Jul 13, 2016 3:32 pm
by silky
I am using pop peeper pro 4.2

Re: blocking emails

Posted: Wed Jul 13, 2016 6:45 pm
by Jeff
There are 2 ways to do this, depending on your definition of "block" and how extreme you want to be:

1) The simplest method would be to right-click on such a message and select:
AntiJunk -> Blacklist -> Blacklist Domain
(and it will show you in the menu what domain it would blacklist)
The result of this is that PP would tend to think that the message is spam but, by default, POP Peeper does not delete these messages so you would still need to delete them (either manually or by using the "delete junk" button)

2) The other, more extreme method, would be to automatically delete such emails. Again, there are different ways to do this, but the most direct method would be to create a rule. Copy the following:

Code: Select all

[Rules]
Email TLDs_Action = 2 11 0 "" "" 0 16777215 ""
Email TLDs_Rule00 = 0 0 3 "+FromAddress" 0 ".+\.pw$"
Email TLDs_Status = 
Then, from POP Peeper's main menu:
Tools / AntiJunk -> Main interface
Click on "Rules" on the left list
Press the "Add" button in the toolbar
From the menu, select Edit / Paste Rule Set
Save the rule

This rule will match any email where the "from" email address ends in ".pw" and will perform the following actions: delete, mark read, ignore

ignore is kind of redundant with mark read, but you should generally always "mark read" when you "delete" otherwise PP will report a new message that it's going to delete.

And if you're curious about the regex and maybe want to add others to this same rule:
.+\.pw$

The first '.' means "any character"
+ means match the preceding "any character" 1 more more times
\.pw is the '.pw' you're requesting (the \ is necessary to escape the '.', otherwise '.' means "any character" but we want the literal '.')
$ means end of the string

so this rule would match 'spam@example.pw' but not 'spam@example.apw' or 'spam@example.pwa'

Re: blocking emails

Posted: Thu Jul 14, 2016 7:07 pm
by silky
Thanks for all your help