[dev] imp/test.php suggestion (fwd)

Brent J. Nordquist bjn@horde.org
Tue Nov 19 12:58:32 2002


---------- Forwarded message ----------
Date: Tue, 19 Nov 2002 01:10:13 -0800 (PST)
From: Andrew Daviel <andrew@andrew.triumf.ca>
Reply-To: Andrew Daviel <advax@triumf.ca>
To: bjn@horde.org
Subject: imp/test.php suggestion


imp/test.php,v 1.2.2.3 2002/03/24 22:05:55

test.php returns the same error message no matter what the problem is

It might be useful to include a call to imap_last_error()
which tells about certificate problems, name mismatch etc.

I now have
    $mbox = imap_open($mbname, $user, $passwd);
    echo imap_last_error(),'<br />';
    $minfo = imap_mailboxmsginfo($mbox);
    echo imap_last_error(),'<br />';

which isn't too elegant but at least gives me a hint.

I also get warnings about rsh timed out (if rsh is disabled, which it is
normally), but never mind, IMP doesn't seem to use rsh so
it doesn't really matter. I seem to remember Pine using rsh too
and I forget exactly what the point was...)

(I've been trying to get the current stable imp+horde going on a new
machine after having previously built Apache+modssl+openldap+imap etc.
from source with IMP 1.2 and vowing never to mess with it again once it
worked ... not being a PHP programmer ..:-)   )


regards

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376
security@triumf.ca



More information about the dev mailing list