aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Jordan via RT <kernel-helpdesk@rt.linuxfoundation.org>2019-01-24 22:45:30 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2019-01-25 15:08:05 -0500
commitdc2306ba201b6f4a7c0d9675dcdf71f2549dae28 (patch)
tree5d9bcf7766ce27c3bbe7820778cdf65a64218742
parentda2ea1fc12fe91b52ab04ce440056f2afd4602c2 (diff)
downloadkorg-helpers-dc2306ba201b6f4a7c0d9675dcdf71f2549dae28.tar.gz
include Resent-to: header when collecting messages
Sometimes a message is sent to a mailing list using the Resent-to: header. Check for this so these types of messages aren't missed. Signed-off-by: Daniel Jordan <daniel.m.jordan@oracle.com>
-rwxr-xr-xlist-archive-maker.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/list-archive-maker.py b/list-archive-maker.py
index 524669d..bfd6478 100755
--- a/list-archive-maker.py
+++ b/list-archive-maker.py
@@ -52,6 +52,7 @@ WANTHDRS = {'return-path',
'content-*',
'errors-to',
'x-mailing-list',
+ 'resent-to',
}
@@ -247,7 +248,8 @@ def main(sources, outdir, msgids, listids, rejectsfile):
else:
for eaddr in eaddrs:
if (str(msg.get('to', '')).find(eaddr) >= 0 or
- str(msg.get('cc', '')).find(eaddr) >= 0):
+ str(msg.get('cc', '')).find(eaddr) >= 0 or
+ str(msg.get('resent-to', '')).find(eaddr) >= 0):
# insert the list-id header
# (assuming the first one in the list to be the canonical one)
newhdrs.append(('List-ID', '<%s>' % listids[0]))