Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117754392
VerifyJob.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
841 B
Referenced Files
None
Subscribers
None
VerifyJob.php
View Options
<?php
namespace
App\Jobs\SharedFolder
;
use
App\Jobs\SharedFolderJob
;
class
VerifyJob
extends
SharedFolderJob
{
/**
* Execute the job.
*
* @return void
*/
public
function
handle
()
{
$folder
=
$this
->
getSharedFolder
();
if
(!
$folder
)
{
return
;
}
// the user has a mailbox (or is marked as such)
if
(
$folder
->
isImapReady
())
{
$this
->
fail
(
new
\Exception
(
"Shared folder {$this->folderId} is already verified."
));
return
;
}
$folderName
=
$folder
->
getSetting
(
'folder'
);
if
(
\App\Backends\IMAP
::
verifySharedFolder
(
$folderName
))
{
$folder
->
status
|=
\App\SharedFolder
::
STATUS_IMAP_READY
;
$folder
->
status
|=
\App\SharedFolder
::
STATUS_ACTIVE
;
$folder
->
save
();
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 6:53 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18719034
Default Alt Text
VerifyJob.php (841 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline