Wsgetmail duplicate tickets o365

Hi,
We are using RT 5.0.1
We recently had to implement wsgetmail to comply with Office 365 changes in authentication.
All is well now.
I have the cronjob set for every 10 minutes

here is my wsgetmail.json file
cat wsgetmail-support.json
{
“client_id”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“tenant_id”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“secret”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“global_access”: 1,
“username”: “support@xxxxxx.com”,
“user_password”:“xxxxxxxxxx”,
“folder”: “Inbox”,
“command”: “/opt/rt5/bin/rt-mailgate”,
“command_args”: “/opt/rt5/bin/rt-mailgate --url https://irf.dexco.com --no-verify-ssl --queue 1.General --action correspond”,
“command_timeout”: 30,
“action_on_fetched”: “mark_as_read”
}

Not every ticket gets duplicated but it is frequent.

Any suggestions?
Thank you,