diff options
author | Eric Wong <e@80x24.org> | 2021-03-04 17:03:16 +0800 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-04 14:29:43 -0400 |
commit | f4b80f19d30845d43c82e49fc071077582b17a74 (patch) | |
tree | e8592d7f1f7565d278bced382360dec64a571530 /t/lei-q-kw.t | |
parent | be5975337332d8ac681f4c2101e2ca436550c90b (diff) | |
download | public-inbox-f4b80f19d30845d43c82e49fc071077582b17a74.tar.gz |
Since this importing of keywords is active even when --augment isn't specified, calling it --import-before seems more appropriate. In the future, this will likely default to adding unseen emails to lei/store, not just updating keywords. Link: https://public-inbox.org/meta/20210303222930.GA18597@dcvr/T/
Diffstat (limited to 't/lei-q-kw.t')
-rw-r--r-- | t/lei-q-kw.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/t/lei-q-kw.t b/t/lei-q-kw.t index babe9749..9daeb5b1 100644 --- a/t/lei-q-kw.t +++ b/t/lei-q-kw.t @@ -23,13 +23,13 @@ lei_ok(qw(q -o), "maildir:$o", qw(m:qp@example.com)); @fn = glob("$o/cur/*:2,S"); is(scalar(@fn), 1, "`seen' flag set on Maildir file"); -# ensure --no-import-augment works +# ensure --no-import-before works my $n = $fn[0]; $n =~ s/,S\z/,RS/; rename($fn[0], $n) or BAIL_OUT "rename $!"; -lei_ok(qw(q --no-import-augment -o), "maildir:$o", +lei_ok(qw(q --no-import-before -o), "maildir:$o", qw(m:bogus-noresults@example.com)); -ok(!glob("$o/cur/*"), '--no-import-augment cleared destination'); +ok(!glob("$o/cur/*"), '--no-import-before cleared destination'); lei_ok(qw(q -o), "maildir:$o", qw(m:qp@example.com)); @fn = glob("$o/cur/*:2,S"); is(scalar(@fn), 1, "`seen' flag (but not `replied') set on Maildir file"); @@ -39,8 +39,8 @@ SKIP: { mkfifo($o, 0600) or skip("mkfifo not supported: $!", 1); # cat(1) since lei() may not execve for FD_CLOEXEC to work my $cat = popen_rd(['cat', $o]); - ok(!lei(qw(q --import-augment bogus -o), "mboxrd:$o"), - '--import-augment fails on non-seekable output'); + ok(!lei(qw(q --import-before bogus -o), "mboxrd:$o"), + '--import-before fails on non-seekable output'); is(do { local $/; <$cat> }, '', 'no output on FIFO'); }; |