Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As maildev is primarily a debugging tool we want to validate the correctness of TO, CC and BCC as well.
See #233
Possible solutions
Duplicating emails won't help debugging and may make it even worse. So we went for the "show in preview" option.
Implementation
Bcc should not be contained in the mail source. Otherwise it wouldn't be a "blind" copy as the recipients could see the blind copy recipients. Every recipient (to, cc, bcc) should be part of the
RCPT
though. So from my understanding and the insight of this Mailtrap article bcc should beallRecipients - to - cc
. This calculated bcc is what I implemented and added to the stored parsed email.On the GUI side I found that it's actually hard to validate the recipients in maildev. Besides the headers this information isn't really shown in detail. To fix the missing details I implemented a panel below the email toolbar to show information. I'm not quite sure if this panel meets your UI expectations but in my opinion something like that would be a great addition to the project. This way the user can easily debug who should've received the mail.
Preview
I built a docker image as a preview with the recipients/bcc support added by this pull requests. You can find it at delbertooo/maildev-bcc.