1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-09-15 21:32:51 +02:00
aerc/lib/jwz
Robin Jarry 13e9ee3b40 lib: vendor-in the jwz library
The maintainer of this library has gone AWOL. We are depending on
a patch that has never been merged. Let's vendor the library to avoid
future issues.

This patch has been made with the following steps:

git clone https://github.com/konimarti/jwz lib/jwz
git -C lib/jwz checkout fix-missing-messages
mv lib/jwz/test/testdata/ham lib/jwz/testdata
sed -i 's#test/testdata#testdata#' lib/jwz/jwz_test.go
rm -rf lib/jwz/.* lib/jwz/docs lib/jwz/examples lib/jwz/test
sed -i 's#github.com/gatherstars-com/jwz#git.sr.ht/~rjarry/aerc/lib/jwz#' \
	lib/threadbuilder.go
go mod tidy
git add --intent-to-add lib/jwz
make fmt

Along with some manual adjustments to fix the linter warnings. Also, to
make the patch smaller, I only kept 93 test emails from the test data
fixture.

Changelog-changed: The JWZ library used for threading is now vendored.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Moritz Poldrack <moritz@poldrack.dev>
2025-08-28 09:28:16 +02:00
..
testdata lib: vendor-in the jwz library 2025-08-28 09:28:16 +02:00
jwz.go lib: vendor-in the jwz library 2025-08-28 09:28:16 +02:00
jwz_test.go lib: vendor-in the jwz library 2025-08-28 09:28:16 +02:00
threadable.go lib: vendor-in the jwz library 2025-08-28 09:28:16 +02:00
threadcontainer.go lib: vendor-in the jwz library 2025-08-28 09:28:16 +02:00
utils.go lib: vendor-in the jwz library 2025-08-28 09:28:16 +02:00
utils_test.go lib: vendor-in the jwz library 2025-08-28 09:28:16 +02:00