Add random-emails package - #235
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Espanso package (random-emails) that expands >email into a randomly generated, realistic-looking placeholder email address using Espanso’s built-in random variable (no shell/scripts).
Changes:
- Introduces the
random-emailspackage with a large curated set of local-parts and domains. - Adds package documentation explaining usage and customization.
- Registers package metadata via
_manifest.ymlfor hub indexing/search.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/random-emails/0.1.0/README.md | Documents the trigger, dataset, and customization instructions for the new package. |
| packages/random-emails/0.1.0/package.yml | Defines local/domain random globals and the >email match expansion. |
| packages/random-emails/0.1.0/_manifest.yml | Provides hub metadata (name/title/description/version/author/tags). |
Comments suppressed due to low confidence (4)
packages/random-emails/0.1.0/README.md:18
- Several example usernames listed here (eduar, j.smith, maria.garcia, mgarcia87, jonnydeep) are not present in the
localchoices in package.yml, so they will never be generated. Updating these examples to match the actual dataset avoids confusion.
(`eduar`, `j.smith`, `maria.garcia`, `mgarcia87`, `jonnydeep`, …).
packages/random-emails/0.1.0/README.md:21
- The README claims 185 domains, but package.yml contains 173 domain entries (choices are one-per-line from 914 through 1086). Please update the stated domain count to match the actual list.
- **185 real domains**, mixing real email providers (`gmail.com`,
`outlook.com`, `proton.me`), real companies (`cocacola.com`, `nike.com`,
`tesla.com`) and plausible business domains (`mycompany.com`, `myemail.com`).
packages/random-emails/0.1.0/README.md:24
- The "160,000" combinations figure doesn't match the actual dataset size. With 895 local-parts (lines 14–908) and 173 domains (914–1086) the total is 154,835 combinations (895×173).
The username and the domain are combined **independently**, which yields more
than **160,000** possible addresses.
packages/random-emails/0.1.0/README.md:32
- These usage examples (kenji.tanaka / priya88) also don't exist in the
localchoices, so they won't appear in practice. Consider replacing them with examples that can actually be generated.
>email -> kenji.tanaka@spotify.com
>email -> priya88@gmail.com
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
random-emails
Generates random but realistic-looking fake email addresses as you type.
>email→ a random address, e.g.eduar@gmail.com,j.smith@cocacola.comormgarcia87@mycompany.comThe address is fake, but every part looks real: ~900 real-style usernames (built from common name patterns) combined independently with 173 real domains — email providers (
gmail.com,outlook.com,proton.me), real companies (cocacola.com,nike.com,nvidia.com) and plausible business domains (mycompany.com,myemail.com). Over 150,000 possible addresses, a fresh one on every trigger.No scripts and no shell commands — the package uses only the built-in
randomextension, so it cannot touch the filesystem or execute anything.The README notes these are randomly generated placeholder/test addresses.
.github/scripts/validate/main.py) → all checks pass ✅