about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-13 23:28:53 +0000
committerEric Wong <e@80x24.org>2015-09-13 23:28:53 +0000
commit97bf47dbea11455a69ea952cfbe1ecc44c4a3272 (patch)
treeab90c63d0dfaccdd0faa74be7dcd2c9034126cad /lib
parent3cab495544d85ce77804ffa78c705f242bf9125d (diff)
downloadpublic-inbox-97bf47dbea11455a69ea952cfbe1ecc44c4a3272.tar.gz
Email::MIME will call the header_obj each time anyways, avoid
the extra method lookups and hit header_obj directly for the
header lookup.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 6cb340b0..2cda691c 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -410,7 +410,7 @@ sub headers_to_html_header {
         my $mid = $header_obj->header('Message-ID');
         $mid = PublicInbox::Hval->new_msgid($mid);
         foreach my $h (qw(From To Cc Subject Date)) {
-                my $v = $mime->header($h);
+                my $v = $header_obj->header($h);
                 defined($v) && ($v ne '') or next;
                 $v = PublicInbox::Hval->new_oneline($v);