mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 16:56:00 +03:00
[GH-ISSUE #424] [feature-request] Endpoint for isolated message preview #272
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#272
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @baiomys on GitHub (Jan 12, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/424
Hi, current api scheme has following variants of viewing a message:
/view/{ID}.html
/view/{ID}.txt
/view/{ID} == unsafe, getting access to all messages
/view/latest == unsafe, getting access to all messages
/view/latest.html == unsafe, getting access to someone else message
/view/latest.txt == unsafe, getting access to someone else message
Is it possible to implement separate endpoint without 'latest' and mandatory .html or .txt suffix?
In current condition path validation/isolation on reverse proxy side using regex or templates is definitely possible, but getting too complex for such a simple task.
@axllent commented on GitHub (Jan 13, 2025):
Hi @baiomys. I'm not sure how you see that working from Mailpit's end - either the whole API is exposed either with or without authentication. What you are affectively wanting is a custom (and partial) exposure to only some endpoints. By far the best place for this would definitely be in the proxy itself where you can control exactly what does and doesn't have access, and to what.
@baiomys commented on GitHub (Jan 13, 2025):
Thanks, I got it.
It seems that it would be more handy to fork mailpit and make it more suitable for the task.
=)
@axllent commented on GitHub (Jan 13, 2025):
I agree. Based on several of your recent posts, you require a lot of custom functionality which is directly related to your project, but which falls completely outside the scope and intended purpose of Mailpit. This way you can theoretically get the best of both worlds.