blocking emails

POP Peeper: Tech support, suggestions, discussion, etc.
Post Reply
silky
Posts: 9
Joined: Wed Jul 13, 2016 12:58 pm

blocking emails

Post by silky »

How can I block all emails that that have .pw at the end of email address.They are always junk mail
Last edited by spc3rd on Wed Jul 13, 2016 1:26 pm, edited 1 time in total.
Reason: Topic moved from Email to POP Peeper sub-forum for better exposure.
User avatar
spc3rd
Moderator
Posts: 853
Joined: Tue Aug 30, 2011 5:45 pm

Re: blocking emails

Post 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,
Image
Global Moderator
silky
Posts: 9
Joined: Wed Jul 13, 2016 12:58 pm

Re: blocking emails

Post by silky »

I am using pop peeper pro 4.2
User avatar
Jeff
Admin / Developer
Posts: 9234
Joined: Sat Sep 08, 2001 9:46 pm

Re: blocking emails

Post 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'
silky
Posts: 9
Joined: Wed Jul 13, 2016 12:58 pm

Re: blocking emails

Post by silky »

Thanks for all your help
Post Reply