From c1037eda18da66a41fc996437986ab6dc499f7c1 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 14 Aug 2012 08:31:37 +0200 Subject: Fixed issue with DBMail bug [http://pear.php.net/bugs/bug.php?id=19077] (#1488594) --- plugins/managesieve/lib/Net/Sieve.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/managesieve/lib/Net/Sieve.php') 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); -- cgit v1.2.3