Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Getting user quota information on Aurora Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
letsgo
Newbie
Newbie
Avatar

Joined: 23 August 2016
Location: Turkey
Online Status: Offline
Posts: 15
Posted: 03 October 2016 at 6:53am | IP Logged Quote letsgo

Hi Guys,

Is there any way to access used & free space quota information of user's email and file storage on Aurora?

I Send,receive some emails and upload pictures to "Files", Then tried below codes but can't find a useful data

$oPluginManager->Actions()->GetCurrentAccount()->StorageQuota // 104857600
$oPluginManager->Actions()->GetCurrentAccount()->StorageUsedSpace // 0

Best Regards.
Back to Top View letsgo's Profile Search for other posts by letsgo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 04 October 2016 at 6:29am | IP Logged Quote Igor

Try the following code:

Code:
include_once '/var/www/769/libraries/afterlogic/api.php';
if (class_exists('CApi') && CApi::IsValid()) {
  $oApiIntegratorManager = CApi::Manager('integrator');
  $oAccount = $oApiIntegratorManager->LoginToAccount($sEmail, $sPassword);
  if ($oAccount)
  {
    $oApiMailManager = CApi::Manager('mail');
    $quota=$oApiMailManager->getQuota($oAccount);
    echo $quota[0]." of ".$quota[1]."Kb used";
  }


Getting 104857600 (100G) in response stands for unlimited quota.

As for files, currently Aurora doesn't support per-user quotas there.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
letsgo
Newbie
Newbie
Avatar

Joined: 23 August 2016
Location: Turkey
Online Status: Offline
Posts: 15
Posted: 04 October 2016 at 7:23am | IP Logged Quote letsgo

Thank you for the answer, On my example, I get the below echo:
"4488 of 488281 Kb used".

How is work the 'File' feature is have domain based quota or users have unlimited file storage ?
Back to Top View letsgo's Profile Search for other posts by letsgo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 04 October 2016 at 7:26am | IP Logged Quote Igor

In Aurora, quota is available on tenant level only. You can read more about tenants and multi-tenancy here.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide