Skip to contentSkip to conversation

b4: Ignore trailers only for CC

PATCH New Namhyung Kim 1 participant 1 message Oct 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 b4: Ignore trailers only for CC

I'm not sure what's the intention of the trailers-ignore-from but I only want to ignore them from Cc: lines. Otherwise it cannot get Acked-by or Reviewed-by from those people.

---
 src/b4/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/b4/__init__.py +1 -1
index 5115a9c..12a7087 100644
@@ -2269,7 +2269,7 @@ MAILMAP_INFO = dict()
             if ltr in fixtrailers or ltr in ignored:
                 continue
 
-            if (ltr.addr and ltr.addr[1].lower() in ignores) or (ltr.lmsg and ltr.lmsg.fromemail.lower() in ignores):
+            if ((ltr.addr and ltr.addr[1].lower() in ignores) or (ltr.lmsg and ltr.lmsg.fromemail.lower() in ignores)) and ltr.lname == 'cc':
                 logger.info('    x %s', ltr.as_string(omit_extinfo=True))
                 ignored.add(ltr)
                 continue
Signature · 1 line
2.47.0.rc1.288.g06298d1525-goog