Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F950627
20150116.maniphestapplicationemails.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
570 B
Referenced Files
None
Subscribers
None
20150116.maniphestapplicationemails.php
View Options
<?php
$key
=
'metamta.maniphest.public-create-email'
;
echo
pht
(
"Migrating `%s` to new application email infrastructure...
\n
"
,
$key
);
$value
=
PhabricatorEnv
::
getEnvConfigIfExists
(
$key
);
$maniphest
=
new
PhabricatorManiphestApplication
();
if
(
$value
)
{
try
{
PhabricatorMetaMTAApplicationEmail
::
initializeNewAppEmail
(
PhabricatorUser
::
getOmnipotentUser
())
->
setAddress
(
$value
)
->
setApplicationPHID
(
$maniphest
->
getPHID
())
->
save
();
}
catch
(
AphrontDuplicateKeyQueryException
$ex
)
{
// Already migrated?
}
}
echo
pht
(
'Done.'
).
"
\n
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 2:12 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224274
Default Alt Text
20150116.maniphestapplicationemails.php (570 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment