summaryrefslogtreecommitdiff
path: root/plugins/managesieve/managesieve.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-07-24 10:06:08 +0200
committerAleksander Machniak <alec@alec.pl>2012-07-24 10:06:08 +0200
commit23856c9d4ecec38ae530adf1996b00968dbbfb17 (patch)
tree0dc7e39eb9a1b535b1683118f984be2d79fb3fdb /plugins/managesieve/managesieve.php
parent9620540a63d7dcabfa7459440dc5a35fe9a9507a (diff)
Fix performance issue in message_headers_output hook handling,
Update version number
Diffstat (limited to 'plugins/managesieve/managesieve.php')
-rw-r--r--plugins/managesieve/managesieve.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php
index 70b280d4b..8ef5f3fdc 100644
--- a/plugins/managesieve/managesieve.php
+++ b/plugins/managesieve/managesieve.php
@@ -62,7 +62,7 @@ class managesieve extends rcube_plugin
"x-beenthere",
);
- const VERSION = '5.0';
+ const VERSION = '5.2';
const PROGNAME = 'Roundcube (Managesieve)';
@@ -143,6 +143,13 @@ class managesieve extends rcube_plugin
*/
function mail_headers($args)
{
+ // this hook can be executed many times
+ if ($this->mail_headers_done) {
+ return $args;
+ }
+
+ $this->mail_headers_done = true;
+
$headers = $args['headers'];
$ret = array();