Skip to content

58 task implement search command and write the test cases#68

Merged
Aravinda-HWK merged 5 commits intomainfrom
58-task-implement-search-command-and-write-the-test-cases
Oct 17, 2025
Merged

58 task implement search command and write the test cases#68
Aravinda-HWK merged 5 commits intomainfrom
58-task-implement-search-command-and-write-the-test-cases

Conversation

@Aravinda-HWK
Copy link
Copy Markdown
Collaborator

📌 Description

This PR is to implement the SEARCH command for all the parameters mentioned in the RFC and write the test cases for that command.


🔍 Changes Made

  1. Implement the SEARCH command.
  2. Write the test cases for that.

✅ Checklist (Email System)

  • Core IMAP commands tested (LOGIN, CAPABILITY, LIST, SELECT, FETCH, LOGOUT).
  • Authentication is tested.
  • Docker build & run validated.
  • Configuration loading verified for default and custom paths.
  • Persistent storage with Docker volume verified.
  • Error handling and logging verified
  • Documentation updated (README, config samples).

🧪 Testing Instructions

To test the server, use the instructions in the README in the test directory.


📷 Screenshots / Logs (if applicable)


⚠️ Notes for Reviewers

Start to review this PR after reviewing and merging #67 PR.

- Implemented HandleSearch method in TestInterface for testing purposes.
- Created comprehensive test suite for SEARCH command covering various scenarios including:
  - Unauthenticated access
  - No mailbox selected
  - Searching for all messages
  - Searching flagged, deleted, unseen, and other criteria
  - Handling of invalid syntax and response formats
  - Support for CHARSET specification and size-based searches
  - Combined criteria searches and RFC 3501 example
@Aravinda-HWK Aravinda-HWK merged commit fc1897b into main Oct 17, 2025
2 checks passed
@Aravinda-HWK Aravinda-HWK deleted the 58-task-implement-search-command-and-write-the-test-cases branch October 17, 2025 16:38
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

Successfully merging this pull request may close these issues.

[TASK] Implement SEARCH Command and write the test cases

2 participants