]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwAttach.pm
msg_iter: pass $idx as a scalar, not array
[public-inbox.git] / lib / PublicInbox / WwwAttach.pm
index 774b38ae26998f3785ba8fdb136cafcbeb5f2ed5..b10099077e1b2591a736b3483d49c7fb83dbf519 100644 (file)
@@ -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;