Page MenuHomePhorge

Mail Notifications: Do not CC disabled user accounts
Needs ReviewPublic

Authored by aklapper on Mon, Apr 21, 19:51.
Tags
None
Referenced Files
F3648353: D25968.1745421643.diff
Tue, Apr 22, 15:20
F3648307: D25968.1745420440.diff
Tue, Apr 22, 15:00
F3648287: D25968.1745419990.diff
Tue, Apr 22, 14:53
F3648274: D25968.1745419721.diff
Tue, Apr 22, 14:48
F3648264: D25968.1745419526.diff
Tue, Apr 22, 14:45
F3648243: D25968.1745419393.diff
Tue, Apr 22, 14:43
F3648242: D25968.1745419392.diff
Tue, Apr 22, 14:43
F3648241: D25968.1745419391.diff
Tue, Apr 22, 14:43

Details

Summary

Do not list disabled user accounts in mail footer (when metamta.recipients.show-hints is enabled) and do not add them to the X-Phabricator-Cc header, as they are not supposed to receive mail anyway per https://we.phorge.it/source/phorge/browse/master/src/applications/metamta/query/PhabricatorMetaMTAActor.php;07723b46274c6dbf062af070e5c19101537e0d91$130-131.

Closes T16033

Test Plan

Likely trigger notifications on a task or changeset with disabled user accounts being subscribed or members/watchers of a project. Not tested though as I do not have a local mail setup.

Diff Detail

Repository
rP Phorge
Branch
T16033disabledRecipients (branched from master)
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 1878
Build 1878: arc lint + arc unit

Unit TestsFailed

TimeTest
601 msPhabricatorCelerityTestCase::testCelerityMaps
Assertion failed, expected 'true' (at PhabricatorCelerityTestCase.php:27): When this test fails, it means the Celerity resource map is out of date. Run `bin/celerity map` to rebuild it. ACTUAL VALUE
772 msPhabricatorConduitTestCase::testConduitMethods
1 assertion passed.
441 msPhabricatorInfrastructureTestCase::testApplicationsInstalled
1 assertion passed.
467 msPhabricatorInfrastructureTestCase::testRejectMySQLNonUTF8Queries
1 assertion passed.
493 msPhabricatorLibraryTestCase::testEverythingImplemented
1 assertion passed.
View Full Test Results (1 Failed · 6 Passed)