Added mail-viewing functionality.