Solution: AW: [ingo] Ingo with timsieved / Can't follow referral to sieve://imap-be1

Chuck Hagenbuch chuck at horde.org
Tue Jan 18 10:58:41 PST 2005


Quoting Stefan Schleifer <Stefan.Schleifer at trepesch.de>:

> I can't believe i'm among the few at this world trying to do this... no
> point to this question at google :-).

One of you should submit this patch to PEAR: http://pear.php.net/bugs/

> I had similar problems with my Cyrus Murder setup.
> I could find the problem in pear-Net-Sieve, and following change made
> referrals working for me.
>
> This is the original /usr/local/share/pear/Net/Sieve.php, starting from
> line 949:
>
> if (preg_match('/^bye \(referral "([^"]+)/i', $line, $matches)) { // Check
> for referral, then follow it.  Otherwise, carp an error.
>          $this->_data['host'] = $matches[1];
>
>
> I fixed it by changing these lines into:
>
> if (preg_match('/^bye \(referral "(sieve:\/\/)?([^"]+)/i', $line,
> $matches)) {
> // Check for referral, then follow it.  Otherwise, carp an error.
>       $this->_data['host'] = $matches[2];

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the ingo mailing list