Replace client-side wildcard filtering with IMAP LIST pattern matching for improved efficiency and accuracy. This fixes the issue where patterns like "Work*" were not matching folders like "Work/Projects". Key improvements: - Use IMAP LIST with patterns for server-side filtering - Remove dependency on doublestar library - Add ListFilteredMailboxes() method with proper IMAP pattern support - Remove obsolete ShouldProcessMailbox() client-side filtering - Significantly reduce network traffic by filtering at server This ensures the Go implementation correctly processes folder patterns and achieves feature parity with the Rust implementation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| config | ||
| couch | ||
| config-test-go-no-filter.json | ||
| config-test-go.json | ||
| go.mod | ||
| go.sum | ||
| mail2couch | ||
| main.go | ||