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

Add label to differ between different instances #316

Closed
Chris53897 opened this issue Jun 20, 2024 · 6 comments
Closed

Add label to differ between different instances #316

Chris53897 opened this issue Jun 20, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@Chris53897
Copy link

It would be great to have a label, that is displayed right to the name in the gui.
With this people can see direct, in which instance they are.

Maybe something like MP_LABEL or MP_TITLE
https://mailpit.axllent.org/docs/install/docker/

@axllent
Copy link
Owner

axllent commented Jun 20, 2024

This is an interesting idea. Next to the logo won't work as there isn't enough space (specifically on mobile), but above the Inbox button probably would work.

For context, could you please explain how you're using Mailpit, specifically why there may be confusion as to which instance it is?

@Chris53897
Copy link
Author

I have 3 symfony projects running with Mailpit includet locally at the same time.
They run at http://localhost:[PORT]
I can only differ them via the port.
Of course if there are e-mail in the inbox it is a bit easier.

@axllent
Copy link
Owner

axllent commented Jun 20, 2024

Makes sense.... I'll look into this in the coming days 👍

@axllent axllent added the enhancement New feature or request label Jun 20, 2024
@axllent
Copy link
Owner

axllent commented Jun 21, 2024

I have added this feature, although this has not been released yet as I just released a new version 2 days ago (so I will wait a few more days so I don't annoy package maintainers... sorry).

The --label (or env MP_LABEL) will do the following:

  • Set a "label" in the web UI above the "Inbox" (and similar buttons in other parts of the website) on the left
  • Add the label to the HTML head title (tabs / bookmarks)
  • Add the label to both the SMTP and optional POP3 servers

Screenshot 2024-06-21 at 17-02-03 Mailpit - My server!

I'll let you know when this gets released. Can you please tell me if this approach is suitable?

@Chris53897
Copy link
Author

Thanks

@axllent
Copy link
Owner

axllent commented Jun 22, 2024

This feature has been released in v1.18.7. Please feel free to re-open this ticket if you experience any issues, and also please let me know if it solves your issue, thanks.

@axllent axllent closed this as completed Jun 22, 2024
@axllent axllent changed the title Add lable to differ between different instances Add label to differ between different instances Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants