84 task change the database architecture#85
Merged
maneeshaxyz merged 7 commits intomainfrom Nov 2, 2025
Merged
Conversation
…very and server components
… database operations
- Updated IMAPServer to utilize a database manager for handling user-specific databases. - Modified various handler functions to retrieve user databases and perform operations on them. - Replaced direct database calls with user-specific methods in the database layer. - Ensured that default mailboxes are created when a new user is initialized. - Updated tests to expose the database manager for better testing practices.
- Updated test files in `status_test.go`, `store_test.go`, `subscribe_test.go`, and `uid_test.go` to replace direct database access with helper functions. - Removed direct usage of `server.GetDB().(*sql.DB)` and replaced it with `helpers.GetDatabaseFromServer(server)` for better abstraction and maintainability. - Simplified user and mailbox creation in tests by utilizing `helpers.CreateTestUser` and `helpers.CreateMailbox`. - Improved error messages in `subscribe_test.go` for clarity.
maneeshaxyz
approved these changes
Nov 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Description
This PR is to change the database architecture in the Raven and change the LMTP, IMAP implementations.
🔍 Changes Made
✅ Checklist (Email System)
LOGIN,CAPABILITY,LIST,SELECT,FETCH,LOGOUT).🧪 Testing Instructions
To test the server, use the instructions in the README in the
testdirectory.📷 Screenshots / Logs (if applicable)