Skip to content

Commit fcc471f

Browse files
authored
Email Test - Allow LF & CRLF for MTA-STS
1 parent 9748c47 commit fcc471f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/email_validator.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -496,16 +496,6 @@ def validate_mta_sts_policy(global_translation, rating, result_dict, local_trans
496496
rows = content.split('\r\n')
497497
if len(rows) == 1:
498498
rows = content.split('\n')
499-
if len(rows) > 1:
500-
# https://www.rfc-editor.org/rfc/rfc8461#section-3.2
501-
mta_sts_records_wrong_linebreak_rating = Rating(
502-
global_translation, get_config('general.review.improve-only'))
503-
mta_sts_records_wrong_linebreak_rating.set_overall(1.0)
504-
mta_sts_records_wrong_linebreak_rating.set_integrity_and_security(
505-
2.5, local_translation('TEXT_REVIEW_MTA_STS_DNS_RECORD_WRONG_LINEBREAK'))
506-
mta_sts_records_wrong_linebreak_rating.set_standards(
507-
1.0, local_translation('TEXT_REVIEW_MTA_STS_DNS_RECORD_WRONG_LINEBREAK'))
508-
rating += mta_sts_records_wrong_linebreak_rating
509499

510500
for row in rows:
511501
if row == '':

0 commit comments

Comments
 (0)