Skip to content

Add random-emails package - #235

Merged
smeech merged 2 commits into
espanso:mainfrom
mreduar:add-random-emails
Jul 26, 2026
Merged

Add random-emails package#235
smeech merged 2 commits into
espanso:mainfrom
mreduar:add-random-emails

Conversation

@mreduar

@mreduar mreduar commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

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.com or mgarcia87@mycompany.com

The 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 random extension, so it cannot touch the filesystem or execute anything.

The README notes these are randomly generated placeholder/test addresses.

@smeech smeech left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very similar to Eduar's person-names package #234, one simple trigger, two large global variable choices. No script or shell or potentially malicious code.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-emails package with a large curated set of local-parts and domains.
  • Adds package documentation explaining usage and customization.
  • Registers package metadata via _manifest.yml for 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 local choices 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 local choices, 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.

Comment thread packages/random-emails/0.1.0/README.md Outdated
Comment thread packages/random-emails/0.1.0/_manifest.yml Outdated
Comment thread packages/random-emails/0.1.0/package.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@smeech
smeech merged commit d9d15cf into espanso:main Jul 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants