From 40ee12e172f44a2e8eed8654f5e7835ce69a894f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 10 Jun 2020 07:04:14 +0000 Subject: imap: fix multi-message partial header fetches We must keep the contents of {-partial} around when handling a request to fetch multiple messages. --- t/imapd.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/imapd.t b/t/imapd.t index 59b95a6b..fcbbdc09 100644 --- a/t/imapd.t +++ b/t/imapd.t @@ -291,7 +291,7 @@ $pi_config->each_inbox(sub { 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 /, -- cgit v1.2.3-24-ge0c7