-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
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:
- Load words from external
.txtfiles:adjectives.txtandnouns.txtin a configurable directory (e.g.web/inc/).
- Or: allow definitions via
config.ini(comma-separated lists). - 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
Labels
No labels