From 21a5cfeb30afef90ca888d425b62651466eed9e3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 19 May 2016 00:31:50 +0000 Subject: switch read-only uses of walk_parts to msg_iter msg_iter lets us know the index of the attachment, allow us to make more sensible labels and in a future commit, hyperlinks to download attachments. --- t/view.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/view.t b/t/view.t index c6b1e7df..a70c52d8 100644 --- a/t/view.t +++ b/t/view.t @@ -72,7 +72,7 @@ EOF ); my $html = PublicInbox::View::msg_html(undef, $mime); - like($html, qr/hi\n-+ part #2 -+\nbye\n/, "multipart split"); + like($html, qr/hi\n.*-- Attachment #2.*\nbye\n/s, "multipart split"); } # multipart email with attached patch @@ -101,7 +101,7 @@ EOF ); my $html = PublicInbox::View::msg_html(undef, $mime); - like($html, qr!see attached patch\n-+ foo\.patch -+\n--- a/file\n!, + like($html, qr!.*Attachment #2: foo\.patch --!, "parts split with filename"); } -- cgit v1.2.3-24-ge0c7