SimpleKotlinMail icon indicating copy to clipboard operation
SimpleKotlinMail copied to clipboard

[Feature Request] Authentication

Open Stonedestroyer opened this issue 3 years ago • 3 comments

Seems that the underlying library offers supplying an authentication factory. Is it possible this could be exposed while still benefiting from coroutines?

Stonedestroyer avatar Mar 27 '22 23:03 Stonedestroyer

For which module and feature exactly do you need authentication where it currently is not possible?

jakobkmar avatar Mar 29 '22 18:03 jakobkmar

My usecase was the server module and securing incoming messages and then parsing those messages into other things that will be used as notifications.

I tried FromListener and MailListener.

Stonedestroyer avatar Mar 29 '22 18:03 Stonedestroyer

I see, well the underlying library is not really that well maintained anymore besides dependabot PRs, that's why I started to write https://github.com/jakobkmar/kotlin-smtp , but I did not have enough time to finish it. Maybe you can expand upon it, or maybe some rust lib like https://docs.rs/samotop/latest/samotop/ or go lib like https://github.com/emersion/go-smtp fits your needs.

That being said, if you really want to use this library and subethasmtp, I could make the underlying builder for the SMTPServer accessible in some way so that you could use all of its features. Or you could use subethasmtp without SimpleKotlinMail, it is not that hard to wrap it with coroutine functionality, and that way you could do it exactly how yo need it. However the problem of that library being very unmaintained still remains.

jakobkmar avatar Mar 29 '22 18:03 jakobkmar