aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-02-17 08:04:44 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-02-17 08:04:44 -0500
commit19562207018976258eca632e4ec315443b4a0576 (patch)
tree701980a66c102ffa1a81756a13e35af92e58a733
parentc04e8bc107165a6cd49bcf8ee5564b92ed99edd8 (diff)
downloadkorg-helpers-19562207018976258eca632e4ec315443b4a0576.tar.gz
Make sure we cast the header to string
I'm not sure why Python doesn't just return one or the other, but make sure it's always a string before we try to operate on it. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-xlist-archive-collector.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/list-archive-collector.py b/list-archive-collector.py
index b0270a5..40ac910 100755
--- a/list-archive-collector.py
+++ b/list-archive-collector.py
@@ -126,7 +126,7 @@ def lookaside_fillin(msg):
'User-Agent',
'X-Mailer',
]
- msgid = msg.get('Message-Id').strip('<>')
+ msgid = str(msg.get('Message-Id')).strip('<>')
lmsg = lore_get_message(msgid)
if not lmsg:
return False