Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96579673
ConpherenceThreadMailReceiver.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
Sat, Dec 28, 11:37
Size
955 B
Mime Type
text/x-php
Expires
Mon, Dec 30, 11:37 (1 d, 9 h)
Engine
blob
Format
Raw Data
Handle
23190696
Attached To
rPH Phabricator
ConpherenceThreadMailReceiver.php
View Options
<?php
final
class
ConpherenceThreadMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
$app_class
=
'PhabricatorConpherenceApplication'
;
return
PhabricatorApplication
::
isClassInstalled
(
$app_class
);
}
protected
function
getObjectPattern
()
{
return
'E[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
trim
(
$pattern
,
'E'
);
return
id
(
new
ConpherenceThreadQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
processReceivedObjectMail
(
PhabricatorMetaMTAReceivedMail
$mail
,
PhabricatorLiskDAO
$object
,
PhabricatorUser
$sender
)
{
$handler
=
id
(
new
ConpherenceReplyHandler
())
->
setMailReceiver
(
$object
);
$handler
->
setActor
(
$sender
);
$handler
->
setExcludeMailRecipientPHIDs
(
$mail
->
loadExcludeMailRecipientPHIDs
());
$handler
->
processEmail
(
$mail
);
}
}
Event Timeline
Log In to Comment