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 2A1301F424 for ; Mon, 23 Apr 2018 04:16:54 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/3] view: wrap long To:/Cc: lists Date: Mon, 23 Apr 2018 04:16:51 +0000 Message-Id: <20180423041654.4152-1-e@80x24.org> List-Id: While browsing my private LKML archives, I noticed some Cc: lists were very long and difficult to read (and no fault of the sending MUA or sender). Unfortunately, Email::MIME/Email::Simple does not expose the raw header (with original line breaks) through a public interface, so wrapping needs to be performed ourselves. I think this wrapping implementation is more clean than what my MUA (mutt) does, even, as it won't split across names from emails (unless the combination is too long). A couple of cleanups along the way, too. Eric Wong (3): view: untangle loop when showing message headers view: wrap To: and Cc: headers in HTML display view: drop redundant References: display code lib/PublicInbox/View.pm | 119 +++++++++++++++++++++++++--------------- t/view.t | 21 +++++++ 2 files changed, 96 insertions(+), 44 deletions(-) -- EW