Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547355
ManiphestCreateMailReceiver.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
936 B
Referenced Files
None
Subscribers
None
ManiphestCreateMailReceiver.php
View Options
<?php
final
class
ManiphestCreateMailReceiver
extends
PhabricatorApplicationMailReceiver
{
protected
function
newApplication
()
{
return
new
PhabricatorManiphestApplication
();
}
protected
function
processReceivedMail
(
PhabricatorMetaMTAReceivedMail
$mail
,
PhutilEmailAddress
$target
)
{
$author
=
$this
->
getAuthor
();
$task
=
ManiphestTask
::
initializeNewTask
(
$author
);
$from_address
=
$mail
->
newFromAddress
();
if
(
$from_address
)
{
$task
->
setOriginalEmailSource
((
string
)
$from_address
);
}
$handler
=
new
ManiphestReplyHandler
();
$handler
->
setMailReceiver
(
$task
);
$handler
->
setActor
(
$author
);
$handler
->
setExcludeMailRecipientPHIDs
(
$mail
->
loadAllRecipientPHIDs
());
if
(
$this
->
getApplicationEmail
())
{
$handler
->
setApplicationEmail
(
$this
->
getApplicationEmail
());
}
$handler
->
processEmail
(
$mail
);
$mail
->
setRelatedPHID
(
$task
->
getPHID
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:32 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
100296
Default Alt Text
ManiphestCreateMailReceiver.php (936 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment