diff mbox series

b4: Ignore trailers only for CC

Message ID 20241016220024.2377718-1-namhyung@kernel.org (mailing list archive)
State New
Headers show
Series b4: Ignore trailers only for CC | expand

Commit Message

Namhyung Kim Oct. 16, 2024, 10 p.m. UTC
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.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
 src/b4/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/b4/__init__.py b/src/b4/__init__.py
index 5115a9c..12a7087 100644
--- a/src/b4/__init__.py
+++ b/src/b4/__init__.py
@@ -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