Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93936670
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
Mon, Dec 2, 15:57
Size
570 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 15:57 (2 d)
Engine
blob
Format
Raw Data
Handle
22725030
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