Subject: pkg/16173: imap_open in php-imap-4.1.2 doesn't work
To: None <gnats-bugs@gnats.netbsd.org>
From: None <heison@zealnetworks.com>
List: netbsd-bugs
Date: 04/02/2002 16:34:37
>Number: 16173
>Category: pkg
>Synopsis: imap_open in php-imap-4.1.2 doesn't work
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Apr 02 13:32:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Heison Chak
>Release: NetBSD 1.5.2
>Organization:
SOMA Networks Inc.
>Environment:
System: NetBSD mail.ykz.zealnetworks.com 1.5.2 NetBSD 1.5.2 (ZEAL) #3: Mon Dec 3 08:22:34 EST 2001 root@test.zealnetworks.com:/u1/src/sys/arch/i386/compile/ZEAL i386
>Description:
imap_open fails to connect to imap server under NetBSD, it seems to work under Linux
>How-To-Repeat:
######### Under NetBSD ###########
#php imap.php
Content-type: text/html
<br>
<b>Warning</b>: Couldn't open stream {mail:143}
in <b>/export/pkg/share/httpd/htdocs/imap.php</b> on line <b>6</b><br>
Not connected to box[161]
######### Under Linux ###########
delphi:~# php4 imap.php
Content-type: text/html
{mail:143}INBOX
{mail:143}Deleted Items
{mail:143}Drafts
{mail:143}Sent
{mail:143}Sent Items
{mail:143}Trash
######## imap.php ##########
<?
$host = "mail:143";
$user = USERNAME;
$passwd = PASSWORD;
$link = imap_open("\{$host}", $user, $passwd)
or die ("Not connected to box");
$folders = imap_listmailbox($link, "\{$host}", "*")
or die ("Cannot get folders");
while (list($key,$val) = each($folders)) {
echo $val . "\n";
}
?>
>Fix:
Not sure yet
>Release-Note:
>Audit-Trail:
>Unformatted: