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

correct way to implement Connector interface #424

Open
CognoscereK opened this issue Mar 1, 2025 · 0 comments
Open

correct way to implement Connector interface #424

CognoscereK opened this issue Mar 1, 2025 · 0 comments

Comments

@CognoscereK
Copy link

CognoscereK commented Mar 1, 2025

Hello, I have been trying to use gluon to implement an IMAP server, I really liked the library but I'm still struggling in how to make it work the way the intended way.

For what I understood by looking the code I need to implement a Connector interface and this connector will be the high-level API to main IMAP features(like creating mailboxes/messages/moving stuff etc) so I took the Dummy as base and implemented a version of the connector myself, the issue is: it works fine for creating new messages and so on but the moment I restart the server the connector loses its internal state making it desynchronized from the storage/database, so if I try to update a message flag it fails because the message exist in the storage/database but do not exist in the Connector.

Should I be populating the connector beforehand with messages from the database? This doesn't not seem right since it's not so straightforward and would make the server consume a lot of memory, am I doing something wrong?

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