Factored out functions to make email corpora