mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
support for EGroupware administrated IMAP servers (eg. setting quota for Cyrus, and displaying used quota)
This commit is contained in:
parent
0ff14b14fa
commit
155316ae16
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user