Avoid case where message-id and in-reply-to id match
PATCH 1/1 Avoid case where message-id and in-reply-to id match
From: Alison Schofield <[email protected]>
A user error while sending a patchset created a lore link that b4 is not able to handle. The unexpected matching message-id and in-reply-to id sends b4 into an infinite loop while 'Analyzing follow-up'.
Add a check and break for this case.
b4 am -c https://lore.kernel.org/all/[email protected]/
---
Not so sure this is the first place that b4 can and should detect this.
b4/__init__.py | 3 +++ 1 file changed, 3 insertions(+)
b4/__init__.py +3 -0
@@ -333,6 +333,9 @@ class LoreMailbox: pmsg.followup_trailers += trailers break if pmsg.in_reply_to and pmsg.in_reply_to in self.msgid_map: + # Avoid bad message id causing infinite loop + if pmsg == self.msgid_map[pmsg.in_reply_to]: + break lvl += 1 for pltr in pmsg.trailers: pltr.lmsg = pmsg
base-commit: 2eb1ab30a6a6f6b140f19ef36b5af7f73f000720
Signature · 1 line
2.37.3
Konstantin Ryabitsev
AppliedQuoted 9 lines · On Wed, 15 Mar 2023 22:55:23 -0700, [email protected] wrote:
A user error while sending a patchset created a lore link that b4 is not able to handle. The unexpected matching message-id and in-reply-to id sends b4 into an infinite loop while 'Analyzing follow-up'.
Add a check and break for this case.
b4 am -c https://lore.kernel.org/all/[email protected]/
[...]
Applied, thanks!
[1/1] Avoid case where message-id and in-reply-to id match
commit: 7c06ad19f6a94d367355e5ae8211c409404c7d7d
Best regards,
Signature · 1 line
Konstantin Ryabitsev <[email protected]>