Initial Fedora packaging for lei

2021-11-02 Thread Konstantin Ryabitsev
Hi, all: I did some initial work to package lei for Fedora 34 and 35 (out today). The lei parts should be ready to use, though I'll continue to work on the server parts (only needed if you're running httpd/nntpd/imapd daemons). For now, you'll need to enable my copr repository to use it:

Re: [PATCH] doc: lei-q: document SEARCH TERMS prefixes

2021-11-02 Thread Kyle Meyer
Eric Wong writes: > +=for comment > +AUTO-GENERATED-SEARCH-TERMS-BEGIN Looks great, thanks. By the way, this takes care of a to-do in this file: =for comment TODO: Give common prefixes, or at least a description/reference.

[PATCH] doc: lei-q: document SEARCH TERMS prefixes

2021-11-02 Thread Eric Wong
The new Documentation/common.perl file will be used for all manpages in the future. --- Documentation/common.perl | 65 +++ Documentation/include.mk | 3 ++ Documentation/lei-q.pod | 51 +- MANIFEST | 1 +

[PATCH] doc: txt2pre: add references to newish manpages

2021-11-02 Thread Eric Wong
--- Documentation/txt2pre | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/txt2pre b/Documentation/txt2pre index fb07579a7f86..f6b2ad966b69 100755 --- a/Documentation/txt2pre +++ b/Documentation/txt2pre @@ -16,9 +16,11 @@ for (qw[lei(1) lei-blob(1)

Re: [PATCH 2/3] lei: simplify common LeiInput users with ->wq1_start

2021-11-02 Thread Eric Wong
Eric Wong wrote: > This method replaces a common worker of starting workers, s/common worker/common pattern/ :x -- unsubscribe: one-click, see List-Unsubscribe header archive: https://public-inbox.org/meta/

[PATCH 2/3] lei: simplify common LeiInput users with ->wq1_start

2021-11-02 Thread Eric Wong
This method replaces a common worker of starting workers, preparing internal auth ops, and asynchronous waiting of command completion. It also adds missing LeiAuth support for rediff and rm which rarely need auth. --- lib/PublicInbox/LEI.pm| 15 ++-

[PATCH 3/3] lei : stdin implies `-F eml'

2021-11-02 Thread Eric Wong
These commands are usually run on a single message, so saving the user the trouble of typing `-F eml' on the command-line seems reasonable. I don't think commands like "index" and "import" will be too useful for single messages, though. --- lib/PublicInbox/LeiRediff.pm | 2 +-

[PATCH 0/3] lei: more coherent input handling

2021-11-02 Thread Eric Wong
Hopefully everything makes more sense to new users. Eric Wong (3): lei mail-diff: do not default to 'eml' lei: simplify common LeiInput users with ->wq1_start lei : stdin implies `-F eml' lib/PublicInbox/LEI.pm| 15 ++- lib/PublicInbox/LeiExportKw.pm|

[PATCH 1/3] lei mail-diff: do not default to 'eml'

2021-11-02 Thread Eric Wong
In retrospect, this doesn't make sense, since it needs at least two messages to diff. So go about "normal" input rules and require users to specify the format. --- lib/PublicInbox/LeiMailDiff.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/PublicInbox/LeiMailDiff.pm

[PATCH] t/lei-refresh-mail-sync: speed up test on FreeBSD 12

2021-11-02 Thread Eric Wong
And improve reliability while we're at it. It seems closing a TCP listen socket on FreeBSD 12.2 doesn't cause connect()-ing clients to fail. This happens regardless of whether a socket is IPv4 or IPv6 This non-failure was causing tests to timeout slowly on the client side instead of failing

[PATCH] init: respect umask when creating description

2021-11-02 Thread Eric Wong
I noticed a description for a new inbox had st_mode=0600. --- script/public-inbox-init | 12 ++-- t/init.t | 8 +++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/script/public-inbox-init b/script/public-inbox-init index 1223d47e..5de45781 100755 ---