Useful RE for removing many spammy type posts.

General NewsBin and Usenet related discussions. Make recommendations for additional specific discussion groups.

Moderators: Quade, dexter

Useful RE for removing many spammy type posts.

Postby Quade » Fri Oct 11, 2024 9:44 am

^\[[0-9]{1,3}/[0-9]{1,3}\]\s[-]\s["][0-9a-zA-Z]{10}?|^\[[0-9]{1,3}/[0-9]{1,3}\]\s["][0-9a-zA-Z]{10}?|[[0-9a-f]{8}[-][0-9a-f]{4}[-][0-9a-f]{4}[-]


I use this RE in the filter drop down. It selects much of the spammy posts we see contaminating groups.

Code: Select all
[1/6] "MRgrKVE8RFPDYL0w0h4lvL.7z"
[1/6] "2VrBEu8vEhLqdjKBhklJHB.7z"
[1/7] "PW96nm4CoL2V0e0iCVtjut.7z"
[1/7] "qZyzG8Cc941MBAHb9iyv7u.7z"


Stuff like this.

I thought about just filtering out these files altogether but occasionally it'll hit a real file

After I apply this filter I "Ctrl-A" then "Shift Delete" to delete them from the header database. I do a quick scroll to make sure I haven't caught any real files.

You could probably add this filter to the "global" filter profile as a "subject reject" if you want to hide these files by default.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44978
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Useful RE for removing many spammy type posts.

Postby JayPea » Sun Oct 13, 2024 3:51 am

Thanks, Quade. Building effective Regular Expression patterns has always made my brain ache so I appreciate that being done for me. Added to Global.
JayPea
Seasoned User
Seasoned User
 
Posts: 105
Joined: Tue Dec 12, 2006 2:48 pm

Registered Newsbin User since: 12/11/06


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests