Skip to content

[FEATURE] Make adjective/noun word lists in generateRandomEmail() configurable #102

@Aejs

Description

@Aejs

Summary:
Allow the adjective and noun word lists used in generateRandomEmail() to be loaded from external sources (e.g. text files or configuration), instead of being hardcoded in core.php.


Current Behavior:
The function generateRandomEmail() in web/inc/core.php uses hardcoded arrays of English adjectives and nouns to generate email names (e.g. [email protected]).

This makes it difficult to:

  • Localize the email names (e.g. into German or French),
  • Apply custom branding or themes (e.g. tech terms, animal names),
  • Maintain changes without modifying core files (which can be overwritten on update).

Proposed Behavior:
Introduce a way to override the default word lists, for example:

  1. Load words from external .txt files:
    • adjectives.txt and nouns.txt in a configurable directory (e.g. web/inc/).
  2. Or: allow definitions via config.ini (comma-separated lists).
  3. If the external files do not exist, fallback to the default arrays (for backward compatibility).

Benefits:

  • Makes the project more flexible and user-friendly.
  • Enables localization and personalization without code changes.
  • Encourages wider adoption by making branding easier.

Example use cases:

  • A German trashmail instance wants to use schlau, groß, bär, ente.
  • A themed instance wants to use only tech terms: cyber, quantum, robot, script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions