Weiterleiter-Adresse nur übernehmen, wenn sie wohlgeformt ist

This commit is contained in:
Rsclub2_2 committed 2026-11-15 00:39:38 +01:00
1 parent 7f2b317dad
commit c7b054a3bb
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -38,3 +38,8 @@ def test_domain_must_match_exactly(domain):
def test_subdomain_is_not_allowed_implicitly():
assert original_recipient("To: x@mail.wagnersnetz.de\n", "", ALLOWED) == ""
def test_malformed_forwarder_is_not_used():
assert original_recipient("no header", "a@b@wagnersnetz.de", ALLOWED) == ""
assert original_recipient("no header", "<x y@wagnersnetz.de>", ALLOWED) == ""