diff options
author | Eric Wong <e@80x24.org> | 2021-09-19 17:51:57 -0500 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-19 22:52:45 +0000 |
commit | 41c3eed65eb03256b0916cfdbf43723e070a633a (patch) | |
tree | 9cd607c386a42482b8a707969b238e0cb58eee94 /t | |
parent | a1ab37f1c67ad06faf03186361263adf25bc1efe (diff) | |
download | public-inbox-41c3eed65eb03256b0916cfdbf43723e070a633a.tar.gz |
NNTP article numbers are stored separately from folder names in mail_sync.sqlite3. Recovering from this is optional, worse case is wasting bandwidth refetching some messages. To (optionally) recover from this, use: lei forget-mail-sync $URL_WITH_ARTNUMS Some articles will be refetched on the next import, but duplicate data won't be indexed in Xapian.
Diffstat (limited to 't')
-rw-r--r-- | t/lei-import-nntp.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/lei-import-nntp.t b/t/lei-import-nntp.t index 1eb41e0e..df0594d4 100644 --- a/t/lei-import-nntp.t +++ b/t/lei-import-nntp.t @@ -49,12 +49,16 @@ test_lei({ tmpdir => $tmpdir }, sub { my $end = $high - 1; lei_ok qw(import), "$url/$high"; + lei_ok 'ls-mail-sync'; + is($lei_out, "$url\n", 'article number not stored as folder'); lei_ok qw(q z:0..); my $one = json_utf8->decode($lei_out); pop @$one; # trailing null is(scalar(@$one), 1, 'only 1 result'); local $ENV{HOME} = "$tmpdir/h3"; lei_ok qw(import), "$url/$low-$end"; + lei_ok 'ls-mail-sync'; + is($lei_out, "$url\n", 'article range not stored as folder'); lei_ok qw(q z:0..); my $start = json_utf8->decode($lei_out); pop @$start; # trailing null is(scalar(@$start), scalar(map { $_ } ($low..$end)), |