X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FView.pm;h=a78ce31d291ea0859edc5cf75a7e2d253579c3a2;hb=23a4e44bedabe5b8b651346cabc2a870c5377a30;hp=ac44d442b166ba1189772d363612a4c638450891;hpb=fdf9b900b8c35cb4259dbdf56400d44db61e7a9e;p=public-inbox.git diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index ac44d442..a78ce31d 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -10,15 +10,16 @@ use URI::Escape qw/uri_escape_utf8/; use Date::Parse qw/str2time/; use Encode qw/find_encoding/; use Encode::MIME::Header; -use Email::MIME::ContentType qw/parse_content_type/; use PublicInbox::Hval qw/ascii_html/; use PublicInbox::Linkify; use PublicInbox::MID qw/mid_clean id_compress mid2path mid_mime/; +use PublicInbox::MsgIter; +use PublicInbox::Address; require POSIX; use constant INDENT => ' '; - -my $enc_utf8 = find_encoding('UTF-8'); +use constant TCHILD => '` '; +sub th_pfx ($) { $_[0] == 0 ? '' : TCHILD }; # public functions: sub msg_html { @@ -26,14 +27,14 @@ sub msg_html { $footer = defined($footer) ? "\n$footer" : ''; my $hdr = $mime->header_obj; headers_to_html_header($hdr, $ctx) . - multipart_text_as_html($mime) . + multipart_text_as_html($mime, '') . '
' .
-		html_footer($hdr, 1, $ctx) .
+		html_footer($hdr, 1, $ctx, 'R/') .
 		$footer .
 		'
'; } -# /$LISTNAME/$MESSAGE_ID/R/ +# /$INBOX/$MESSAGE_ID/R/ sub msg_reply { my ($ctx, $hdr, $footer) = @_; my $s = $hdr->header('Subject'); @@ -71,13 +72,6 @@ sub msg_reply { '
' . $footer .  '
'; } -sub feed_entry { - my ($class, $mime) = @_; - - # no here for