Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F124072462
20150116.maniphestapplicationemails.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 31, 06:50
Size
570 B
Mime Type
text/x-php
Expires
Sat, Aug 2, 06:50 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27800495
Attached To
rPH Phabricator
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
"
;
Event Timeline
Log In to Comment