weird things..
Nick Ustinov
Nick.Ustinov@videinfra.lv
Wed, 28 Mar 2001 12:26:10 +0300
Chuck, I guess it's more a php bug, but you should add some handling to imp
as well..
My configuration is as follows:
redhat7
cyrus 2.0.12 with pam_mysql
apache 1.3.14
php-405-200103260045-cvs with imap support (imap-2001 c-client 8 feb 2001)
imp237, almost latest :)
The following php code ---
<?
$mbox =
imap_open("{satan.inbox.lv:143/imap}","Ivars_Krasts2","sls-02",OP_HALFOPEN)
|| die("can't connect: ".imap_last_error());
$list = imap_listmailbox($mbox,"{satan.inbox.lv:143/imap}","INBOX*");
if(is_array($list)) {
reset($list);
while (list($key, $val) = each($list))
print imap_utf7_decode($val)."<br>\n";
} else
print "imap_listmailbox failed: ".imap_last_error()."\n";
imap_close($mbox);
?>
would produce:
imap_listmailbox failed:
and that's it... When following php code (i only changed case of username
there)
<?
$mbox =
imap_open("{satan.inbox.lv:143/imap}","ivars_krasts2","sls-02",OP_HALFOPEN)
|| die("can't connect: ".imap_last_error());
$list = imap_listmailbox($mbox,"{satan.inbox.lv:143/imap}","INBOX*");
if(is_array($list)) {
reset($list);
while (list($key, $val) = each($list))
print imap_utf7_decode($val)."<br>\n";
} else
print "imap_listmailbox failed: ".imap_last_error()."\n";
imap_close($mbox);
?>
gives correct output (lists maiboxes fine)
IMP is going crazy in first case, IE 5.x eats all ram, all cpu since imp is
in some infinite loop here, producing empty mailboxes
Nick Ustinov
nick@videinfra.com
http://www.videinfra.com