Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.7

Bug #19077 Problem when using DBMail-timsieved
Submitted: 2011-11-25 13:49 UTC
From: alec Assigned:
Status: Wont fix Package: Net_Sieve (version 1.3.2)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2011-11-25 13:49 UTC] alec (Aleksander Machniak)
Description: ------------ One Roundcube user has a problem using Net_Sieve with DBMail-timesieved. Please, tak a look at http://www.roundcubeforum.net/10-miscellaneous/33-roundcube-discussion/9168-managesieve-plugin-fail-dbmail-timsieved.html (proposed solution in first post).

Comments

 [2011-11-30 18:47 UTC] yunosh (Jan Schneider)
-Status: Open +Status: Feedback
Has the log been posted anywhere yet?
 [2011-11-30 19:56 UTC] alec (Aleksander Machniak)
No. The check ($lastline === '') doesn't looks good to me (especially when you have rtrim($lastline) before). I have removed it and for now it's working with dovecot.
 [2011-11-30 20:04 UTC] alec (Aleksander Machniak)
On error Net_Socket's fgets() method returns pear error object or FALSE. So, I propose to move the check before rtrim() and check for false not empty string.
 [2012-08-10 13:33 UTC] alec (Aleksander Machniak)
Also work with Cyrus. I went thru commit log and found that the lines were added (uncommented) to fix http://pear.php.net/bugs/bug.php?id=8452. So, maybe checking for FALSE would be a good solution for both. The issue was requested again here http://trac.roundcube.net/ticket/1488594. I'll provide debug log if I get any.
 [2012-08-10 16:43 UTC] alec (Aleksander Machniak)
It looks we've found a solution/workaround. The reason of the issue is a bug in DBMail http://dbmail.org/mantis/view.php?id=963. It's already fixed but not released. I've got a simple patch which workarounds this issue: --- a/plugins/managesieve/lib/Net/Sieve.php +++ b/plugins/managesieve/lib/Net/Sieve.php @@ -1098,7 +1098,7 @@ class Net_Sieve return PEAR::raiseError(trim($response . $line), 6); } - if (preg_match('/^{([0-9]+)}/i', $line, $matches)) { + if (preg_match('/^{([0-9]+)\+?}/i', $line, $matches)) { // Matches literal string responses. $line = $this->_recvBytes($matches[1] + 2);
 [2013-12-13 14:29 UTC] alec (Aleksander Machniak)
-Status: Feedback +Status: Open
 [2013-12-13 16:18 UTC] yunosh (Jan Schneider)
-Status: Open +Status: Wont fix
This had been fixed almost two years ago and not been released since then?? I consider DBMail dead.