trying to store emails in an indexed way