CamelCase to snake_case
This commit is contained in:
parent
45459d65be
commit
5f831d593a
|
@ -1440,10 +1440,10 @@ def get_dmarc_status(msg: Message) -> Optional[DmarcCheckResult]:
|
||||||
if not spam_result:
|
if not spam_result:
|
||||||
return None
|
return None
|
||||||
spam_entries = [entry.strip() for entry in spam_result[-1].split("\n")]
|
spam_entries = [entry.strip() for entry in spam_result[-1].split("\n")]
|
||||||
for iPos in range(len(spam_entries)):
|
for entry_pos in range(len(spam_entries)):
|
||||||
sep = spam_entries[iPos].find("(")
|
sep = spam_entries[entry_pos].find("(")
|
||||||
if sep > -1:
|
if sep > -1:
|
||||||
spam_entries[iPos] = spam_entries[iPos][:sep]
|
spam_entries[entry_pos] = spam_entries[entry_pos][:sep]
|
||||||
for header_value, dmarc_result in DmarcCheckResult.get_string_dict().items():
|
for header_value, dmarc_result in DmarcCheckResult.get_string_dict().items():
|
||||||
if header_value in spam_entries:
|
if header_value in spam_entries:
|
||||||
return dmarc_result
|
return dmarc_result
|
||||||
|
|
Loading…
Reference in a new issue