diff options
author | Eric Wong <e@80x24.org> | 2020-10-16 06:59:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-10-16 17:15:12 +0000 |
commit | c0174089f48d081bb84ce776d5b6ee0bf19a4fa1 (patch) | |
tree | 53d7ae62a5ebec06fff7c87a9c0e4c55ff827306 /lib/PublicInbox/IMAPD.pm | |
parent | 0438ee2b1a5fbeb587ee62aa3e267ec09d281bd9 (diff) | |
download | public-inbox-c0174089f48d081bb84ce776d5b6ee0bf19a4fa1.tar.gz |
This will make it easier to deal with ExtSearchIdx, which won't have msgmap.
Diffstat (limited to 'lib/PublicInbox/IMAPD.pm')
-rw-r--r-- | lib/PublicInbox/IMAPD.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/IMAPD.pm b/lib/PublicInbox/IMAPD.pm index 3c211ee1..bb705136 100644 --- a/lib/PublicInbox/IMAPD.pm +++ b/lib/PublicInbox/IMAPD.pm @@ -38,13 +38,13 @@ sub imapd_refresh_ibx { # pi_config->each_inbox cb } $ibx->over or return; $ibx->{over} = undef; - my $mm = $ibx->mm or return; - $ibx->{mm} = undef; # RFC 3501 2.3.1.1 - "A good UIDVALIDITY value to use in # this case is a 32-bit representation of the creation # date/time of the mailbox" - defined($ibx->{uidvalidity} = $mm->created_at) or return; + eval { $ibx->uidvalidity }; + my $mm = delete($ibx->{mm}) or return; + defined($ibx->{uidvalidity}) or return; PublicInbox::IMAP::ensure_slices_exist($imapd, $ibx, $mm->max // 0); # preload to avoid fragmentation: |