support for EGroupware administrated IMAP servers (eg. setting quota for Cyrus, and displaying used quota)

This commit is contained in:
Ralf Becker 2014-04-07 17:06:53 +00:00
parent 0ff14b14fa
commit 155316ae16
2 changed files with 1 additions and 27 deletions

View File

@ -159,7 +159,7 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send
$identities = array();
if (!isset($params['setup']))
{
$profileID=(self::$profileID=='G'?emailadmin_bo::getDefaultAccID():self::$profileID);
$profileID=(self::$profileID=='G'?emailadmin_account::get_default_acc_id():self::$profileID);
if (!$this->mail) $this->mail = mail_bo::getInstance(true,$profileID,true,false,true);
foreach($allIdentities as $key => $singleIdentity) {
if (isset($identities[$singleIdentity['acc_id']])) continue; // only use the first

View File

@ -16,32 +16,6 @@
class mail_hooks
{
/**
* Menu for Admin >> Edit accounts
*/
static public function adminMenu()
{
if (($default_profile_id = emailadmin_bo::getDefaultAccID()))
{
$mail_bo = mail_bo::forceEAProfileLoad($default_profile_id);
$ogServer = $mail_bo->mailPreferences->getOutgoingServer($default_profile_id);
//error_log(__METHOD__."() default_profile_id = $default_profile_id, get_class(ogServer)=".get_class($ogServer));
if (!in_array(get_class($ogServer), array('defaultsmtp', 'emailadmin_smtp')))
{
global $menuData;
$menuData[] = Array
(
'description' => 'email settings',
'url' => '/index.php',
'extradata' => 'menuaction=emailadmin.uiuserdata.editUserData'
);
}
}
}
/**
* Hook called by link-class to include mail in the appregistry of the linkage
*
* @param array/string $location location and other parameters (not used)