summaryrefslogtreecommitdiff
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:07:00 +0200
commit9d129b5fe2f35ecb497703d818a68d431b5782c6 (patch)
tree0f543709228a556a3aeba9ab2df74d8401332ef0
parenteed9487e6e6998e08fdbd7922c3c20e98c727365 (diff)
Fix performance issue in message_headers_output hook handling,
Update version number
-rw-r--r--plugins/managesieve/Changelog3
-rw-r--r--plugins/managesieve/managesieve.php9
2 files changed, 10 insertions, 2 deletions
diff --git a/plugins/managesieve/Changelog b/plugins/managesieve/Changelog
index 997e50354..722732fd5 100644
--- a/plugins/managesieve/Changelog
+++ b/plugins/managesieve/Changelog
@@ -1,7 +1,8 @@
-* version 5.2 [2012-07-23]
+* version 5.2 [2012-07-24]
-----------------------------------------------------------
- Added GUI for variables setting - RFC5229 (patch from Paweł Słowik)
- Fixed scrollbars in Larry's iframes
+- Fix performance issue in message_headers_output hook handling
* version 5.1 [2012-06-21]
-----------------------------------------------------------
diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php
index 7c10053a3..84d8ef6ca 100644
--- a/plugins/managesieve/managesieve.php
+++ b/plugins/managesieve/managesieve.php
@@ -64,7 +64,7 @@ class managesieve extends rcube_plugin
"x-beenthere",
);
- const VERSION = '5.0';
+ const VERSION = '5.2';
const PROGNAME = 'Roundcube (Managesieve)';
@@ -145,6 +145,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();