diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2019-01-09 15:11:59 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2019-01-09 15:11:59 -0500 |
commit | b254750828cf42c059aae231510e5c9096f2da26 (patch) | |
tree | 345001c68cd47993d72ef3e9d440869e03ff6011 | |
parent | 2cd5dfa7d141517daebbd2cf6f74bab37191bfae (diff) | |
download | korg-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-x | list-archive-maker.py | 4 |
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 |