-
-
Notifications
You must be signed in to change notification settings - Fork 161
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 support for search query params to /latest endpoints #206
Comments
Hi @matchai. I understand the issue you are having with a race condition. You can actually do this already, although it uses two API calls:
Does this not do what you are trying to achieve? |
That totally works. As a presumably common use-case, it would be great to have a convenient way to do it at once. |
@matchai I have just added this feature in v1.10.0. You can find more info on https://mailpit.axllent.org/docs/integration/. Please confirm this does what you expect? |
I'm closing this issue now as support for optional query parameters in |
When testing with emails, I'll often want to pull up the latest email sent by my test runner, but with tests running in parallel,
/latest.html
can bring about race conditions, showing the wrong email.By allowing
/latest
endpoints to support search-like query params, I can avoid these race conditions by filtering by the sender or recipient, which can be unique per test.The text was updated successfully, but these errors were encountered: