summaryrefslogtreecommitdiff
path: root/plugins/managesieve/lib/Net/Sieve.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-08-15 18:06:43 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-08-15 18:06:43 +0200
commitda0c480b9d4082717ee20a254c17c892799cfbc8 (patch)
tree3b141eea72272b8b777af903c21a354abc56cc3d /plugins/managesieve/lib/Net/Sieve.php
parentd063993a4b05930e8aeccee1298e28084e3dccab (diff)
parent872d209bcdd80d379d575824cc1764e422fac219 (diff)
Merge branch 'release-0.7' of github.com:roundcube/roundcubemail into release-0.7v0.7.3
Diffstat (limited to 'plugins/managesieve/lib/Net/Sieve.php')
-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);