3 $key = 'metamta.maniphest.default-public-author';
4 echo pht("Migrating `%s` to new application email infrastructure...\n", $key);
5 $value = PhabricatorEnv
::getEnvConfigIfExists($key);
6 $maniphest = new PhabricatorManiphestApplication();
8 PhabricatorMetaMTAApplicationEmail
::CONFIG_DEFAULT_AUTHOR
;
11 $app_emails = id(new PhabricatorMetaMTAApplicationEmailQuery())
12 ->setViewer(PhabricatorUser
::getOmnipotentUser())
13 ->withApplicationPHIDs(array($maniphest->getPHID()))
16 foreach ($app_emails as $app_email) {
17 $app_email->setConfigValue($config_key, $value);
22 echo pht('Done.')."\n";