WIP add mail agent implementation and refact
Update extension in composer