summaryrefslogtreecommitdiff
path: root/plugins/kolab_delegation
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-11-06 09:20:15 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-11-06 09:20:15 (GMT)
commit4090c49ede4c33877b3c17205a3a3a7e2a50be64 (patch)
tree535a511b36c2cb0435c1117338063a30a323a157 /plugins/kolab_delegation
parentf24a1da34b3b5fb4d70958b1a26b382c0f7f58a0 (diff)
downloadroundcubemail-plugins-kolab-4090c49ede4c33877b3c17205a3a3a7e2a50be64.tar.gz
Do not check delegator context when loading kolab objects
Diffstat (limited to 'plugins/kolab_delegation')
-rw-r--r--plugins/kolab_delegation/kolab_delegation.php5
1 files changed, 5 insertions, 0 deletions
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']);