Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Fix sfp_email

bcoles62b5a4d4b797
diff --git a/modules/sfp_email.py b/modules/sfp_email.py
index dc5adea3..bdf34bf9 100644
--- a/modules/sfp_email.py
+++ b/modules/sfp_email.py
@@ -66,7 +66,7 @@ class sfp_email(SpiderFootPlugin):
# Get the domain and strip potential ending .
mailDom = email.lower().split('@')[1].strip('.')
- if not self.getTarget().matches(mailDom, includeChildren=True, includeParents=True) and not self.getTarget().matches(match):
+ if not self.getTarget().matches(mailDom, includeChildren=True, includeParents=True) and not self.getTarget().matches(email):
self.sf.debug("External domain, so possible affiliate e-mail")
evttype = "AFFILIATE_EMAILADDR"