You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Dialer.GetMaxUID using RFC-4731 (from #83 + coverage fixes) (#85)
* Add Dialer.GetMaxUID as alt method using RFC-4731
* Use t.Skip() instread of if (false)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* strings.Split -> strings.Fields; camelCase instead of snake
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* fix: fix indentation and add tests for parseMaxUIDSearchResponse coverage
Fix indentation issues from applying review suggestions and add unit
tests covering error paths (no ESEARCH line, empty response, non-numeric
MAX value) to satisfy code coverage requirements.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address review feedback for parseMaxUIDSearchResponse
- Rename searchMaxUIDre to searchMaxUIDRE for naming consistency
- Use case-insensitive regex with capturing group to extract MAX value
- Handles MAX not being the last token (RFC 4731 allows MIN/MAX/COUNT)
- Add tests for case-insensitive matching and MAX-not-last scenarios
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address code review feedback for GetMaxUID
- Handle empty mailbox: ESEARCH without MAX returns 0, nil (RFC 4731)
- Detect malformed ESEARCH MAX values and return error
- Add RFC-4731 server requirement caveat to README and example
- Example now handles GetMaxUID error instead of silently ignoring it
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: simplify ESEARCH detection in parseMaxUIDSearchResponse
- Replace redundant strings.EqualFold on "* " (no letters) with ==
- Move strings.ToUpper inside prefix check to avoid uppercasing
every non-ESEARCH line
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Martin Brugnara <mb@martinbrugnara.me>
Co-authored-by: Martin Brugnara <martin@0x6d62.eu>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments