mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
MetaMTA: Owners, Pholio, Macro
Summary: Port MetaMTA options for Owners, Pholio and Macro. At some point I'd like to get rid of all these options (provide one "reply domain", and not allow overrides of reply handlers -- use events instead) but that's a battle we can fight later. Test Plan: Looked at options, looked at setup issues, edited something. Reviewers: codeblock, btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2255 Differential Revision: https://secure.phabricator.com/D4469
This commit is contained in:
parent
3ded757e84
commit
c2a70932e3
4 changed files with 83 additions and 0 deletions
|
@ -914,6 +914,7 @@ phutil_register_library_map(array(
|
|||
'PhabricatorLoginValidateController' => 'applications/auth/controller/PhabricatorLoginValidateController.php',
|
||||
'PhabricatorLogoutController' => 'applications/auth/controller/PhabricatorLogoutController.php',
|
||||
'PhabricatorMacroCommentController' => 'applications/macro/controller/PhabricatorMacroCommentController.php',
|
||||
'PhabricatorMacroConfigOptions' => 'applications/macro/config/PhabricatorMacroConfigOptions.php',
|
||||
'PhabricatorMacroController' => 'applications/macro/controller/PhabricatorMacroController.php',
|
||||
'PhabricatorMacroDisableController' => 'applications/macro/controller/PhabricatorMacroDisableController.php',
|
||||
'PhabricatorMacroEditController' => 'applications/macro/controller/PhabricatorMacroEditController.php',
|
||||
|
@ -1022,6 +1023,7 @@ phutil_register_library_map(array(
|
|||
'PhabricatorObjectSelectorDialog' => 'view/control/PhabricatorObjectSelectorDialog.php',
|
||||
'PhabricatorOffsetPagedQuery' => 'infrastructure/query/PhabricatorOffsetPagedQuery.php',
|
||||
'PhabricatorOwnerPathQuery' => 'applications/owners/query/PhabricatorOwnerPathQuery.php',
|
||||
'PhabricatorOwnersConfigOptions' => 'applications/owners/config/PhabricatorOwnersConfigOptions.php',
|
||||
'PhabricatorOwnersController' => 'applications/owners/controller/PhabricatorOwnersController.php',
|
||||
'PhabricatorOwnersDAO' => 'applications/owners/storage/PhabricatorOwnersDAO.php',
|
||||
'PhabricatorOwnersDeleteController' => 'applications/owners/controller/PhabricatorOwnersDeleteController.php',
|
||||
|
@ -1056,6 +1058,7 @@ phutil_register_library_map(array(
|
|||
'PhabricatorPeopleQuery' => 'applications/people/PhabricatorPeopleQuery.php',
|
||||
'PhabricatorPhabricatorOAuthConfigOptions' => 'applications/config/option/PhabricatorPhabricatorOAuthConfigOptions.php',
|
||||
'PhabricatorPhameConfigOptions' => 'applications/phame/config/PhabricatorPhameConfigOptions.php',
|
||||
'PhabricatorPholioConfigOptions' => 'applications/pholio/config/PhabricatorPholioConfigOptions.php',
|
||||
'PhabricatorPhrictionConfigOptions' => 'applications/phriction/config/PhabricatorPhrictionConfigOptions.php',
|
||||
'PhabricatorPinboardItemView' => 'view/layout/PhabricatorPinboardItemView.php',
|
||||
'PhabricatorPinboardView' => 'view/layout/PhabricatorPinboardView.php',
|
||||
|
@ -2283,6 +2286,7 @@ phutil_register_library_map(array(
|
|||
'PhabricatorLoginValidateController' => 'PhabricatorAuthController',
|
||||
'PhabricatorLogoutController' => 'PhabricatorAuthController',
|
||||
'PhabricatorMacroCommentController' => 'PhabricatorMacroController',
|
||||
'PhabricatorMacroConfigOptions' => 'PhabricatorApplicationConfigOptions',
|
||||
'PhabricatorMacroController' => 'PhabricatorController',
|
||||
'PhabricatorMacroDisableController' => 'PhabricatorMacroController',
|
||||
'PhabricatorMacroEditController' => 'PhabricatorMacroController',
|
||||
|
@ -2373,6 +2377,7 @@ phutil_register_library_map(array(
|
|||
'PhabricatorObjectItemView' => 'AphrontView',
|
||||
'PhabricatorObjectListView' => 'AphrontView',
|
||||
'PhabricatorOffsetPagedQuery' => 'PhabricatorQuery',
|
||||
'PhabricatorOwnersConfigOptions' => 'PhabricatorApplicationConfigOptions',
|
||||
'PhabricatorOwnersController' => 'PhabricatorController',
|
||||
'PhabricatorOwnersDAO' => 'PhabricatorLiskDAO',
|
||||
'PhabricatorOwnersDeleteController' => 'PhabricatorOwnersController',
|
||||
|
@ -2412,6 +2417,7 @@ phutil_register_library_map(array(
|
|||
'PhabricatorPeopleQuery' => 'PhabricatorOffsetPagedQuery',
|
||||
'PhabricatorPhabricatorOAuthConfigOptions' => 'PhabricatorApplicationConfigOptions',
|
||||
'PhabricatorPhameConfigOptions' => 'PhabricatorApplicationConfigOptions',
|
||||
'PhabricatorPholioConfigOptions' => 'PhabricatorApplicationConfigOptions',
|
||||
'PhabricatorPhrictionConfigOptions' => 'PhabricatorApplicationConfigOptions',
|
||||
'PhabricatorPinboardItemView' => 'AphrontView',
|
||||
'PhabricatorPinboardView' => 'AphrontView',
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
final class PhabricatorMacroConfigOptions
|
||||
extends PhabricatorApplicationConfigOptions {
|
||||
|
||||
public function getName() {
|
||||
return pht("Macro");
|
||||
}
|
||||
|
||||
public function getDescription() {
|
||||
return pht("Configure Macro.");
|
||||
}
|
||||
|
||||
public function getOptions() {
|
||||
return array(
|
||||
$this->newOption('metamta.macro.reply-handler-domain', 'string', null)
|
||||
->setDescription(pht(
|
||||
'As {{metamta.maniphest.reply-handler-domain}}, but affects Macro.')),
|
||||
$this->newOption('metamta.macro.subject-prefix', 'string', '[Macro]')
|
||||
->setDescription(pht('Subject prefix for Macro email.'))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
final class PhabricatorOwnersConfigOptions
|
||||
extends PhabricatorApplicationConfigOptions {
|
||||
|
||||
public function getName() {
|
||||
return pht("Owners");
|
||||
}
|
||||
|
||||
public function getDescription() {
|
||||
return pht("Configure Owners.");
|
||||
}
|
||||
|
||||
public function getOptions() {
|
||||
return array(
|
||||
$this->newOption(
|
||||
'metamta.package.reply-handler',
|
||||
'class',
|
||||
'OwnersPackageReplyHandler')
|
||||
->setBaseClass('PhabricatorMailReplyHandler')
|
||||
->setDescription(pht('Reply handler for owners mail.')),
|
||||
$this->newOption('metamta.package.subject-prefix', 'string', '[Package]')
|
||||
->setDescription(pht('Subject prefix for Owners email.'))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
final class PhabricatorPholioConfigOptions
|
||||
extends PhabricatorApplicationConfigOptions {
|
||||
|
||||
public function getName() {
|
||||
return pht("Pholio");
|
||||
}
|
||||
|
||||
public function getDescription() {
|
||||
return pht("Configure Pholio.");
|
||||
}
|
||||
|
||||
public function getOptions() {
|
||||
return array(
|
||||
$this->newOption('metamta.pholio.reply-handler-domain', 'string', null)
|
||||
->setDescription(
|
||||
pht(
|
||||
'Like {{metamta.maniphest.reply-handler-domain}}, but affects '.
|
||||
'Pholio.')),
|
||||
$this->newOption('metamta.pholio.subject-prefix', 'string', '[Pholio]')
|
||||
->setDescription(pht('Subject prefix for Pholio email.'))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue