FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=4243&edit=1

ID: 4243
Updated by: daniel.oconnor@gmail.com
Reported By: rlpowell at digitalkingdom dot org
Summary: Problems assessing capabilities.
-Status: Open
+Status: Closed
Type: Bug
Package: Net_POP3
Operating System: Debian Linux
PHP Version: 4.3.10
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: doconnor
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Applied the attached patch


Previous Comments:
------------------------------------------------------------------------

[2007-09-22 16:52:57] #f757670b645c8805eb0

Here's the response to the CAPA command for several different servers:

Dovecot
=======
+OK Dovecot ready.
capa
+OK
CAPA
TOP
UIDL
RESP-CODES
PIPELINING
STLS
USER
SASL PLAIN
.
quit


Courier
=======
+OK Hello there.
capa
+OK Here's what I can do:
STLS
TOP
USER
LOGIN-DELAY 10
PIPELINING
UIDL
IMPLEMENTATION Courier Mail Server
.

Zimbra port 995
======
+OK Capability list follows
TOP
USER
UIDL
EXPIRE 31 USER
IMPLEMENTATION ZimbraInc
.

Zimbra port 110
======
+OK zimbra.nichework.com Zimbra POP3 server ready
capa
+OK Capability list follows
TOP
USER
UIDL
STLS
EXPIRE 31 USER
IMPLEMENTATION ZimbraInc
.

Exchange port 110
========
+OK Microsoft Exchange Server 2003 POP3 server version 6.5.7638.1
(ihexch01.intrahealth.org) ready.
capa
+OK Capability list follows
TOP
USER
PIPELINING
EXPIRE NEVER
UIDL
SASL NTLM
.

------------------------------------------------------------------------

[2007-03-27 08:04:06] cweiske

Could you please enable debug with $pop3->setDebug(true); and paste the
echoed debug messages so that I can try to see what is really
wrong/different with dovecot responses?

------------------------------------------------------------------------

[2005-05-20 14:20:26] rlpowell at digitalkingdom dot org

Just for the record, dovecot is what I was using as well.

Also, I suggest adding to the if in the second patch below the
following:

} else {
$this->_capability['sasl'] = $matches[1];
}

------------------------------------------------------------------------

[2005-05-20 05:45:58] pearbug20050520 at pech dot cz

This is the problem with undefined index, which has no direct connection
to this bug, but should be solved with this bug. You can for example try
it against dovecot.

Thanks.
Jirka Pech

--- POP3.php.orig 2005-05-20 11:42:46.317135367 +0200
+++ POP3.php 2005-05-20 11:39:51.590440164 +0200
@@ -295,7 +295,9 @@
$this->_capability['implementation'] =
$matches[3];
break;
case 'sasl':
+ if (isset($matches[3])) {
$this->_capability['sasl'] =
preg_split('/\s+/', $matches[3]);
+ }
break;
default :
$this->_capability[$capa] = $matches[2];

------------------------------------------------------------------------

[2005-04-28 17:06:16] rlpowell at digitalkingdom dot org

Description:
------------
The following is what I had to do to make net_pop3.php not crash when we
inserted into TikiWiki:

Index: ./lib/webmail/net_pop3.php
===================================================================
RCS file: /cvsroot/tikiwiki/tiki/lib/webmail/Attic/net_pop3.php,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.3
diff -r1.1.2.1 -r1.1.2.3
36c36
< // $Id: net_pop3.php,v 1.1.2.1 2005/04/23 20:47:04 mose Exp $
---
// $Id: net_pop3.php,v 1.1.2.3 2005/04/28 20:56:20 rlpowell Exp $
295c295
< $this->_capability['implementation'] =
$matches[3];
---
$this->_capability['implementation'] =
$matches[1];
298c298
< $this->_capability['sasl'] =
preg_split('/\s+/', $matches[3]);
---
$this->_capability['sasl'] =
preg_split('/\s+/', $matches[1]);
301c301
< $this->_capability[$capa] = $matches[2];
---
$this->_capability[$capa] = $matches[1];
337a338,339
$serverMethods = array();
339c341
< $serverMethods=$this->_capability['sasl'];
---
$serverMethods[] = $this->_capability['sasl'][0];
------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 9, '11 at 9:46a
activeDec 9, '11 at 9:46a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase