Email (record): Architecture of the Mediator Head module