1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-07 13:21:02 +01:00
phorge-phorge/src/applications/metamta
epriestley 5537e29ee8 Move "Welcome" mail generation out of PhabricatorUser
Summary:
Ref PHI1027. Currently, `PhabricatorUser` has a couple of mail-related methods which shouldn't really be there in the long term. Immediately, I want to make some adjusments to the welcome email.

Move "Welcome" mail generation to a separate class and consolidate all the error handling. (Eventually, "invite" and "verify address" email should move to similar subclasses, too.) Previously, a bunch of errors/conditions got checked in multiple places.

The only functional change is that we no longer allow you to send welcome mail to disabled users.

Test Plan:
  - Used "Send Welcome Mail" from profile pages to send mail.
  - Hit "not admin", "disabled user", "bot/mailing list" errors.
  - Used `scripts/user/add_user.php` to send welcome mail.
  - Used "Create New User" to send welcome mail.
  - Verified mail with `bin/mail show-outbound`. (Cleaned up a couple of minor display issues here.)

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D19989
2019-01-18 19:50:35 -08:00
..
action When we fail to process mail, tell the user about it 2014-04-03 18:43:18 -07:00
adapter Add a Twilio SMS message adapter 2019-01-16 13:25:59 -08:00
application Support Postmark inbound mail via webhook 2018-02-08 06:25:26 -08:00
applicationpanel Allow multiple mail receivers to react to an individual email 2019-01-16 12:28:02 -08:00
command Use PhutilClassMapQuery 2015-07-07 22:51:57 +10:00
constants Don't bounce mail messages if any recipient was reserved 2019-01-17 19:17:37 -08:00
contentsource Modularize content sources 2016-03-26 11:59:45 -07:00
controller Update Postmark adapter for multiple mail media 2019-01-16 13:00:34 -08:00
edge MetaMTA - more progress towards a mail application 2015-06-23 11:37:14 -07:00
editor Prevent application email addresses from shadowing user email addresses 2019-01-16 13:28:08 -08:00
engine Fix an issue where "CC"-only email improperly wiped CC addresses 2019-01-16 13:22:43 -08:00
engineextension Manage object mailKeys automatically in Mail instead of storing them on objects 2018-04-25 06:46:58 -07:00
exception Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
future Add a Twilio SMS message adapter 2019-01-16 13:25:59 -08:00
garbagecollector Support DestructionEngine in MetaMTAMail 2018-02-02 14:37:33 -08:00
herald Prevent "Call webhooks" Herald action from appearing in UI for adapters which can't fire it 2018-02-11 06:15:29 -08:00
management Move "Welcome" mail generation out of PhabricatorUser 2019-01-18 19:50:35 -08:00
message Add a Twilio SMS message adapter 2019-01-16 13:25:59 -08:00
parser Extend from Phobject 2015-06-15 18:02:27 +10:00
phid Mark PhabricatorPHIDType::getPHIDTypeApplicationClass() as abstract 2015-11-03 06:47:12 +11:00
query Allow multiple mail receivers to react to an individual email 2019-01-16 12:28:02 -08:00
receiver Update Mail test adapter for the newer adapter API and make all tests pass 2019-01-16 13:01:25 -08:00
replyhandler Drop empty inbound mail at the beginning of the receive workflow, not inside object handlers 2019-01-04 13:50:21 -08:00
stamp Fix a mail stamp issue with blocking reviewers 2018-02-13 17:56:21 -08:00
storage Don't bounce mail messages if any recipient was reserved 2019-01-17 19:17:37 -08:00
typeahead Fix packages(project) to work properly and add it to "MailableFunctionDatasource" 2018-10-19 13:53:27 -07:00
util Prevent application email addresses from shadowing user email addresses 2019-01-16 13:28:08 -08:00
view Rename "MetaMTA" mail attachments and add more mail message objects 2019-01-04 15:23:44 -08:00
PhabricatorMetaMTAWorker.php Send permanent dameon failures to the log, even when not running in verbose mode 2017-06-08 15:26:19 -07:00