user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: Eric Wong <>
To: Leah Neukirchen <>
Subject: Re: lei spawns mua before results are written
Date: Mon, 15 Nov 2021 00:31:36 +0000	[thread overview]
Message-ID: <20211115003136.GA10976@dcvr> (raw)
In-Reply-To: <>

Leah Neukirchen <> wrote:
> I tried building some tooling to use lei with mblaze and stumbled upon
> the fact that lei seems to spawn the mua before all mails are written
> into the -o maildir; at least, adding a "sleep 1" in front of my
> script fixes it.  Any way to wait for it? I guess I could just run lei
> and my mua scripts afterwards.

Yes, it's intentional to allow Maildir and IMAP to allow MUAs to
work progressively while loading similar to how less(1) and
typical web browsers work.  It's not really practical to do for
mbox* because of locking and potential incompatible locking

You should be able to use --alert=COMMAND to run any arbitrary
command(s) (including an MUA, as an alternative to --mua).

I'm not sure if adding a --no-early-mua switch is needed.  My
gut reaction is having yet another switch to document increases
the learning curve and support overhead...  *shrug*

      reply	other threads:[~2021-11-15  0:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-14 20:41 Leah Neukirchen
2021-11-15  0:31 ` Eric Wong [this message]

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:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211115003136.GA10976@dcvr \ \ \ \
    --subject='Re: lei spawns mua before results are written' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

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).