Skip to content

RFC Support for other public inbox forges

Trygve Laugstøl tools 1 version In review

Get series with b4
b4 am [email protected] change-id 20250828-sourcehut-d9ad7b5bf519

Versions newest first

  1. v1 RFC Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3debug: Add logging for requestssrc/b4/command.py+5 -00 replies
2/3Use decompress on compressed data only.src/b4/__init__.py+9 -20 replies
3/3More flexible HTTP clientsrc/b4/__init__.py+12 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC b4 0/3] Support for other public inbox forges

I really like b4, but would like to use it against Sourcehut. Sourcehut has the same "public inbox", email driven cooperation that public-inbox.org fronts.

This series adds support for other forges that support public-inbox like email interfaces, Sourcehut in particular. I'm submitting this with the hope to get acceptance on the concept and feedback on the particular implementation.

With this change users of Sourcehut can use b4 am/shazam with this config:

[b4]

	midmask = https://lists.sr.ht/~trygvis/testing123/%%3c%s%%3e/mbox
	linkmask = https://lists.sr.ht/~trygvis/testing123/%%3c%s%%3e

Sourcehut uses mbox URLs on the form

    https://lists.sr.ht/~user/list/<mid>/mbox

leading to slightly hard to read quoting.

Sourcehut doesn't suppor searching mailboxes by patch-id, but I'll work there if there is interrest on the b4 side at for support other forges than public-inbox.

I will update the documentation once this series is evolved a little bit more.

---
Trygve Laugstøl (3):
debug: Add logging for requests
Use decompress on compressed data only.
More flexible HTTP client

 src/b4/__init__.py | 29 +++++++++++++++++++++--------
 src/b4/command.py  |  5 +++++
 2 files changed, 26 insertions(+), 8 deletions(-)

---
base-commit: 50721cdd62ee283ac573e596a499f24aafee5b16
change-id: 20250828-sourcehut-d9ad7b5bf519

Best regards,

Signature · 1 line
Trygve Laugstøl <[email protected]>