diff options
author | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2021-08-31 20:23:03 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2021-08-31 20:23:03 +0200 |
commit | e1bafc13858b5c72a7584c52d3d9d6d597d39e6b (patch) | |
tree | b7135f6c08ab43a97ab2e5fce896b470461829bd /templates/webmail | |
parent | 1e1eabaac06721ee0d686d10a6effa9a3450a1ca (diff) |
restructured ipc format
Diffstat (limited to 'templates/webmail')
-rw-r--r-- | templates/webmail/readmail.html.ep | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/templates/webmail/readmail.html.ep b/templates/webmail/readmail.html.ep index 8c2432a..0a9fde0 100644 --- a/templates/webmail/readmail.html.ep +++ b/templates/webmail/readmail.html.ep @@ -12,25 +12,25 @@ <dl id=show-head> <dt> <%= uc l 'subject' %> </dt> - <dd> <%= $msg->{subject} %> </dd> -%= $mail_fmt->('from', $msg->{from}); -%= $mail_fmt->('to', $msg->{to}); -%= $mail_fmt->('cc', $msg->{cc}) if !ref $msg->{cc} || @{ $msg->{cc} }; -%= $mail_fmt->('bcc', $msg->{bcc}) if !ref $msg->{bcc} || @{ $msg->{cc} }; + <dd> <%= $msg->{head}{subject} %> </dd> +%= $mail_fmt->('from', $msg->{head}{from}); +%= $mail_fmt->('to', $msg->{head}{to}); +%= $mail_fmt->('cc', $msg->{head}{cc}) if !ref $msg->{head}{cc} || @{ $msg->{head}{cc} }; +%= $mail_fmt->('bcc', $msg->{head}{bcc}) if !ref $msg->{head}{bcc} || @{ $msg->{head}{bcc} }; <dt> <%= uc l 'date' %> </dt> - <dd> <%= $msg->{date_received} %> </dd> + <dd> <%= $msg->{head}{date} %> </dd> <dt> <%= uc l 'size' %> </dt> <dd> <%= print_sizes10 $msg->{size} %> </dd> <dt> <%= uc l 'content-type' %> </dt> - <dd> <%= $msg->{content_type} %> </dd> + <dd> <%= $msg->{head}{content_type} %> </dd> </dl> % my $body = $msg->{body}; -% if ($msg->{content_type} eq 'multipart/alternative') { +% if ($msg->{head}{content_type} eq 'multipart/alternative') { % for (reverse @$body) { <div class=show-body> -% my $x = mime_render($_->{type}, $_->{val}); +% my $x = mime_render($_->{head}{content_type}, $_->{body}); %== $x; </div> % last if $x; @@ -39,13 +39,13 @@ % elsif (ref $body eq 'HASH') { % for (%$body) { <div class=show-body> -%== mime_render($_->{type}, $_->{val}); +%== mime_render($_->{head}{content_type}, $_->{body}); </div> % } % } % else { <div class=show-body> -%== mime_render($msg->{content_type}, $body); +%== mime_render($msg->{head}{content_type}, $body); </div> % } |