lib/PublicInbox/View.pm | 6 +++---
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 6f79f601d777d2c9e9f895acc48b6c365f47d904..305722168a9ad2d132733db92cdc4bdc944e04f0 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -427,10 +427,10 @@ $sfn = 'a.txt';
} else {
$sfn = 'a.bin';
}
- my @ret = qq($nl[-- Attachment #$idx: );
+ my $ret = qq($nl[-- Attachment #$idx: );
my $ts = "Type: $ct, Size: $size bytes";
- push(@ret, ($desc eq '') ? "$ts --]" : "$desc --]\n[-- $ts --]");
- join('', @ret, "\n");
+ $ret .= ($desc eq '') ? "$ts --]" : "$desc --]\n[-- $ts --]";
+ $ret .= "\n";
}
sub add_text_body {