diff options
author | Eric Wong <e@80x24.org> | 2021-06-13 18:12:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-06-14 20:00:48 +0000 |
commit | 45d516cc3defdffbf3da07a7fc5e8d534b5a8d90 (patch) | |
tree | fe4391ed98d8ad2aaffdfbf8ab810e816ff5bb32 /t | |
parent | 499aea505f58be23a125f4fe2e3af654d42eea9f (diff) | |
download | public-inbox-45d516cc3defdffbf3da07a7fc5e8d534b5a8d90.tar.gz |
Since users can't set IMAP flags in read-only IMAP folders, we won't clobber local flags when importing from IMAP. This also enables the local_blob fallback used for lei-index to be used for index deduplication.
Diffstat (limited to 't')
-rw-r--r-- | t/lei-index.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/lei-index.t b/t/lei-index.t index c142e79c..eeda5196 100644 --- a/t/lei-index.t +++ b/t/lei-index.t @@ -80,6 +80,19 @@ test_lei({ tmpdir => $tmpdir }, sub { lei_ok('index', "nntp://$nntp_host_port/t.v2"); lei_ok('index', "imap://$imap_host_port/t.v2.0"); is_deeply([xqx($all_obj)], \@objs, 'no new objects from NNTP+IMAP'); + + lei_ok qw(q m:multipart-html-sucks@11); + $res_a = json_utf8->decode($lei_out)->[0]; + is_deeply($res_a->{'kw'}, ['seen'], + 'keywords still set after NNTP + IMAP import'); + + # ensure import works after lms->local_blob fallback in lei/store + lei_ok('import', 't/mda-mime.eml'); + lei_ok qw(q m:multipart-html-sucks@11); + $res_b = json_utf8->decode($lei_out)->[0]; + my $t = xqx(['git', "--git-dir=$store_path/ALL.git", + qw(cat-file -t), $res_b->{blob}]); + is($t, "blob\n", 'got blob'); }); done_testing; |