docs(12.1): capture phase context

This commit is contained in:
Jakub Zych
2026-10-04 14:52:44 +02:00
parent ee547d27f9
commit 6bf1943f8a
3 changed files with 364 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
---
title: Port MailBlocker and the block-mail checkbox with the mailing work
date: 2026-10-04
priority: medium
area: sm-user-plugin mail
---
The PHP user form has a "block all mail to this user" checkbox (`block_mail`, update context) backed by `Golem15\User\Models\MailBlocker`. Phase 12.1 left it out (12.1-CONTEXT D-21): it needs its own table and a check in every mail send path, which is a mail feature rather than an admin screen.
Implement it together with the mailing development (mail settings, mail templates): the MailBlocker table and model, the mailer consulting it before sending to a user, and the `block_mail` checkbox on the user admin form.
PHP source: `/media/nvme/dev/golem15/fonoteka/plugins/golem15/user/models/MailBlocker.php`, `controllers/Users.php` (`formAfterUpdate`, `formExtendModel`).