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

Decoupling sending and receiving emails #42

Open
dinosaure opened this issue Jan 9, 2023 · 0 comments
Open

Decoupling sending and receiving emails #42

dinosaure opened this issue Jan 9, 2023 · 0 comments

Comments

@dinosaure
Copy link
Member

To get some space to really describe the failure politic when we send an email, it can be interesting to "decouple" the sending logic from the receiving logic. Currently, for any received emails, we do a Lwt.async send_the_incoming_email. But we probably should launch another fiber which waiting data for sending emails and do a Lwt.async notify_sender_fiber into our receiving loop.

By this way, we can handle properly a real policy to send emails (any emails) and when some of them fails.

A block-device which can store temporary emails can be useful too for some situations (like how we handle greylisting from recipients's servers?).

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

No branches or pull requests

1 participant