mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
Improve tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# This is a small script which helped me write the atuhresadding-attacker@example.com emails
|
||||
# I still did quite some things manually.
|
||||
# cd dkimchecks-2022-09-28; for d in *; do cd $d ; python3 ../../create-authresadding-attacker.py >authresadding-attacker@example.com; cd $HOME/deltachat-android/jni/deltachat-core-rust/test-data/message/dkimchecks-2022-09-28; done
|
||||
# cd dkimchecks-2022-09-28; for d in *; do cd $d ; python3 ../../create-forged-authres-added.py >forged-authres-added@example.com; cd $HOME/deltachat-android/jni/deltachat-core-rust/test-data/message/dkimchecks-2022-09-28; done
|
||||
|
||||
with open("nami.lefherz@delta.blinzeln.de", "r") as f:
|
||||
inheader = False
|
||||
@@ -16,7 +16,7 @@ with open("nami.lefherz@delta.blinzeln.de", "r") as f:
|
||||
print(l, end='')
|
||||
inheader=True
|
||||
if l.startswith("From:"):
|
||||
print("From: authresadding-attacker@example.com");
|
||||
print("From: forged-authres-added@example.com");
|
||||
if l.startswith("Authentication-Results-Original"):
|
||||
print("TO BE DELETED")
|
||||
print(f"Authentication-Results: aaa.com; dkim=pass header.i=@example.com")
|
||||
|
||||
Reference in New Issue
Block a user