Smokedetector: What does Body Summary do?

Created on 26 Jan 2019  路  3Comments  路  Source: Charcoal-SE/SmokeDetector

I was trying to understand Smokey's internal workings for something I was working on, and I came across an option named body_summary, present in the Rule class.

I first came across this findspam.py, where multiple rules set this option to true (example). I was able to trace it's origin back to bodyfetcher.py, but after a lot of searching, I haven't yet understood what exactly this option does, and when a post's body is a "Body Summary".

Could someone please explain what's happening here, and what exactly this is used for?

question

Most helpful comment

Body summary is what we get from the websocket. I don't have an example to hand, but the realtime websocket that we get the feed from sends site, ID, and body summary, among other things. It's the first 300 or so characters of the post. As stuff comes in from the socket, we scan title and body summary; if they look like spam, we queue a full check immediately, otherwise it gets put in the bodyfetcher queue to get fully checked later.

All 3 comments

Body summary is what we get from the websocket. I don't have an example to hand, but the realtime websocket that we get the feed from sends site, ID, and body summary, among other things. It's the first 300 or so characters of the post. As stuff comes in from the socket, we scan title and body summary; if they look like spam, we queue a full check immediately, otherwise it gets put in the bodyfetcher queue to get fully checked later.

Yep. The check is a bit hidden, but it's there.

Ok, thanks @ArtOfCode- @Undo1. That helps me a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iBug picture iBug  路  8Comments

tripleee picture tripleee  路  3Comments

user12986714 picture user12986714  路  7Comments

gparyani picture gparyani  路  4Comments

GrumpyCrouton picture GrumpyCrouton  路  6Comments