Re: b4 adds Link trailer although not asked to?

Matthias Beyer <[email protected]>
Newsgroups org.kernel.linux.tools
Message-ID <cltup2qefzi25wupghnwxhls43ecxd7sp4j7rkzffr633pdlgg@g4ukbqcoor7f>
Hi again,

after playing some more, the issue did not appear with `b4 shazam` if I
did not specify `--add-link`.

Am Sun, Apr 26, 2026 at 12:21:34PM +0200, schrieb Matthias Beyer:
> [...]
> I am currently playing with b4 and am wondering why b4 adds a `Link:`
> trailer even though I did not specify `--add-link`.
> 
> There's no configuration file around
> 
>     git config list | grep b4 # no output
> 
> or something, here's what I did:
> 
>     notmuch show --format=mbox $SOME_NOTMUCH_QUERY | b4 am -m - -o -
> 
> and it prints the resulting patches with a `Link: ...`.
> 
> FWIW, I am not in the kernel context, so a lore.kernel.org link is wrong
> for my usecase (I know I can set an alternative mask, but I don't want
> any link in the resulting commits here).
> 
> The above was tested with b4 0.14.3 and 0.15.2.
> 
> The only source line in b4 that sets addlink=True is in
> 
>     src/b4/mbox.py:135
> 
> but I don't see how that line is hit in my case, because `addmsgid`
> should be False here (False by default).
> 
> Hope you can help me here,
> Best,
> Matthias
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEUJGUus1GMTrRclzcEKWX9Kitz80FAmnt+T8ACgkQEKWX9Kit
z80SQhAAvnctJZSwr3Dx/SVtm1J0JrIGxTQ9SxL6NDUpRJRPPrCA+j8MopSALlwm
PZeoTIlPC4r00ZMkiGvuQH01gXR76ckTCQuZdE4VMDRgfpQFLf40ZFtc2T7K8iLX
gkD85NfcgTrkdYOiouBC/1M5AMJK2TEgBRGpG5azGhsf/WHPdxUSX0FmXCl0X5OT
6Bk7wJbLUDD+FGwTo7XFfFVjn3QBBjrV2X8EhZ6jCpr/L9ehiHpjRpIHlrcUGHgC
5LthCBCJjxo6g3/TB9k6x9E3oj+HXutS/RKZcodTcYzQKbRamEKxh6ZKIxjqKI4F
9zsMM8vaii/hFXxwmKSDZq84b1DLLbknNgeFpNFU2lzG7AmqAAau8f5ZCMCDwMWo
2GxyS/3MTkXnkpHHE3AU3gNWwvIRJyFPkri8Rv8BcBWWYBtzeYIpziPT4HbXz6uw
deo+4QlATeRXqQwBj1RW75HmLD1FSnmXKUZDa2T/jkp1DQxCvlfAzMKBjbP+laVo
z2G9P5+QKGvH4i+h+ealG82V6+IHZOQhidZgcanvHWCSHn4US7Bu2v7O/DB9rrHB
8ySO6pDQ0AF1QQswZr37V95CTL1I+0AA38GRQjVGdBgi4LgWQavt9ZDHieDrjhi+
YMbwiNDA3dSe8VIY1ed2uAm9QdSXc+jS4kc3lwqgFEJCwSpNNKs=
=xsqv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.