Superfecta - Fix for non-working SPAM interception

I found some threads here in the forums where people complained about the SPAM interception not working in Superfecta, regardless of the value they enter as threshold value. I had the same problem, so I took a look at the code.

This is NOT an issue of the Superfecta module itself. This issue is in the used source sripts!

Many SPAM detection scripts are just setting this in case SPAM is detected:

$this->spam = true;

What is also needed, is this right before or behind this line:

$this->spam_count = intval($score);		// Set Spam count (Which reflects to the Threshold for the SPAM interception)

$score is the SPAM score the service did return. In case you are getting just a “SPAM or NO SPAM” from the provider, set this i.e. to a fixed value (i.e. 5).

Once the Threshold configured for the interception is at least this value, the interception destination works perfectly.

Here is my working Tellows script (the original one delivered with FBPX17 is broken):

PS: I can’t comment the original threads with these issues as they are all closed. So I’m adding this as a FAQ, hoping that someone with the same issue finds this.

@girishmani Not sure who can look through the sources and fix this - is there a Github repo where I can make a PR? Maybe you’ll also use my working Tellows Module (GitHub above) and fixes for DeTeMedien and DasTelefonbuch in the next update.

BR,
Marco

Hi @JaCoTec ,

There’s a public github repo for superfecta module. Please use this for raising superfecta module PR’s.

Thanks

Thank you, PR created :smiling_face_with_sunglasses:

1 Like