about summary refs log tree commit homepage
path: root/lib/PublicInbox/IMAP.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-07 20:37:37 +0000
committerEric Wong <e@yhbt.net>2020-07-10 11:27:08 +0000
commit42a6fc1794099cb2585d3c290e42a20d5ef56b89 (patch)
treef68ac0dac92a78d8cc21ee5e22ed3d387f82ed9e /lib/PublicInbox/IMAP.pm
parent1bfff88a34210d5e944424c3a96e4d60979ace4d (diff)
downloadpublic-inbox-42a6fc1794099cb2585d3c290e42a20d5ef56b89.tar.gz
Non-slice mailboxes never have messages themselves,
so we must not assume a message exists when sending
untagged EXISTS messages.
Diffstat (limited to 'lib/PublicInbox/IMAP.pm')
-rw-r--r--lib/PublicInbox/IMAP.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm
index d8c898f4..8ab4b1e7 100644
--- a/lib/PublicInbox/IMAP.pm
+++ b/lib/PublicInbox/IMAP.pm
@@ -246,6 +246,7 @@ sub uo2m_extend ($$;$) {
         my $base = $self->{uid_base};
         ++$beg;
         my $uids = $self->{ibx}->over->uid_range($beg, $base + UID_SLICE);
+        return $uo2m if !scalar(@$uids);
         my @tmp; # [$UID_OFFSET] => $MSN
         my $write_method = $_[2] // 'msg_more';
         if (ref($uo2m)) {