about summary refs log tree commit homepage
path: root/lib/PublicInbox/IMAP.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-10 07:04:14 +0000
committerEric Wong <e@yhbt.net>2020-06-13 07:55:45 +0000
commit40ee12e172f44a2e8eed8654f5e7835ce69a894f (patch)
treeb42588fe4a1bac21899504c85ed216a7f5b77c8e /lib/PublicInbox/IMAP.pm
parent499af0138412496c2a0c84035d5d398fac178624 (diff)
downloadpublic-inbox-40ee12e172f44a2e8eed8654f5e7835ce69a894f.tar.gz
We must keep the contents of {-partial} around when handling
a request to fetch multiple messages.
Diffstat (limited to 'lib/PublicInbox/IMAP.pm')
-rw-r--r--lib/PublicInbox/IMAP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm
index 4292c564..fffd611b 100644
--- a/lib/PublicInbox/IMAP.pm
+++ b/lib/PublicInbox/IMAP.pm
@@ -390,7 +390,7 @@ sub uid_fetch_cb { # called by git->cat_async
                 $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");