Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77795081
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
Fri, Aug 16, 11:04
Size
570 B
Mime Type
text/x-php
Expires
Sun, Aug 18, 11:04 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19922942
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