-
Notifications
You must be signed in to change notification settings - Fork 257
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
Refactor imapsql blob storage interface to use modules framework #303
Comments
Hey, I'm interested in this and #304 and thinking about doing some work on it. I'm assuming that this file (and especially, the linked struct) are the key ones for this: maddy/internal/storage/imapsql/imapsql.go Line 62 in d8cabb9
Am I right in saying the idea here would be to make the backend more generic, with an end result being that maddy's index stays in an rdbms but the message bodies (which I think are stored as blobs?) can go into a backend which might be a database or might be s3? Edit: sorry, just saw #279, will look at |
This issue is about changing how ExternalStore is set in Init method in the file you referenced. My idea is to use module framework circuitry since that will give the most flexibility and the most clean separation. This is a pretty complicated change that requires good knowledge of maddy inner workings. |
Basically, it boils down to the following:
If you are willing to try working on it - feel free to ask guidance on any part. Or just let me know and I will try to take a look at it this weekend (probably leaving S3 store support only which should be then trivial to add). |
I'll have a go at this over the next few days I think; those instructions are enough to start with. I'll open a WIP PR as soon as I can. I'm not amazingly confident but I'll try to get something working. |
It feels reasonable to say I've not had chance to work on this yet, life has somewhat got away from me. I'm now going to move house too, so probably won't have chance to revisit this for a while. Sorry! |
Okay. Take your time. |
Necessary changes are done, the remaining bit is adding new store implementations. |
No description provided.
The text was updated successfully, but these errors were encountered: