Net_Sieve bug maybe?
| From: | Dan Thomson | Date: | Wed, 09 Jul 2008 14:15:18 +0000 |
| Subject: | Net_Sieve bug maybe? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-29071@lists.php.net to get a copy of this message | ||
Hey all,
I'm not all that well versed in Sieve OR PHP, so I could be missing
something, but I think I've found a small issue with the Net_Sieve
class.
I'm trying to do a simple Sieve login, then "listScripts" like so:
$sieve_conn = new Net_Sieve($username, $password, $hostname, $port);
$scr = $sieve_conn->listScripts();
I'm assuming this should be valid (provided login information is correct, etc.)
What I'm finding is that the Sieve server I'm connected to has an
extra 'OK "Logged in."' message to send me AFTER I've already exited
the Net_Sieve constructor (which means I'm also 'done' with the login
method). So, those 2 lines up above don't give me any kind of valid
script listing, BUT if I do an extra $sieve_conn->_recvLn() after the
constructor, THEN do the listScripts() call, I get what I want...
looks like a bug to me.
Am I right? :)
Thanks,
--
Dan Thomson