GH-1589: Avoid extracting IP-like strings from SMTP headers

This commit is contained in:
Tim Wojtulewicz 2021-08-10 11:53:10 -07:00 committed by Tim Wojtulewicz
parent f8e87d3814
commit 569552b320
5 changed files with 43 additions and 4 deletions

View file

@ -51,4 +51,13 @@ F
============ test extract_ip_addresses()
[1.1.1.1, 2.2.2.2, 3.3.3.3]
[1.1.1.1, 0:0:0:0:0:0:0:0, 3.3.3.3]
[1.1.1.1]
[1.1.1.1]
[]
[1.1.1.1]
[1.1.1.1]
[1.1.1.1]
[1.1.1.1, 2.2.2.2]
[1.1.1.1]
[1.1.1.1]
[6:1:2::3:4:5:6]