Closed bradchiappetta closed 1 year ago
Actually, this might be an email parser issue in general. I just retested with refang disabled, and I get
lastname[@]domainname[.]org
Hi, @bradchiappetta!
This issue is now resolved and in our development branch. Once a new version is available for download from PyPI, I will post another comment here.
Here's a quick example for when the new version is available:
import iocextract
def extract_data():
data = "firstname[.]lastname[@]domainname[.]org"
# refang
print(list(iocextract.extract_emails(data, True)))
# normal
print(list(iocextract.extract_emails(data, False)))
extract_data()
New version is now available on PyPI: https://pypi.org/project/iocextract/1.14.0/
Issue seems to be around this defangged format:
firstname[.]lastname[@]domainname[.]org
When refanged, seeing the following:
lastname@domainman.org
For some reason, the username format of first.last is getting chopped off to just last.