diff options
author | Eric Wong <e@yhbt.net> | 2020-05-07 21:05:45 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-05-09 08:59:10 +0000 |
commit | 453dee4881a9c764b09d33f3a827879f2cd3669d (patch) | |
tree | e1c5d2fcb1b5e4a7571e9eaf59d6ce6660f3e200 /lib/PublicInbox/WwwAttach.pm | |
parent | 8d1b87f498ea47bb752ea24900372df192d322fb (diff) | |
download | public-inbox-453dee4881a9c764b09d33f3a827879f2cd3669d.tar.gz |
This doesn't make any difference for most multipart messages (or any single part messages). However, this starts having space savings when parts start nesting. It also slightly simplifies callers.
Diffstat (limited to 'lib/PublicInbox/WwwAttach.pm')
-rw-r--r-- | lib/PublicInbox/WwwAttach.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/WwwAttach.pm b/lib/PublicInbox/WwwAttach.pm index 774b38ae..b1009907 100644 --- a/lib/PublicInbox/WwwAttach.pm +++ b/lib/PublicInbox/WwwAttach.pm @@ -11,9 +11,9 @@ use PublicInbox::MIME; use PublicInbox::MsgIter; sub get_attach_i { # ->each_part callback - my ($part, $depth, @idx) = @{$_[0]}; + my ($part, $depth, $idx) = @{$_[0]}; my $res = $_[1]; - return if join('.', @idx) ne $res->[3]; # $idx + return if $idx ne $res->[3]; # [0-9]+(?:\.[0-9]+)+ $res->[0] = 200; my $ct = $part->content_type; $ct = parse_content_type($ct) if $ct; |