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 | |
parent | 1e1eabaac06721ee0d686d10a6effa9a3450a1ca (diff) |
restructured ipc format
Diffstat (limited to 'templates')
-rw-r--r-- | templates/headers/_display_headers.html.ep | 6 | ||||
-rw-r--r-- | templates/webmail/readmail.html.ep | 22 |
2 files changed, 14 insertions, 14 deletions
diff --git a/templates/headers/_display_headers.html.ep b/templates/headers/_display_headers.html.ep index da04873..d3f9457 100644 --- a/templates/headers/_display_headers.html.ep +++ b/templates/headers/_display_headers.html.ep @@ -71,14 +71,14 @@ %= ucfirst($msg->{is_multipart} ? l('yes') : l('no')); </td> <td> - % my $date = parse_iso_date $msg->{date_received}; + % my $date = parse_iso_date $msg->{head}{date}; %= join('/', $date->{mday}, $date->{month}, $date->{year}) . " $date->{hour}:$date->{min}"; </td> <td> - %= $msg->{from}->[0]->{name} || $msg->{from}->[0]->{email}; + %= $msg->{head}{from}[0]{name} || $msg->{head}{from}[0]{email}; </td> <td> - <a href="<%= url_for('read', id => $msg->{mid}) %>"> <%= $msg->{subject} || '_' %> </a> + <a href="<%= url_for('read', id => $msg->{mid}) %>"> <%= $msg->{head}{subject} || '_' %> </a> </td> <td> %= print_sizes10 $msg->{size}; 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> % } |