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

Make an automated regex generator given just emails #49

Open
Divide-By-0 opened this issue Jan 20, 2024 · 0 comments
Open

Make an automated regex generator given just emails #49

Divide-By-0 opened this issue Jan 20, 2024 · 0 comments
Labels

Comments

@Divide-By-0
Copy link
Member

If I attach two emails (i.e. raw .eml bodies), either two from the same template or one from an old template and one from a new template, we should be able to auto-generate a regex by:

  • detecting the maximum overlap in the raw text, and constraining those match
  • detecting the parts that differ and constraining them to the type of character correctly (i.e. a contiguous sequence with a single @ is constrained via email address regex, it autodetects mixes of decimal and hex, ascii, floats, etc)
  • allowing the user to highlight what the match group want to reveal via i.e. zkregex.com/tool, and loosening the constraints on the rest of the unmatched text

This will be critical for partners like zkp2p to both support new emails and rapidly adapt to template changes. As it is a whole, integrated project, there is a much larger bounty for this project.

@Divide-By-0 Divide-By-0 added enhancement New feature or request medium labels Jan 20, 2024
@Divide-By-0 Divide-By-0 removed the enhancement New feature or request label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant