Re: [PATCH b4 v2] ez: avoid duplicate signatures on resend

Konstantin Ryabitsev <[email protected]> Sun, 14 Jun 2026 11:40:39 -0400
Newsgroups org.kernel.linux.tools
Message-ID <20260614-unbiased-favorite-marmoset-194aff@lemur>
On Sat, Jun 13, 2026 at 02:30:03AM -0300, Cássio Gabriel wrote:
> 'b4 send --resend' rebuilds messages from the historical sent tag and
> appends the current email signature to the cover text. If the stored
> cover already ends in a canonical signature block, the regenerated
> message carries two footer blocks.
> 
> Strip an existing trailing canonical signature before adding the current
> one. Reuse the helper when preparing sent tags so reroll and resend handle
> the delimiter consistently.
> 
> Link: https://lore.kernel.org/all/20260511-alsa-hda-cs35l41-fw-work-teardown-v1-1-1184e9bc4f25@gmail.com/
> Signed-off-by: Cássio Gabriel <[email protected]>
> ---
> Changes in v2:
> - Only recognize the canonical email signature delimiter '-- '.
> - Preserve bare '--' lines in cover letter content.
> - Add a no-signature regression test.
> - Link to v1: https://patch.msgid.link/[email protected]
> ---
> base-commit: 474350a3035537184556061872e9e905b47774ca

This is unrelated to the patch, but I did notice that something went strangely
wrong with this submission. The base-commit line moved up above the basement
into the header, and the bottom is truncated:

https://lore.kernel.org/tools/[email protected]/T/#u

I've never seen this happen, so I'd like to understand what may have caused
this.

-K