plugins/kolab_delegation

Aleksander Machniak machniak at kolabsys.com
Wed Nov 6 10:20:52 CET 2013


 plugins/kolab_delegation/kolab_delegation.php |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 4090c49ede4c33877b3c17205a3a3a7e2a50be64
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Wed Nov 6 10:20:15 2013 +0100

    Do not check delegator context when loading kolab objects

diff --git a/plugins/kolab_delegation/kolab_delegation.php b/plugins/kolab_delegation/kolab_delegation.php
index 23e0107..060308f 100644
--- a/plugins/kolab_delegation/kolab_delegation.php
+++ b/plugins/kolab_delegation/kolab_delegation.php
@@ -169,6 +169,11 @@ class kolab_delegation extends rcube_plugin
         // So we can handle event invitations on behalf of delegator
         // @TODO: should we do this only in delegators' folders?
 
+        // skip invalid messages or Kolab objects (for better performance)
+        if (empty($args['object']->headers) || $args['object']->headers->get('x-kolab-type', false)) {
+            return $args;
+        }
+
         $engine = $this->engine();
         $context = $engine->delegator_context_from_message($args['object']);
 




More information about the commits mailing list