% layout 'mainlayout';
% my $mail_fmt = begin
% my ($category, $value) = @_;
Read Mail
% my $body = $msg->{body};
% if ($msg->{head}{content_type} eq 'multipart/alternative') {
% for (reverse @$body) {
% my $x = mime_render($_->{head}{content_type}, $_->{body});
%== $x;
% last if $x;
% }
% }
% elsif (ref $body eq 'HASH') {
% for (%$body) {
%== mime_render($_->{head}{content_type}, $_->{body});
% }
% }
% else {
%== mime_render($msg->{head}{content_type}, $body);
% }