@Keith Stevenson
That's our email autologger script - i've been running it for over week without any issues.....strange why it's started behaving in this way.
The API commands i use are:
$mc->invoke("apps/com.hornbill.servicemanager/Incidents", "logIncident");
$mc->invoke("apps/com.hornbill.servicemanager/Requests", "update");
$mc->invoke("apps/com.hornbill.servicemanager/RelationshipEntities", "add");
$mc->invoke("mail", "deleteMessage");
I'll try and grab the parameters i use in LogIncident...