mbox series

[0/1] mbox: Exit with error code if no messages were found

Message ID 20211118120514.277328-1-n.schier@avm.de (mailing list archive)
Headers show
Series mbox: Exit with error code if no messages were found | expand

Message

Nicolas Schier Nov. 18, 2021, 12:05 p.m. UTC
Hi,

working with b4 on a local public-inbox installation, I stumbled across
the behaviour of 'b4 am'.  I knew a correct Message-Id and wanted to
fetch the whole patch set as soon as it reaches the public-inbox
instance.  Thus I did a stupid

  while ! b4 am MSGID; do sleep 10; done

'b4 am MSGID' showed 'That message-id is not known.' and exited with
return code 0.  As this seemed strange to me I added a 'sys.exit(0)' to
fix my use case; but this patch feels too simple to be good.

Can someone point me to some point(s) I am currently too blind to see?

Kind regards,
Nicolas


Nicolas Schier (1):
  mbox: Exit with error code if no messages were found

 b4/mbox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)