Files
summercms/.planning/todos/pending/mailblocker-with-mailing.md
Jakub Zych 3f9d3b4f11 docs: sync todos with g15office and map phases to milestone tasks
Tag the 17 open todos with their g15office task IDs, close 7 todos that
are already done or promoted to Phase 16.3, and record the sync rules
and the phase-to-task map in .planning/G15OFFICE.md.
2026-10-11 02:01:50 +02:00

14 lines
839 B
Markdown

---
title: Port MailBlocker and the block-mail checkbox with the mailing work
date: 2026-10-04
priority: medium
area: sm-user-plugin mail
g15office: 9cxuwfzy
---
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`).