mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 06:56:29 +03:00
Add all the test emails
This commit is contained in:
14
test-data/message/dkimchecks_strip.py
Normal file
14
test-data/message/dkimchecks_strip.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# Use with dkimchecks_strip.sh
|
||||
|
||||
import sys
|
||||
|
||||
inheader = False
|
||||
for l in sys.stdin:
|
||||
if inheader and (l.startswith(" ") or l.startswith("\t")):
|
||||
print(l, end='')
|
||||
continue
|
||||
else:
|
||||
inheader = False
|
||||
if l.startswith("Authentication-Results:") or l.startswith("From:") or l.startswith("To:") or l.startswith("ARC-Authentication-Results"):
|
||||
print(l, end='')
|
||||
inheader=True
|
||||
Reference in New Issue
Block a user