For now, integration tests require to have a running IMAP and SMTP server (which is achieve with a docker image of greenmail). It could be great to find a way to spawn an IMAP and SMTP inside Rust to make tests more portable and reliable.
Thank you. Could I try to refactor this with the
.jar
file of greenmail? :)
The problem with the
.jar
file is that you still do not have control on how to start, stop, ready etc. I think that spawning an IMAP server inside the integration test suite is more appropriate in a way that you have control on when to start it, how to wait for it (once ready) and when to kill it.
Sure, Rust should have total control of mailserver to make the test work. It takes some work to set up but Rust can do it. I will do this on weekend. I thinks the hardest part is I am not familiar with sourcehut.
Sure, Rust should have total control of mailserver to make the test work. It takes some work to set up but Rust can do it. I will do this on weekend.
You know how to do it? Which crate do you have in mind?
I thinks the hardest part is I am not familiar with sourcehut.
Sourcehut is very simple to use, you can either create patch from their interface (you will need an account) or you can send a patch to the mailing list. I invite you to read the new Himalaya contributing guide.
~yanganto, I cannot find your patch anymore, which mailing list did you use?