From 9b4d6cb8d09777ac3157afe0b08969a959e4968a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 30 May 2021 06:33:56 +0000 Subject: lei lcat: allow IMAP folder URLs w/o UIDVALIDITY Requiring UIDVALIDITY on the command-line is of course unreasonable. --- t/lei-import-imap.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 't') diff --git a/t/lei-import-imap.t b/t/lei-import-imap.t index 895b19ff..34fd6cf9 100644 --- a/t/lei-import-imap.t +++ b/t/lei-import-imap.t @@ -13,6 +13,7 @@ my $host_port = tcp_host_port($sock); undef $sock; test_lei({ tmpdir => $tmpdir }, sub { my $url = "imap://$host_port/t.v2.0"; + my $url_orig = $url; lei_ok(qw(q z:1..)); my $out = json_utf8->decode($lei_out); @@ -100,6 +101,8 @@ test_lei({ tmpdir => $tmpdir }, sub { lei_ok qw(lcat -f json), $uid_url; $out = json_utf8->decode($lei_out); is(scalar(@$out), 2, 'got JSON') or diag explain($out); + lei_ok qw(lcat), $url_orig; + is($lei_out, $orig, 'lcat w/o UID works'); }); done_testing; -- cgit v1.2.3-24-ge0c7