Skip to content

Stdlib: imap mailbox list/subscribe/create local-mbox surface (#27799) - #27865

Merged
PurHur merged 1 commit into
masterfrom
agent/advanced-stdlib-27799-imap-mailbox-mgmt
Aug 5, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/advanced-stdlib-27799-imap-mailbox-mgmt

Conversation

@PurHur

@PurHur PurHur commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Implements imap_list / imap_lsub / imap_subscribe / imap_unsubscribe / imap_createmailbox / imap_deletemailbox / imap_renamemailbox / imap_getmailboxes on the pure-PHP local mbox engine when IMAP is advertised (PHP_COMPILER_ENABLE_IMAP=1 or PROFILE≥8.4).
  • php-src refs: ext/imap/php_imap.stub.php, ext/imap/php_imap.c. PHP-in-PHP in ext/imap/ — no new runtime/*.c.
  • Closed-handle TypeError matches Zend; directory scan uses c-client * / % patterns.

Closes #27799

Test plan

  • Issue repro (VM):
PHP_COMPILER_ENABLE_IMAP=1 php bin/vm.php test/repro/issue_27799_imap_mailbox_mgmt.php

Output: all eight function_exists=yes; create/list/subscribe/lsub succeed; closed connection → TypeError.

  • Compliance FILE section via stdin matches --EXPECT-- for test/compliance/cases/stdlib/imap_mailbox_mgmt.phpt
  • php script/bootstrap-inventory.php --check → OK 7029/7029
  • php script/check-selfhost-spine-coverage-sync.php → OK
  • ./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && ./script/check-generated-docs.sh' → all generated docs in sync
  • Prior Stdlib: ext/imap — imap_open/mail/message API (ext/imap parity) #3663 repro still green (test/repro/issue_3663_imap_open.php)
  • Not covered: JIT/AOT (VM-only v1, same as existing imap_*); full c-client remote LIST

Made with Cursor

Register imap_list/lsub/subscribe/unsubscribe/createmailbox/deletemailbox/renamemailbox/getmailboxes on the pure-PHP mbox engine when IMAP is advertised.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 469d4ec into master Aug 5, 2026
0 of 2 checks passed
@PurHur
PurHur deleted the agent/advanced-stdlib-27799-imap-mailbox-mgmt branch August 5, 2026 19:20
PurHur added a commit that referenced this pull request Aug 5, 2026
Rebuild prelinked/bootstrap-gen0 argv driver so lowering_source_fingerprint
matches tip (03437367ebe7…) after #27864 merge raced with later stdlib landings.

Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur added a commit that referenced this pull request Aug 5, 2026
#27869)

Rebuild prelinked/bootstrap-gen0 argv driver so lowering_source_fingerprint
matches tip (03437367ebe7…) after #27864 merge raced with later stdlib landings.

Co-authored-by: PurHur <PurHur@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant