We must keep the contents of {-partial} around when handling
a request to fetch multiple messages.
$self->msg_more(' BODYSTRUCTURE '.fetch_body($eml, 1));
$want->{BODY} and
$self->msg_more(' BODY '.fetch_body($eml));
- if (my $partial = delete $want->{-partial}) {
+ if (my $partial = $want->{-partial}) {
partial_emit($self, $partial, $eml);
}
$self->msg_more(")\r\n");
qr/done_testing;(?:\r\n){1,2}\z/,
'BODY[2.1.2] tail matched');
- $ret = $mic->fetch_hash($uidnext, 'BODY[2.HEADER]') or
+ $ret = $mic->fetch_hash("1:$uidnext", 'BODY[2.HEADER]') or
BAIL_OUT "2.HEADER $@";
like($ret->{$uidnext}->{'BODY[2.HEADER]'},
qr/\ADate: Sat, 18 Apr 2020 22:20:20 /,