From e06797ae541b8fcb65030531d854184e7ba2c70d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Apr 2016 03:04:11 +0000 Subject: www: stop generating /$MESSAGE_ID/f/ links Quote-folding can be detrimental as it fails to hide the real problem of over-quoting. Over-quoting wastes bandwidth and space for all readers, not just WWW readers of the public-inbox. So hopefully removing quote-folding support from the WWW interface can shame those repliers into quoting only relevant portions of what they reply to. --- t/feed.t | 4 +--- t/view.t | 12 ------------ 2 files changed, 1 insertion(+), 15 deletions(-) (limited to 't') diff --git a/t/feed.t b/t/feed.t index 73b7d0bb..2096b73e 100644 --- a/t/feed.t +++ b/t/feed.t @@ -76,9 +76,7 @@ EOF "id is set to default"); } - unlike($feed, qr/drop me/, "long quoted text dropped"); - like($feed, qr!/\d%40example\.com/f/#q!, - "/f/ url generated for long quoted text"); + like($feed, qr/drop me/, "long quoted text kept"); like($feed, qr/inline me here/, "short quoted text kept"); like($feed, qr/keep me/, "unquoted text saved"); } diff --git a/t/view.t b/t/view.t index 568ab303..2da741a8 100644 --- a/t/view.t +++ b/t/view.t @@ -49,18 +49,6 @@ EOF like($html, qr/> keep this inline/, "short quoted text is inline"); like($html, qr/]+><\/a>> Long and wordy/, "long quoted text is anchored"); - - # short page - my $pfx = "../hello%40example.com/f/"; - $mime = Email::MIME->new($s); - my $short = PublicInbox::View::msg_html(undef, $mime, $pfx); - like($short, qr!