Hello *
I have a problem with a imap_open();, the function enumerate intere list of article of server and required much time!
is possible fix it? and use only GROUP without LISTGROUP?
and also authentication doesn't work, if I use a direct command of socket all work fine.

thanks.
-- 
Roberto.


Wireshark capture...
"""
4115 127.728808000 192.168.1.5 192.168.1.4 NNTP 136 Response: 200 news.corradoroberto.it InterNetNews NNRP server INN 2.7.1 ready (posting ok)
4116 127.728877000 192.168.1.4 192.168.1.5 NNTP 71 Request: LIST EXTENSIONS
4118 127.729008000 192.168.1.5 192.168.1.4 NNTP 80 Response: 501 Unknown LIST keyword
4119 127.729032000 192.168.1.4 192.168.1.5 NNTP 67 Request: MODE READER
4121 127.729131000 192.168.1.5 192.168.1.4 NNTP 136 Response: 200 news.corradoroberto.it InterNetNews NNRP server INN 2.7.1 ready (posting ok)
4122 127.729161000 192.168.1.4 192.168.1.5 NNTP 73 Request: GROUP it.test
4124 127.729272000 192.168.1.5 192.168.1.4 NNTP 87 Response: 211 112800 1 112841 it.test
4139 127.730709000 192.168.1.4 192.168.1.5 NNTP 77 Request: LISTGROUP it.test <-- this is problem enumerate intere list of articles require much time
4141 127.730870000 192.168.1.5 192.168.1.4 NNTP 87 Response: 211 112800 1 112841 it.test
"""

PHP PROTOTIPE...
"""
$start = time();
imap_timeout(IMAP_OPENTIMEOUT, 5);
imap_timeout(IMAP_READTIMEOUT, 5);
imap_timeout(IMAP_WRITETIMEOUT, 5);
imap_timeout(IMAP_CLOSETIMEOUT, 5);
ini_set('default_socket_timeout', 5);

$server = '{news.corradoroberto.it:119/service=nntp}';
$group = 'it.test';
$nntp = imap_open("$server$group", 'USERNOTWORK', 'PASSWORDNOTWORK', OP_ANONYMOUS) or die("can't connect: " . imap_last_error());

//$last = imap_num_msg($nntp);
//$last2 = imap_num_recent($nntp);

//echo $last;
//echo "<br>";
//echo $last2;

print_r(imap_errors());
print_r(imap_alerts());

imap_close($nntp);
die("Time " . (time() - $start) . " seconds\n");
"""

Show this record as plain/text

nopaste service by: Roberto Corrado