php/json webservice for MailroomRewrite