user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 2/2] view: support non-existent Subjects for permalink titles
  2016-06-21 10:35  6% [PATCH 0/2] Subject-less message support Eric Wong
@ 2016-06-21 10:35  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2016-06-21 10:35 UTC (permalink / raw)
  To: meta

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 .= "(<a\nhref=\"raw\">raw</a>)\n";

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/2] Subject-less message support
@ 2016-06-21 10:35  6% Eric Wong
  2016-06-21 10:35  7% ` [PATCH 2/2] view: support non-existent Subjects for permalink titles Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2016-06-21 10:35 UTC (permalink / raw)
  To: meta

Eric Wong (2):
      search: support Subject:-less messages
      view: support non-existent Subjects for permalink titles

 lib/PublicInbox/Search.pm | 11 +++++++----
 lib/PublicInbox/View.pm   |  1 +
 2 files changed, 8 insertions(+), 4 deletions(-)

^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-06-21 10:35  6% [PATCH 0/2] Subject-less message support Eric Wong
2016-06-21 10:35  7% ` [PATCH 2/2] view: support non-existent Subjects for permalink titles Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).