mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
Add sieve link to mail tree action menu
This commit is contained in:
parent
e10865c133
commit
eef0abc590
@ -345,6 +345,11 @@ class mail_ui
|
||||
'caption' => 'Delete Folder',
|
||||
'onExecute' => 'javaScript:app.mail.mail_DeleteFolder'
|
||||
),
|
||||
'sieve' => array(
|
||||
'caption' => 'Mail filter',
|
||||
'icon' => 'configure',
|
||||
'onExecute' => 'javaScript:app.mail.edit_sieve',
|
||||
),
|
||||
'edit_account' => array(
|
||||
'caption' => 'Edit account',
|
||||
'icon' => 'configure',
|
||||
@ -361,6 +366,9 @@ class mail_ui
|
||||
if (!$this->mail_bo->icServer->queryCapability('ACL')) unset($tree_actions['edit_acl']);
|
||||
$etpl->setElementAttribute(self::$nm_index.'[foldertree]','actions', $tree_actions);
|
||||
|
||||
if (!$this->mail_bo->icServer->acc_sieve_enabled) unset($tree_actions['sieve']);
|
||||
$etpl->setElementAttribute(self::$nm_index.'[foldertree]','actions', $tree_actions);
|
||||
|
||||
if (empty($content[self::$nm_index]['filter2']) || empty($content[self::$nm_index]['search'])) $content[self::$nm_index]['filter2']='quick';
|
||||
$readonlys = $preserv = $sel_options;
|
||||
$endtime = microtime(true) - $starttime;
|
||||
|
@ -2244,7 +2244,14 @@ app.classes.mail = AppJS.extend(
|
||||
aclCommonWidget.set_value(rights);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
*
|
||||
* @todo get the account id and open the relevant sieve, ATM alway open sieve rules which is set in preferences
|
||||
*/
|
||||
edit_sieve: function()
|
||||
{
|
||||
this.egw.open_link('mail.mail_sieve.index');
|
||||
},
|
||||
/**
|
||||
* Edit a folder acl for account(s)
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user