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

retrieve a message by Message-ID key. #287

Closed
nabedge opened this issue May 15, 2016 · 1 comment
Closed

retrieve a message by Message-ID key. #287

nabedge opened this issue May 15, 2016 · 1 comment

Comments

@nabedge
Copy link

nabedge commented May 15, 2016

Hi. This mailcatcher is so verry looks good to me !
To better , if there is a function that can retrieve a message by Message-ID key.

Application send a mail to mailcatcher smtp like this.

Message-ID: <foo.bar.9999@example.com>
Subject: foo

this is body...

and my test code get this mail by http://localhost:1080/message/foo.bar.9999%40example.com as json or plainText.

regards.

@sj26
Copy link
Owner

sj26 commented Aug 10, 2016

This is super difficult because your application could send multiple messages with the same Message-ID (although it shouldn't). This feature won't be added to MailCatcher core at the moment, although maybe in the future there will be a better search API.

Maybe use the MailCatcher API to walk the messages and find the one you're after.

@sj26 sj26 closed this as completed Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants