cvs: pear /Net_NNTP NNTP.php package.xml
| From: | Alan Knowles | Date: | Thu, 25 Jul 2002 04:06:20 +0000 |
| Subject: | cvs: pear /Net_NNTP NNTP.php package.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5325@lists.php.net to get a copy of this message | ||
alan_k Thu Jul 25 00:06:20 2002 EDT
Modified files:
/pear/Net_NNTP NNTP.php package.xml
Log:
package used incorrect baseinstall, my nntp server returns over 128 chars on connect, and does not
support xrover
Index: pear/Net_NNTP/NNTP.php
diff -u pear/Net_NNTP/NNTP.php:1.12 pear/Net_NNTP/NNTP.php:1.13
--- pear/Net_NNTP/NNTP.php:1.12 Tue Jul 16 09:45:35 2002
+++ pear/Net_NNTP/NNTP.php Thu Jul 25 00:06:20 2002
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: NNTP.php,v 1.12 2002/07/16 13:45:35 cox Exp $
+// $Id: NNTP.php,v 1.13 2002/07/25 04:06:20 alan_k Exp $
require_once 'PEAR.php';
@@ -84,7 +84,7 @@
if (!$fp) {
return $this->raiseError('Not connected');
}
- $response = fgets($fp, 128);
+ $response = fgets($fp, 256);
if ($this->_debug) {
print "<< $response\n";
}
@@ -541,8 +541,12 @@
$messages[$message["Message-ID"]] = $message;
}
- $this->command("XROVER $first-$last");
- foreach($this->_getData() as $line) {
+ $response = $this->command("XROVER $first-$last");
+ $code = $this->responseCode($response);
+ if ($code == 500) {
+ return $messages;
+ }
+ foreach($this->_getData() as $line) {
$i=0;
foreach(explode("\t",$line) as $line) {
$message[$format[$i++]] = $line;
@@ -711,4 +715,4 @@
return $response;
}
}
-?>
\ No newline at end of file
+?>
Index: pear/Net_NNTP/package.xml
diff -u pear/Net_NNTP/package.xml:1.7 pear/Net_NNTP/package.xml:1.8
--- pear/Net_NNTP/package.xml:1.7 Wed Jun 5 06:02:33 2002
+++ pear/Net_NNTP/package.xml Thu Jul 25 00:06:20 2002
@@ -36,7 +36,7 @@
pearified API (mj)
</notes>
<filelist>
- <dir name="/" baseinstall="Net">
+ <dir name="/" baseinstalldir="Net">
<file role="php">NNTP.php</file>
<file role="doc">README</file>
</dir>