Performs the login procedure. If there is a timestamp stored, APOP will be tried first, then basic USER/PASS.
string $user - Username to use
string $pass - Password to use
boolean $apop - Whether to try APOP first
Returns TRUE on success, PEAR_Error on failure.
This function can not be called statically.