Skip to content

Conversation

delbertooo
Copy link
Contributor

As maildev is primarily a debugging tool we want to validate the correctness of TO, CC and BCC as well.

See #233

Possible solutions

  • multiply the emails for each recipient
  • show cc and bcc addresses in the preview

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 be allRecipients - 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.

image
image

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.

@soulteary
Copy link
Member

Thanks for the feedback @delbertooo I tested this function locally and found no problem. we will release it together in v2.0.2 version

However, there are currently some problems with the interface style. I don't think it is a big problem. We can improve it in the next version.

@soulteary soulteary merged commit 49be6a0 into maildev:master Mar 23, 2022
@delbertooo
Copy link
Contributor Author

However, there are currently some problems with the interface style. I don't think it is a big problem. We can improve it in the next version.

I didn't commit a rebuilt app/styles/style.css with npm run css. That's why the new styles are missing. I can do another merge request with rebuilt styles, if you want.

I guess I wasn't sure if that is the right way, as I'm not the biggest fan of binaries / artifacts in the repository.

@delbertooo delbertooo deleted the feature/bcc-support branch March 31, 2022 09:47
delbertooo added a commit to delbertooo/maildev that referenced this pull request Mar 31, 2022
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

Successfully merging this pull request may close these issues.

2 participants