From 807a4e1c96582968b722072dab28abf9fc1dc873 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Mon, 30 Nov 2020 17:25:53 -0500 Subject: Fix crasher in mismatched trailer handling We may have 3 or 4 members in the array, so don't expect always 3. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b4/__init__.py b/b4/__init__.py index 03e773b..5c59150 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -302,8 +302,8 @@ class LoreMailbox: continue trailers, mismatches = fmsg.get_trailers(sloppy=sloppytrailers) - for tname, tvalue, extdata in mismatches: - lser.trailer_mismatches.add((tname, tvalue, fmsg.fromname, fmsg.fromemail)) + for trailer in mismatches: + lser.trailer_mismatches.add((trailer[0], trailer[1], fmsg.fromname, fmsg.fromemail)) lvl = 1 while True: logger.debug('%sParent: %s', ' ' * lvl, pmsg.full_subject) -- cgit v1.2.3