Add custom mailhost class.

The custom mailhost remembers sender and recipient for each mail
separately and provides utility functions to get mails grouped by
sender or recipient.