[dev] imp's fetchmail support

John Morrissey jwm at horde.net
Tue May 6 15:33:19 PDT 2003


The 'POP3 Auto' fetchmail option sounds like it will autodetect the most
secure protocol that the server will accept. However:

        foreach ($protocols as $protocol) {
            $this->_params['protocol'] = $protocol;
            $mail_socket = $this->_connect();
            if (!is_a($mail_socket, 'PEAR_Error')) {
                break;
            }
        }

        if (is_a($mail_socket, 'PEAR_Error')) {
            return $mail_socket;
        }

The code returns on the first failure instead of continuing on to other
(albeit less secure) choices.

Is this a correct assessment? If so, I'll submit a fix.

john
-- 
John Morrissey          _o            /\         ----  __o
jwm at horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__


More information about the dev mailing list