From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 2DAE52018B for ; Tue, 21 Jun 2016 10:35:46 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/2] view: support non-existent Subjects for permalink titles Date: Tue, 21 Jun 2016 10:35:37 +0000 Message-Id: <20160621103537.10422-3-e@80x24.org> In-Reply-To: <20160621103537.10422-1-e@80x24.org> References: <20160621103537.10422-1-e@80x24.org> List-Id: Showing "(no subject)" seems like a common fallback for messages without a Subject header. --- lib/PublicInbox/View.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index b6fa2a3..8e81391 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: <' . $mid->as_html . '> '; $rv .= "(raw)\n";