Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[France] SIA request workflow (script) #265

Closed
hayvan96 opened this issue Feb 2, 2025 · 2 comments
Closed

[France] SIA request workflow (script) #265

hayvan96 opened this issue Feb 2, 2025 · 2 comments

Comments

@hayvan96
Copy link

hayvan96 commented Feb 2, 2025

The regex/workflow

{
    "id": 1,
    "desc": "SIA France",
    "actions": [
        {
            "type": "ParseIncomingNumber",
            "numberFilter": "^(?:33:0)?\d{9}$"
        },
        {
            "type": "HttpDownload",
            "method": 0,
            "url": "https://www.doisjerepondre.fr/numero-de-telephone/0{domestic}",
            "header": "",
            "body": ""
        },
        {
            "type": "ParseQueryResult",
            "negativeSig": "\\dx négative",
            "negativeFlags": 5,
            "positiveSig": "",
            "positiveFlags": 5,
            "categorySig": "NéGATIVE ([A-Z]+)",
            "categoryFlags": 1029
        },
        {
            "type": "FilterSpamResult"
        },
        {
            "type": "ImportToSpamDB",
            "importReason": "Manually"
        }
    ],
    "enabled": true
}
@PocketFR
Copy link

PocketFR commented Feb 3, 2025

Enhanced version supports international format

{
	"id": 1,
	"desc": "Doisjerepondre",
	"actions": [
	  {
		"type": "ParseIncomingNumber",
		"numberFilter": ".*"
	  },
	  {
		"type": "HttpDownload",
		"method": 0,
		"url": "https://www.doisjerepondre.fr/numero-de-telephone/+{cc}{domestic}",
		"header": "",
		"body": ""
	  },
	  {
		"type": "ParseQueryResult",
		"negativeSig": "<div class=\"score negative\">",
		"negativeFlags": 5,
		"positiveSig": "<div class=\"score positive\">",
		"positiveFlags": 5,
		"categorySig": "",
		"categoryFlags": 5
	  },
	  {
		"type": "FilterSpamResult"
	  },
	  {
		"type": "ImportToSpamDB",
		"importReason": "Manually"
	  }
	],
	"enabled": true
}

@aj3423
Copy link
Owner

aj3423 commented Feb 9, 2025

Thanks guys.

@aj3423 aj3423 closed this as completed Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants