From: hickert Date: Mon, 6 Sep 2010 11:56:17 +0000 (+0000) Subject: Added dummy filters X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=adb6c1d65910786003f7b49e5deb141c0c01bf88;p=gosa.git Added dummy filters git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19524 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/class_filterEditor.inc b/gosa-plugins/groupware/personal/groupware/class_filterEditor.inc index 3474ed024..31ae41c39 100644 --- a/gosa-plugins/groupware/personal/groupware/class_filterEditor.inc +++ b/gosa-plugins/groupware/personal/groupware/class_filterEditor.inc @@ -20,6 +20,49 @@ class filterEditor extends plugin{ function execute() { + + $this->filter = array(); + $this->filter[] = array ( + 'TYPE' => 'AND', + 'NAME' => 'MuellRaus', + 'DESC' => 'Spam loeschen', + 'CONDITIONS' => array ( + array('FIELD' => 'from', + 'COMPARATOR' => 'equals', + 'MATCH' => 'herbert'), + array('FIELD' => 'subject', + 'COMPARATOR' => 'contains', + 'MATCH' => 'advertising'), + ), + 'ACTION' => array ( + array('ACTION'=>'MARK', + 'VALUE' => 'SPAM'), + array('ACTION'=>'MOVE', + 'VALUE' => 'gosa+shared/hickert/trash') + ) + ); + + $this->filter[] = array ( + 'TYPE' => 'OR', + 'NAME' => 'Kunden', + 'DESC' => 'Kunden Mails in Wichtig schieben', + 'CONDITIONS' => array ( + array('FIELD' => 'from', + 'COMPARATOR' => 'contains', + 'MATCH' => 'gonicus'), + array('FIELD' => 'from', + 'COMPARATOR' => 'contains', + 'MATCH' => 'lka'), + ), + 'ACTION' => array ( + array('ACTION'=>'MARK', + 'VALUE' => 'HAM'), + array('ACTION'=>'MOVE', + 'VALUE' => 'gosa+shared/hickert/wichtig') + ) + ); + + $smarty = get_smarty(); diff --git a/gosa-plugins/groupware/personal/groupware/class_groupware.inc b/gosa-plugins/groupware/personal/groupware/class_groupware.inc index fa70d041e..a4c50e91a 100644 --- a/gosa-plugins/groupware/personal/groupware/class_groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_groupware.inc @@ -85,6 +85,9 @@ class groupware extends plugin } } + // TODO: Detect if we've a valid groupware account here. + $this->is_account = FALSE; + // Set vacation start/stop if not set alreasy $this->vacationStart = time(); $this->vacationStop = time() + (14 * 60*60*24); diff --git a/gosa-plugins/groupware/personal/groupware/filterEditor.tpl b/gosa-plugins/groupware/personal/groupware/filterEditor.tpl index 338e0f910..8c528f1fb 100644 --- a/gosa-plugins/groupware/personal/groupware/filterEditor.tpl +++ b/gosa-plugins/groupware/personal/groupware/filterEditor.tpl @@ -1,6 +1,15 @@

{t}Available filter rules {/t}

{$list} + + +