aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2019-01-09 15:11:59 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2019-01-09 15:11:59 -0500
commitb254750828cf42c059aae231510e5c9096f2da26 (patch)
tree345001c68cd47993d72ef3e9d440869e03ff6011
parent2cd5dfa7d141517daebbd2cf6f74bab37191bfae (diff)
downloadkorg-helpers-b254750828cf42c059aae231510e5c9096f2da26.tar.gz
Strip message-id of any trailing whitespace
Reported-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-xlist-archive-maker.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/list-archive-maker.py b/list-archive-maker.py
index 3953cb5..69c7fb5 100755
--- a/list-archive-maker.py
+++ b/list-archive-maker.py
@@ -53,6 +53,7 @@ WANTHDRS = {'return-path',
'x-mailing-list',
}
+
def main(sources, outdir, msgids, listids, rejectsfile):
outboxes = {}
writecount = {}
@@ -69,6 +70,7 @@ def main(sources, outdir, msgids, listids, rejectsfile):
else:
eaddrs.append(listid)
+ rejectsbox = None
if rejectsfile:
rejectsbox = mailbox.mbox(rejectsfile)
@@ -119,6 +121,8 @@ def main(sources, outdir, msgids, listids, rejectsfile):
skipped += 1
nomsgid += 1
continue
+
+ msgid = msgid.strip()
if msgid in knownset:
# Duplicate Message-ID, either because we already have it in the known-ids,
# or because the inbox has messages with same IDs. There is no fix for the