Closed jesopo closed 3 years ago
I didn't understand this:
for item in items:
if email in item:
found = item
if email
is gmail.com
and items
is ["gmail.com", "yahoo.com", "192.168.0.1"]
- why are we checking is gmail.com
is a substring in any of the items in items
?
this uses a sorta-recursive resolve (see
while to_resolve:
) to flatten out and deduplicate the idea being used before, but this also would look at the A records forexample.com
when we see a registration foruser@example.com
, not just the A records forexample.com
's MX records. e.g.:we used to just do
user@example.com
-> MXmx.example.com
-> A192.168.0.2
now we douser@example.com
-> A192.168.0.1
+ MXmx.example.com
-> A192.168.0.2