about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-21 10:35:37 +0000
committerEric Wong <e@80x24.org>2016-06-21 10:36:25 +0000
commit2550582bfa95c8c610f5bdea5a2b2482d27005aa (patch)
tree0ee8e78a03352af2e53fe1aeee252e5011f4672e /lib
parent36f62781880dd38b94011f0d351fcf7b0aa2916c (diff)
downloadpublic-inbox-2550582bfa95c8c610f5bdea5a2b2482d27005aa.tar.gz
Showing "(no subject)" seems like a common fallback for
messages without a Subject header.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index b6fa2a3d..8e81391e 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -353,6 +353,7 @@ sub _msg_html_prepare {
                 $rv .= "$h: $v\n";
 
         }
+        $title[0] ||= '(no subject)';
         $ctx->{-title_html} = join(' - ', @title);
         $rv .= 'Message-ID: &lt;' . $mid->as_html . '&gt; ';
         $rv .= "(<a\nhref=\"raw\">raw</a>)\n";