It's inappropriate to store sync information without
UIDVALIDITY, so add an assertion to prevent it.
use v5.10.1;
use DBI;
use PublicInbox::ContentHash qw(git_sha);
+use Carp ();
sub dbh_new {
my ($self, $rw) = @_;
EOM
return $fid;
}
+ } elsif ($rw && $folder =~ m!\Aimaps?://!i) {
+ require PublicInbox::URIimap;
+ PublicInbox::URIimap->new($folder)->uidvalidity //
+ Carp::croak("BUG: $folder has no UIDVALIDITY");
}
return unless $rw;