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

Allow search filtering of Reply-To header #247

Closed
marshmn opened this issue Feb 8, 2024 · 4 comments
Closed

Allow search filtering of Reply-To header #247

marshmn opened this issue Feb 8, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@marshmn
Copy link

marshmn commented Feb 8, 2024

It would be helpful to be able to search for emails that match a given Reply-To header.

For example, I'd like to be able to use something like the following in the search field: reply-to:"[email protected]"

(In my particular case, I'd like to be able to search on this field using the API search endpoint - but I'm assuming that this will be possible once added to the UI search)

@axllent axllent added the enhancement New feature or request label Feb 9, 2024
@axllent
Copy link
Owner

axllent commented Feb 9, 2024

No problem, I'm looking into this for you.

@axllent
Copy link
Owner

axllent commented Feb 9, 2024

This feature has just been added to v1.13.3, and includes the search filter (reply-to:<search>) in the API search and web UI (the web UI uses the API).

Please note that the ReplyTo field in the JSON response will be an empty array for any existing data in your database as the Reply-To header wasn't indexed previously. If you have existing messages you with to search (by reply-to:...) then you will need to reindex your database (mailpit reindex /path/to/your/db) which should resolve the issue.

Please confirm this resolves the issue? Thanks.

@marshmn
Copy link
Author

marshmn commented Feb 9, 2024

I've just tested with v1.13.3 and can confirm that it works exactly as I'd hoped - both in the UI and API.

Many thanks for adding this feature so quickly!

@axllent
Copy link
Owner

axllent commented Feb 9, 2024

Perfect, and you are welcome! Thanks for testing.

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