From 961690bae47c90a4a6960952587c6f4463fb4b19 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 5 Apr 2022 08:18:24 +0000 Subject: lei: always open mail_sync.sqlite3 R/W This will make transparently upgrading from 1.7.0 -> 1.8.x easier. Only a single user has access to mail_sync.sqlite3, and R/W at the kernel-level is required for WAL, anyways. --- lib/PublicInbox/NetReader.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/NetReader.pm') diff --git a/lib/PublicInbox/NetReader.pm b/lib/PublicInbox/NetReader.pm index 032b4fda..c1af03a3 100644 --- a/lib/PublicInbox/NetReader.pm +++ b/lib/PublicInbox/NetReader.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2021 all contributors +# Copyright (C) all contributors # License: AGPL-3.0+ # common reader code for IMAP and NNTP (and maybe JMAP) @@ -481,7 +481,7 @@ sub itrk_last ($$;$$) { my ($self, $uri, $r_uidval, $mic) = @_; return (undef, undef, $r_uidval) unless $self->{incremental}; my ($itrk, $l_uid, $l_uidval); - if (defined(my $lms = $self->{-lms_ro})) { # LeiMailSync or 0 + if (defined(my $lms = $self->{-lms_rw})) { # LeiMailSync or 0 $uri->uidvalidity($r_uidval) if defined $r_uidval; if ($mic) { my $auth = $mic->Authmechanism // ''; -- cgit v1.2.3-24-ge0c7