summaryrefslogtreecommitdiff
path: root/plugins/managesieve/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-14 08:31:37 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-14 08:32:14 +0200
commit6543f97511f6f16e0f26f24def991e4be7f781c3 (patch)
tree335b2081fa25751135ca095094a6fe0c54cac6d9 /plugins/managesieve/lib
parent39660c3bfad01a1a8f1caeac04a5090b32fc4aab (diff)
Fixed issue with DBMail bug [http://pear.php.net/bugs/bug.php?id=19077] (#1488594)
Diffstat (limited to 'plugins/managesieve/lib')
-rw-r--r--plugins/managesieve/lib/Net/Sieve.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/managesieve/lib/Net/Sieve.php b/plugins/managesieve/lib/Net/Sieve.php
index a8e36d8d7..8a0a9b0e1 100644
--- a/plugins/managesieve/lib/Net/Sieve.php
+++ b/plugins/managesieve/lib/Net/Sieve.php
@@ -1098,7 +1098,9 @@ class Net_Sieve
return PEAR::raiseError(trim($response . $line), 6);
}
- if (preg_match('/^{([0-9]+)}/i', $line, $matches)) {
+ // "\+?" is added in the regexp to workaround DBMail bug
+ // http://dbmail.org/mantis/view.php?id=963
+ if (preg_match('/^{([0-9]+)\+?}/i', $line, $matches)) {
// Matches literal string responses.
$line = $this->_recvBytes($matches[1] + 2);