Skip to content

Variable number of spaces before date#1406

Merged
mschering merged 1 commit intoIntermesh:masterfrom
rockworm:fix-imap-internaldate-regex
Feb 27, 2026
Merged

Variable number of spaces before date#1406
mschering merged 1 commit intoIntermesh:masterfrom
rockworm:fix-imap-internaldate-regex

Conversation

@rockworm
Copy link
Copy Markdown
Contributor

@rockworm rockworm commented Jan 3, 2026

Fix IMAP INTERNALDATE regex for variable whitespace

The current regex expects exactly one space after INTERNALDATE, but
RFC 3501 allows variable whitespace. Newer Cyrus IMAP versions (3.8.6+)
use multiple spaces for single-digit dates, breaking the regex match.

Fixes Z-Push sync failures for some IMAP servers, Cyrus being one.

@mschering
Copy link
Copy Markdown
Member

Thanks! I'll merge this one.

@mschering mschering merged commit 17f2c29 into Intermesh:master Feb 27, 2026
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.

2 participants