* [PATCH 3/4] test_common: io_modes: always support read/write
2021-02-25 10:11 5% [PATCH 0/4] lei: fleshing out some existing features Eric Wong
@ 2021-02-25 10:11 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-02-25 10:11 UTC (permalink / raw)
To: meta
This avoids warnings when redirecting STDIN to a scalarref
via run_script().
---
lib/PublicInbox/TestCommon.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index fc32b57f..af1b2e4f 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -155,8 +155,8 @@ sub key2script ($) {
'blib/script/'.$key;
}
-my @io_mode = ([ *STDIN{IO}, '<&' ], [ *STDOUT{IO}, '>&' ],
- [ *STDERR{IO}, '>&' ]);
+my @io_mode = ([ *STDIN{IO}, '+<&' ], [ *STDOUT{IO}, '+>&' ],
+ [ *STDERR{IO}, '+>&' ]);
sub _prepare_redirects ($) {
my ($fhref) = @_;
^ permalink raw reply related [relevance 7%]
* [PATCH 0/4] lei: fleshing out some existing features
@ 2021-02-25 10:11 5% Eric Wong
2021-02-25 10:11 7% ` [PATCH 3/4] test_common: io_modes: always support read/write Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-02-25 10:11 UTC (permalink / raw)
To: meta
Managed to get more stuff done while still pondering keyword
storage with read-only externals(*)
1/4 fleshes out convert, which should be feature-complete as far
as currently supported inputs and outputs (no MH, JMAP, POP3,
MMDF, yet)
2/4 represents a major incompatibility in replacing --format/-f with
--in-format/-F in "lei import" for consistency with "lei convert".
Anyways, this is pre-release software and I discouraged "-f" anyways;
so hopefully nobody's scripts are broken :x
4/4 is another one of the things I've found myself wanting
for a while (it wasn't in mairix).
(*) https://public-inbox.org/meta/20210224204950.GA2076@dcvr/
Eric Wong (4):
lei convert: support IMAP output and "-F eml" inputs
lei import: use --in-format/-F for consistency
test_common: io_modes: always support read/write
lei q: -tt marks direct hits as "flagged"
Documentation/lei-import.pod | 2 +-
Documentation/lei-q.pod | 8 ++++++
MANIFEST | 1 +
lib/PublicInbox/LEI.pm | 12 ++++-----
lib/PublicInbox/LeiConvert.pm | 51 ++++++++++++++++++++++-------------
lib/PublicInbox/LeiImport.pm | 8 +++---
lib/PublicInbox/LeiXSearch.pm | 21 ++++++++++++---
lib/PublicInbox/NetWriter.pm | 3 ++-
lib/PublicInbox/TestCommon.pm | 4 +--
t/lei-convert.t | 15 +++++++++++
t/lei-import.t | 12 ++++-----
t/lei-q-thread.t | 47 ++++++++++++++++++++++++++++++++
t/lei_to_mail.t | 2 +-
xt/net_writer-imap.t | 4 +++
14 files changed, 146 insertions(+), 44 deletions(-)
create mode 100644 t/lei-q-thread.t
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-02-25 10:11 5% [PATCH 0/4] lei: fleshing out some existing features Eric Wong
2021-02-25 10:11 7% ` [PATCH 3/4] test_common: io_modes: always support read/write Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
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).