Re: [PATCH liblore] utils: extract message-ID before clean_header to fix Gnus In-Reply-To

Konstantin Ryabitsev <[email protected]> Tue, 21 Jul 2026 15:02:45 -0400
Newsgroups org.kernel.linux.tools
Message-ID <20260721-hypersonic-phoenix-of-prosperity-dbe7ab@meerkat>
On Tue, Jul 21, 2026 at 11:41:51AM +0400, Marc-André Lureau wrote:
> When an In-Reply-To header contains both a message-ID and RFC 2047
> encoded words (as produced by Gnus), clean_header() would enter the
> email-address parsing path and destroy the message-ID.  This caused
> get_clean_msgid() to return None for the In-Reply-To header, making
> the follow-up trailer logic fall back to References and pick the
> cover letter as parent, which then broadcast the trailer to all
> patches via add_cover_trailers().
> 
> tests: add test for get_clean_msgid with Gnus-style In-Reply-To

Thanks for this -- I didn't take it directly, because looking closer at the
code I realized that using clean_header() was wrong here in the first place,
so the code could be simplified to only ever use the raw regex. I've pushed
the commit to master and will try to release 0.8.1 soon so other projects pick
this up as well.

Thanks!

-K