PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_POP3 » Bug #2523

Unable to login to Qmail servers

Details

Submitted2004-10-13 19:46 UTC
Fromjohann dot hoehn at ecommerce dot com
Assigneddamian
StatusClosed
PackageNet_POP3
PHP Version4.3.8
OSRed Hat 7.3
Roadmaps(Not assigned)

Comments

[2004-10-13 19:46 UTC] johann dot hoehn at ecommerce dot com

Description:
------------
Qmail is 1.0.3(an perhaps others) does not support the CAPA command. It should attempt to login even if the CAPA command fails.

Reproduce code:
---------------
$pop3 =& new Net_POP3();
$pop3->setDebug();
$pop3->connect(mail.opentransfer.com, 110);

Expected result:
----------------
Skip the CAPA and issue the USER and PASS commands with the supplied arguments.

Actual result:
--------------
S:+OK <13630.1097693406@mailc6.opentransfer.com>
C: CAPA
S:-ERR authorization first

[2004-10-14 13:16 UTC] johann dot hoehn at ecommerce dot com

Fixed internally.

[2004-10-14 14:49 UTC] johann dot hoehn at ecommerce dot com

Forgot to add the code change needed to fix the problem

in the function _parseCapability()

if(!PEAR::isError($data = $this->_sendCmd('CAPA'))){
$data = $this->_getMultiline();
} else {
// CAPA command not supported, reset data var
// to avoid Notice errors of preg_split on an object
$data = '';
}