feat(activesync): EAS 16.0 draft sync and calendar initial-sync in co…#163
Merged
Conversation
…re driver Report Drafts folder changes as CHANGE_TYPE_DRAFT, handle POOMMAIL2:Send and draft Add/Modify via Mail/Draft, expose bound recurrence exceptions on initial calendar sync at 16.0+, and unify calendar_import() return shape.
ralflang
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request: Core EAS 16.0 driver and draft sync
Conventional commit message
PR title
feat(activesync): EAS 16.0 draft sync and calendar initial-sync in core driverSummary
CHANGE_TYPE_DRAFT(not flag-only changes).<Add>/<Modify>viaHorde_Core_ActiveSync_Mail_Draft(append + replace-by-delete for edits).POOMMAIL2:Sendon Drafts-folder Sync: build RFC822 viatoRfc822Stream(), send via SMTP, delete source draft.IsDrafton outbound mail messages from the Drafts collection at 16.0+.hide_exceptions => falsetocalendar_listUids()when protocol version ≥ 16.0 so bound recurrence exceptions appear as separate items on first sync (matches kronolith instance model).calendar_import()always returns['uid' => …, 'atchash' => …]; deprecatedcalendar_import16()delegates to it.Horde_Core_ActiveSync_Mail_Draftparses Type-4 (MIME) bodies from iOS when POOMMAIL headers are omitted.Driver.php; fix typo.Changed files
lib/Horde/Core/ActiveSync/Driver.phpCHANGE_TYPE_DRAFT; draft send/edit path;hide_exceptionson initial calendar sync;IsDraftexportlib/Horde/Core/ActiveSync/Connector.phpcalendar_import(); deprecatecalendar_import16()lib/Horde/Core/ActiveSync/Mail/Draft.phptoRfc822Stream()/ append-replace edit modeltest/Unit/ActiveSync/DraftSyncTest.phpRelated changes (other packages)
Deploy together with:
listUids(hide_exceptions)Test plan
php vendor/bin/phpunit --bootstrap core-tests-bootstrap.php vendor/horde/core/test/Unit/ActiveSync/DraftSyncTest.php— all tests passSendMailsends message and saves to Sent (device test @ single account)IsDraft: 1(device test)Device testing notes (2026-06-16)
SendMail