Insertion order of emails is preserved, closes #737.