Very basic prototype for generating the mail.json