Skip to content

Stdlib: imap flags/alerts/gc/thread/acl/headers/mailboxmsginfo (#27800) - #27892

Merged
PurHur merged 1 commit into
masterfrom
agent/advanced-stdlib-27800-imap-flags-meta
Aug 5, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/advanced-stdlib-27800-imap-flags-meta

Conversation

@PurHur

@PurHur PurHur commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Implements imap_setflag_full / imap_clearflag_full, imap_alerts, imap_gc, imap_thread, imap_getacl / imap_setacl, imap_headers, and imap_mailboxmsginfo on the pure-PHP local-mbox engine.
  • Registers IMAP_GC_ELT / IMAP_GC_ENV / IMAP_GC_TEXTS.
  • PHP-in-PHP only; JIT still throws LogicException (same as sibling IMAP builtins). Local UIDs == sequence numbers; thread graph is flat (no References).

Closes #27800

php-src reference

  • ext/imap/php_imap.stub.php / php_imap.c — flag/alert/gc/thread/acl/headers/mailboxmsginfo

Test plan

  • PHP_COMPILER_ENABLE_IMAP=1 php bin/vm.php test/repro/issue_27800_imap_flags_meta.php — all symbols present; set/clear Seen; mailboxmsginfo/headers/gc/thread/acl OK; closed → TypeError
  • Compliance phpt FILE vs EXPECT (stdin) — MATCH
  • php script/bootstrap-inventory.php --check + spine coverage sync — OK
  • Full VMTest not run (master provider broken on unrelated DOM phpt)

Made with Cursor

Local-mbox flag mutation, alert drain, GC, flat thread map, ACL, header
summaries, and mailboxmsginfo when IMAP is advertised.

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

Development

Successfully merging this pull request may close these issues.

Stdlib: imap_setflag_full/clearflag_full + alerts/gc/thread/acl/headers/mailboxmsginfo missing when IMAP advertised (ext/imap/php_imap.stub.php)

1 participant