* [PATCH] lei q save-test
@ 2023-10-02 14:58 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-10-02 14:58 UTC (permalink / raw)
To: spew
---
t/lei-q-save.t | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/t/lei-q-save.t b/t/lei-q-save.t
index 53311696..937dc9dd 100644
--- a/t/lei-q-save.t
+++ b/t/lei-q-save.t
@@ -305,5 +305,26 @@ EOM
is(scalar(@new), 2, 'got new message');
is_xdeeply([grep { $_ eq $orig[0] } @new], \@orig,
'original message preserved on up w/ threads');
+
+ # incremental non-thread w/ keywords
+ $d = "$home/kw-no-thread";
+ lei_ok qw(q --no-external s:reply1 -o), $d;
+ @orig = glob("$d/*/*");
+ is(scalar(@orig), 1, 'one result so far');
+ lei_ok [ qw(import -F eml +kw:answered) ], undef,
+ { %$lei_opt, 0 => \<<'EOM' };
+Date: Sun, 02 Oct 2023 00:00:01 +0000
+From: <x@example.com>
+In-Reply-To: <reply1@example.com>
+Message-ID: <reply1@0.example.com>
+Subject: Re: reply1
+
+EOM
+ lei_ok qw(up), $d;
+ @new = glob("$d/*/*");
+ diag explain([ \@orig, \@new ]);
+ # sleep 1;
+ # lei_ok qw(q -f text --no-external dt:2023-10-01..);
+ # diag $lei_out;
});
done_testing;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-02 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-02 14:58 [PATCH] lei q save-test Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).