Re: [PATCH] lei: support reading MH for convert+import+index

2023-12-16 Thread Eric Wong
Konstantin Ryabitsev wrote: > Nice, so eventually we should be able to specify the following instead of > faking out a maildir? > > watch=mh:/var/spool/mlmmj/list.name/archive Yes, that's the plan. > > inotify|EVFILT_VNODE watches aren't supported, yet, either. > > In the case of mlmmj it's

Re: [PATCH] lei: support reading MH for convert+import+index

2023-12-16 Thread Konstantin Ryabitsev
On Sat, Dec 16, 2023 at 01:09:32PM +, Eric Wong wrote: > The MH format is widely-supported and used by various MUAs such > as mutt and sylpheed, and a MH-like format is used by mlmmj for > archives, as well. Locking implementations for writes are > inconsistent, so this commit doesn't support

[PATCH] lei: support reading MH for convert+import+index

2023-12-16 Thread Eric Wong
The MH format is widely-supported and used by various MUAs such as mutt and sylpheed, and a MH-like format is used by mlmmj for archives, as well. Locking implementations for writes are inconsistent, so this commit doesn't support writes, yet. inotify|EVFILT_VNODE watches aren't supported, yet,

[PATCH 2/2] lei: use ->child_error API properly

2023-12-16 Thread Eric Wong
I noticed this bug while developing another feature and tests were getting SIGHUP (since SIGHUP == 1 on most systems). --- lib/PublicInbox/LeiExportKw.pm | 4 ++-- lib/PublicInbox/LeiMirror.pm | 2 +- lib/PublicInbox/LeiToMail.pm | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)

[PATCH 1/2] lei index: support +L: labels

2023-12-16 Thread Eric Wong
`lei index' should be capable of indexing the the same way `lei import' does, but without the indexing. I only noticed this omission while developing a new feature. --- lib/PublicInbox/LEI.pm | 2 +- t/lei-index.t | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 0/2] lei bugfixes

2023-12-16 Thread Eric Wong
Eric Wong (2): lei index: support +L: labels lei: use ->child_error API properly lib/PublicInbox/LEI.pm | 2 +- lib/PublicInbox/LeiExportKw.pm | 4 ++-- lib/PublicInbox/LeiMirror.pm | 2 +- lib/PublicInbox/LeiToMail.pm | 4 ++-- t/lei-index.t | 3 ++- 5 files