mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #156] Feature Request: Pass search query parameters from the main URL #105
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#105
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 @bcremer on GitHub (Aug 29, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/156
Feature Request
Allow query parameters from the
api/v1/searchto be passed via the main Browser URL like so:https://mailpit.local/?query=from:ticket-34745@project.local&limit=5
Use case
We running a shared mailpit instance for a large number of testsystems that all create mails in the mailpit instance using different
fromaddresses.We want to add a direct link in the ticket system to the mailpit instance filtered to a from address that matches the ticket.
@axllent commented on GitHub (Aug 30, 2023):
Hi @bcremer, thanks for the feedback. Currently this is not possible as it would require the ability to parse URL parameters on the frontend which Mailpit does not have. In order to achieve this, the Vue frontend would need to to use URL routing which would mean a rather large rewrite of several core UI components as it would also impact every other aspect of the UI too (filtering , pagination, messages, etc).
This feature is however already "planned", or rather I have been strongly considering this for future changes. I just don't know when that will happen as it requires a fair amount of time to write / adapt. I will leave this open as a reminder :)
@axllent commented on GitHub (Sep 22, 2023):
I have just released v1.9.0 which includes virtual routing. You cannot however set the pagination limit, but you can link directly to searches, eg:
https://mailpit.local/search?q=from:ticket-34745@project.local@axllent commented on GitHub (Sep 27, 2023):
I'm closing this as complete, but feel free to reopen if you have issues.
@bcremer commented on GitHub (Sep 27, 2023):
Works like a charm. Thank you.