Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defanged first.last Email Addresses do not refang correctly #36

Closed
bradchiappetta opened this issue Dec 12, 2019 · 3 comments
Closed

Defanged first.last Email Addresses do not refang correctly #36

bradchiappetta opened this issue Dec 12, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@bradchiappetta
Copy link

bradchiappetta commented Dec 12, 2019

Issue seems to be around this defangged format:

firstname[.]lastname[@]domainname[.]org

When refanged, seeing the following:

[email protected]

For some reason, the username format of first.last is getting chopped off to just last.

@bradchiappetta
Copy link
Author

Actually, this might be an email parser issue in general. I just retested with refang disabled, and I get

lastname[@]domainname[.]org

@cmmorrow cmmorrow self-assigned this May 22, 2020
@battleoverflow battleoverflow added the bug Something isn't working label Jan 10, 2023
@battleoverflow
Copy link
Contributor

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()

@battleoverflow
Copy link
Contributor

New version is now available on PyPI: https://pypi.org/project/iocextract/1.14.0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants