diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-08-14 09:59:54 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-08-14 09:59:54 +0200 |
commit | c0aedfa34a641d5116ae8b8d5c1009c54ffee3b0 (patch) | |
tree | 88023e3ca3411cf9a38be277949676a8a1a2a48e /plugins/managesieve/lib | |
parent | 8faaa7d1d07990c36c92fe251a9296ca988cdeff (diff) | |
parent | 2922b727e81ca25717f48da4baff3e74594821b0 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'plugins/managesieve/lib')
-rw-r--r-- | plugins/managesieve/lib/Net/Sieve.php | 4 |
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); |