write mail index