keyword blacklist - ORF Forums

keyword blacklist RSS Back to forum

1

Hi guys. Help me plz to cut spam mails using keyword blacklist in email body. The only thing i can find in this different emails from different mailboxes is phone number. But spammer change it all the time like 640 05 09; 6400509; 640:05:09 etc. So I want to filter all mails with this number in any part of mail. What do I have to past to field to catch these numbers with any symbols between? I havn’t find any useful info on forum and in help. =(

by Dmitry more than 10 years ago
2

@Dmitry: Question is, what do you exactly mean by "any symbols"? Everything but numbers, or anything but numbers and letters, or anything (including numbers and letters)?

by Krisztian Fekete (Vamsoft) more than 10 years ago
(in reply to this post)

3

Everything but numbers

by Dmitry more than 10 years ago
4

to be honest thay changed strategy now it looks like (Ч95) 6 40: 05:0 9 any sugestions?

by Dmitry more than 10 years ago
5

all the time different domains, e-mails, often google mail servers, sometimes local providers mail services. Some domains with SPF records.

by Dmitry more than 10 years ago
6

and another common word in all leters russian word "тур" All other texts are different. And this is the site http://www.magput.ru even phone number is not listed on the site.

by Dmitry more than 10 years ago
7

@Dmitry: For the number variations (anything between the numbers but digits), here is the regex:

.*6[^0-9]?4[^0-9]?0[^0-9]?0[^0-9]?5[^0-9]?0[^0-9]?9.*

Not sure if "тур" occurs before or after the number, if before, use:

.*\x{0442}\x{0443}\x{0440}.*6[^0-9]?4[^0-9]?0[^0-9]?0[^0-9]?5[^0-9]?0[^0-9]?9.*

If after:

.*6[^0-9]?4[^0-9]?0[^0-9]?0[^0-9]?5[^0-9]?0[^0-9]?9.*\x{0442}\x{0443}\x{0440}.*

by Krisztian Fekete (Vamsoft) more than 10 years ago
(in reply to this post)

8

@Krisztian Fekete (Vamsoft): Another version for the newest pattern you mentioned:

.*\x{0442}\x{0443}\x{0440}.*6[^0-9]{0,2}4[^0-9]{0,2}0[^0-9]{0,2}0[^0-9]{0,2}5[^0-9]{0,2}0[^0-9]{0,2}9.*

This matches also if there are two characters between the numbers (e.g., a whitespace and : ) as in your second example (6 40: 05:0 9).

by Krisztian Fekete (Vamsoft) more than 10 years ago
(in reply to this post)

9

Sorry but I’ve used Keyword blacklist/Filter properties/email body
Filter expression/Regular expression (Perl compatible)
Put .*6[^0-9]?4[^0-9]?0[^0-9]?0[^0-9]?5[^0-9]?0[^0-9]?9.* to “Expression field” and 640,05, 09 to the “Test text” the result “Does not match”. Did I do something wrong?

by Dmitry more than 10 years ago
10

O! I've got the idea thank you.

by Dmitry more than 10 years ago

New comment

Fill in the form below to add a new comment. All fields are required. If you are a registered user on our site, please sign in first.

It will not be published.
hnp1 | hnp2