How i create an agent to detach emails attachment and then move them to trash?