From: Eric Wong <e@80x24.org>
To: spew@80x24.org
Subject: [PATCH] lei q save-test
Date: Mon, 2 Oct 2023 14:58:18 +0000 [thread overview]
Message-ID: <20231002145818.2665587-1-e@80x24.org> (raw)
---
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;
reply other threads:[~2023-10-02 14:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231002145818.2665587-1-e@80x24.org \
--to=e@80x24.org \
--cc=spew@80x24.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).