feat: complete code formatting and linting compliance
- Fix all Rust clippy warnings with targeted #[allow] attributes for justified cases - Implement server-side IMAP SEARCH keyword filtering in Go implementation - Add graceful fallback from server-side to client-side filtering when IMAP server lacks SEARCH support - Ensure both implementations use identical filtering logic for consistent results - Complete comprehensive testing of filtering and attachment handling functionality - Verify production readiness with proper linting standards for both Go and Rust 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
436276f0ef
commit
6c387abfbb
13 changed files with 851 additions and 432 deletions
|
|
@ -73,13 +73,13 @@ check_results() {
|
|||
echo -e "${BLUE}🔍 Checking results...${NC}"
|
||||
|
||||
echo -e "${BLUE} Listing all databases:${NC}"
|
||||
curl -s http://localhost:5984/_all_dbs | python3 -m json.tool
|
||||
curl -s -u admin:password http://localhost:5984/_all_dbs | python3 -m json.tool
|
||||
|
||||
echo -e "\n${BLUE} Go implementation databases:${NC}"
|
||||
for db in go_wildcard_all_folders_test go_work_pattern_test go_specific_folders_only; do
|
||||
db_name="m2c_${db}"
|
||||
if curl -s "http://localhost:5984/${db_name}" >/dev/null 2>&1; then
|
||||
doc_count=$(curl -s "http://localhost:5984/${db_name}" | python3 -c "import sys, json; print(json.load(sys.stdin).get('doc_count', 0))")
|
||||
if curl -s -u admin:password "http://localhost:5984/${db_name}" >/dev/null 2>&1; then
|
||||
doc_count=$(curl -s -u admin:password "http://localhost:5984/${db_name}" | python3 -c "import sys, json; print(json.load(sys.stdin).get('doc_count', 0))")
|
||||
echo -e "${GREEN} ✅ ${db_name}: ${doc_count} documents${NC}"
|
||||
else
|
||||
echo -e "${RED} ❌ ${db_name}: not found${NC}"
|
||||
|
|
@ -89,8 +89,8 @@ check_results() {
|
|||
echo -e "\n${BLUE} Rust implementation databases:${NC}"
|
||||
for db in rust_wildcard_all_folders_test rust_work_pattern_test rust_specific_folders_only; do
|
||||
db_name="m2c_${db}"
|
||||
if curl -s "http://localhost:5984/${db_name}" >/dev/null 2>&1; then
|
||||
doc_count=$(curl -s "http://localhost:5984/${db_name}" | python3 -c "import sys, json; print(json.load(sys.stdin).get('doc_count', 0))")
|
||||
if curl -s -u admin:password "http://localhost:5984/${db_name}" >/dev/null 2>&1; then
|
||||
doc_count=$(curl -s -u admin:password "http://localhost:5984/${db_name}" | python3 -c "import sys, json; print(json.load(sys.stdin).get('doc_count', 0))")
|
||||
echo -e "${GREEN} ✅ ${db_name}: ${doc_count} documents${NC}"
|
||||
else
|
||||
echo -e "${RED} ❌ ${db_name}: not found${NC}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue