summaryrefslogtreecommitdiff
path: root/templates/headers/_display_headers.html.ep
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-02-26 21:36:27 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-02-26 21:36:27 +0100
commit2abf462ca10c4ac8c4f815e608cad31851e966e3 (patch)
treeed18c4a4039a5972edc0b81ed79c9d57480f8e70 /templates/headers/_display_headers.html.ep
parentd0ffe11bd365b68d4da252b39d06d99f75d8cacb (diff)
Specified the interface for qmauth
Changes to configuration Added qmauth version written in Python Slight changes to pagination
Diffstat (limited to 'templates/headers/_display_headers.html.ep')
-rw-r--r--templates/headers/_display_headers.html.ep15
1 files changed, 8 insertions, 7 deletions
diff --git a/templates/headers/_display_headers.html.ep b/templates/headers/_display_headers.html.ep
index 42f927c..4dd36a1 100644
--- a/templates/headers/_display_headers.html.ep
+++ b/templates/headers/_display_headers.html.ep
@@ -66,9 +66,9 @@
% foreach my $msgnum ($first_item .. $last_item) {
% my $msg = $msgs->[$msgnum - $first_item];
- %= tag tr => (class => $msg->{new} ? 'new-mail' : '') => (id => $msg->{mid}) => begin
+ %= tag tr => (class => $msg->{unread} ? 'new-mail' : '') => (id => $msg->{message_handle}) => begin
<td class="hide-small">
- %= $msgnum
+ %= $msgnum + 1
</td>
<td>
@@ -76,7 +76,7 @@
<!--
<div class="pure-u-1-4">
- %# ucfirst($msg->{is_multipart} ? l('yes') : l('no'));
+ %# ucfirst($msg->{head}{mime}{content_maintype} eq 'multipart' ? l('yes') : l('no'));
</div>
-->
@@ -86,22 +86,23 @@
</div>
<div class="pure-u-16-24 pure-u-md-6-24">
- %= $msg->{head}{from}[0]{name} || $msg->{head}{from}[0]{email};
+ <%= $msg->{head}{sender}[0]{display_name} || $msg->{head}{sender}[0]{address} ||
+ $msg->{head}{from}[0]{display_name} || $msg->{head}{from}[0]{address}; %>
</div>
<div class="pure-u-20-24 pure-u-md-12-24">
- %= link_to $msg->{head}{subject} || '_' => read => {id => $msg->{mid}}
+ %= link_to $msg->{head}{subject} || '_' => read => {id => $msg->{message_handle}}
</div>
<div class="pure-u-4-24 pure-u-md-2-24">
- %= print_sizes10 $msg->{size};
+ %= print_sizes10 $msg->{byte_size};
</div>
</div>
</td>
<td>
- %= check_box mail => $msg->{mid} => (form => 'move-mail')
+ %= check_box mail => $msg->{message_handle} => (form => 'move-mail')
</td>
% end