Currently when an email is sent, we send it in the originating user's locale. We should sent it in the recipients.
Repro:
- Set User1 to ALL_CAPS
- Assign task to User2
- User2 gets email in ALL_CAPS
Expectation:
- User2 gets email in their locale
Currently when an email is sent, we send it in the originating user's locale. We should sent it in the recipients.
Repro:
Expectation:
There's some code which makes an effort to do this already, although I think it never really got hooked up. A few general things here:
@hach-que and I talked about the policy half of this on IRC recently -- here's a formal task if you want to keep an eye on it.
This is the upstream ticket tracking https://phabricator.wikimedia.org/T84941.
See also T4411 for some discussion of why I know that, although I should not.
These Editors are the only ones with state properties:
It's possible that other Editors implicitly put some state on the object or squirrel it away in secret places, but I'll focus on these first.
Not actually meaningfully stateful:
Stateful:
This change is potentially going to make mailing lists useless for nonpublic installs. Our immediate options are:
I suspect the best fix here may be to convert mailing lists into real users (similar to bot users). They would be unable to login or access the Conduit API, but could belong to projects, have access to Spaces, etc. This also resolves various outstanding tasks related to mailing lists.
I suppose using a logged-out viewer might be fine, since we'll use the omnipotent viewer if metamta.one-mail-per-recipient is not set, and essentially all installs that use mailing lists probably have this setting configured off.
One thing I caught is that things which use Transactions now need to implement ApplicationTransactionInterface. At least one object (PhameBlog) does not. I'll check the rest of the codebase and see if there are any more.
As far as I can tell, we're missing these:
Only PhameBlog actually sends email, so I'll leave the others for when we do something with them that needs the interface.
This seems to be working correctly in HEAD. In particular:
These changes were fairly sweeping, so please let me know if you see anything suspicious with mail/feed/notifications.
Is it expected that I still receive "Unknown Object" emails? I thought that this task would've solved this issue. Specifically, I received the following email from this install:
Date: Sun, 14 Jun 2015 13:55:43 +0000 To: REDACTED From: "epriestley (Evan Priestley)" <noreply@phabricator.com> Reply-to: T5681+27992+02827ca77acb1b46@phabricator.com Subject: [Maniphest] [Updated] T5681: Allow applications to provide custom policy rules Message-ID: <0000014df25ac266-554864a5-8de8-4081-9d04-61a39ebd59af-000000@email.amazonses.com> X-Priority: 3 Thread-Topic: T5681: Allow applications to provide custom policy rules X-Herald-Rules: <80>, none, <107> X-Phabricator-Projects: <#freebsd>, <#policy> X-Phabricator-To: <PHID-USER-ba8aeea1b3fe2853d6bb> X-Phabricator-Cc: <PHID-USER-euuoczx6gv6qgx27peft> X-Phabricator-Cc: <PHID-USER-5pbnbdnulu2hjfmqkmaw> X-Phabricator-Cc: <PHID-USER-jmvolb7vo5qolixkccuq> X-Phabricator-Cc: <PHID-USER-ees56kwwguslhqwe254y> X-Phabricator-Cc: <PHID-USER-462xomdaog6qjw4uockx> X-Phabricator-Cc: <PHID-USER-we4qnnjk4hiq33xcuov6> X-Phabricator-Cc: <PHID-USER-vg42yoljioxdv5iac3py> X-Phabricator-Cc: <PHID-USER-p2axfzcmoluit7llpzt2> X-Phabricator-Cc: <PHID-USER-nbueerxdfl6csylnv6oe> X-Phabricator-Cc: <PHID-USER-klzgd7tw6zaviykrts7j> X-Phabricator-Cc: <PHID-USER-ba8aeea1b3fe2853d6bb> X-Phabricator-Cc: <PHID-USER-7avs2zqt5vj35kcwi6jl> X-Phabricator-Cc: <PHID-USER-3yc34eijivr6rqs4vgiw> In-Reply-To: <maniphest-task-PHID-TASK-jdqcqjrzs27dbjht2asz@phabricator.com> References: <maniphest-task-PHID-TASK-jdqcqjrzs27dbjht2asz@phabricator.com> Thread-Index: OTYyMmNjMGRmOWJlZTk3YjVjMzU3ODgwNDMyIFV9h98= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: <maniphest-other> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/html; charset="utf-8" X-SES-Outgoing: 2015.06.14-54.240.9.118 Feedback-ID: 1.us-east-1.pGOpYxVIMAH0SQCvAG4joaSeOLUocwRUW94fFoAvTwo=:AmazonSES <div>epriestley added a commit: Unknown Object (Diffusion Commit).</div><br /><div><strong>TASK DETAIL</strong><div><a href="https://secure.phabricator.com/T5681" rel="noreferrer">https://secure.phabricator.com/T5681</a></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://secure.phabricator.com/settings/panel/emailpreferences/" rel="noreferrer">https://secure.phabricator.com/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>epriestley<br /><strong>Cc: </strong>20after4, robclancy, eadler, devurandom, Krenair, mikaye, aklapper, qgil, chad, sergey.vfx, epriestley, sascha-egerer, joshuaspence<br /></div>