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

Feature MimeMessage testable via an interface #980

Closed
rogatec opened this issue Dec 5, 2023 · 1 comment
Closed

Feature MimeMessage testable via an interface #980

rogatec opened this issue Dec 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@rogatec
Copy link

rogatec commented Dec 5, 2023

Is your feature request related to a problem? Please describe.
As already discussed in the closed issue #835 - I am currently running in a rare scenario where the MessageId is null.
To test my code, I need to create a wrapper class with an interface to mock it in my tests.

Describe the solution you'd like
An interface e.g. IMessage or iMimeMessage where MimeMessage relates to.

Describe alternatives you've considered
As I am writing no alternative comes to my mind 😞

Additional context
For additional context please see #835 .

@jstedfast
Copy link
Owner

I'm not sure if you use MailKit or not, but all of the (core) MailKit classes have corresponding interfaces.

I've been meaning to do this for a while now with MimeKit as well, but lacked "reason" to do it.

Now I have an excuse to do it :-)

@jstedfast jstedfast added the enhancement New feature or request label Dec 5, 2023
jstedfast added a commit that referenced this issue Dec 5, 2023
jstedfast added a commit that referenced this issue Dec 5, 2023
jstedfast added a commit that referenced this issue Dec 9, 2023
jstedfast added a commit that referenced this issue Dec 9, 2023
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