--- lmtp2nntp_nntp.c 2003/01/30 19:42:13 1.3
+++ lmtp2nntp_nntp.c 2003/01/30 19:45:20 1.4
@@ -66,7 +66,7 @@
struct nntp_st {
nntp_io_t io;
- nntp_readline_t rl;
+ nntp_readline_t rl;
struct timeval tv;
int kludgeinn441dup;
char *lastresp;
@@ -88,10 +88,10 @@
{
nntp_t *nntp;
- if ((nntp = (nntp_t *)malloc(sizeof(nntp_t))) == NULL)
+ if ((nntp = (nntp_t *)malloc(sizeof(nntp_t))) == NULL)
return NULL;
- if (io == NULL)
+ if (io == NULL)
return NULL;
nntp->io.ctx = io->ctx;
nntp->io.read = io->read;
@@ -109,7 +109,7 @@
{
nntp_rc_t rc;
char line[NNTP_LINE_MAXLEN];
-
+
/* RFC0977 2.4.3. General Responses
* In general, 1xx codes may be ignored or displayed as desired; code 200
* or 201 is sent upon initial connection to the NNTP server depending
@@ -204,7 +204,7 @@
}
buf[n] = NUL; /* string termination */
- if (n == (buflen-1))
+ if (n == (buflen-1))
return NNTP_ERR_OVERFLOW;
return NNTP_OK;
}
@@ -228,7 +228,7 @@
char line[NNTP_LINE_MAXLEN];
/* RFC2980
- *
+ *
* 2.3 MODE READER
* MODE READER is used by the client to indicate to the server that it is
* a news reading client. Some implementations make use of this
@@ -236,13 +236,13 @@
* responding to news reader commands. This command can be contrasted
* with the SLAVE command in RFC0977, which was not widely implemented.
* MODE READER was first available in INN.
- *
+ *
* 2.3.1 Responses
* 200 Hello, you can post
* 201 Hello, you can't post
- *
+ *
* Research:
- *
+ *
* < 200 dev16 InterNetNews server INN 2.3.2 ready
* > POST
* < 500 "post" not implemented; try "help".
@@ -250,7 +250,7 @@
* < 200 dev16 InterNetNews NNRP server INN 2.3.2 ready (posting ok).
* > POST
* < 340 Ok, recommended ID <...>
- *
+ *
* In other words, INN *requires* the use of "MODE READER". This has been
* verified when INN is configured for expecting both news readers and
* feeders from a given source address. When INN is configured to expect
@@ -301,14 +301,14 @@
* > Newsgroups: ...
* > Message-ID: <...>
* > [additional headers]
- * >
+ * >
* > [body with dots escaped]
* > .
* < 240 ok, thank you
* < 441 duplicate (ok for us)
- *
+ *
* Research:
- *
+ *
* < 200 dev16 InterNetNews server INN 2.3.2 ready
* > POST
* [...]
@@ -319,7 +319,7 @@
* 441 Required "Subject" header is missing
* 441 Obsolete "Received" header
* 441 Line # too long
- *
+ *
* In other words, INN uses 441 for other status messages as well.
*/
*line = NUL;
@@ -370,7 +370,7 @@
* < 435 article not wanted - do not send it
* < 436 transfer failed - try again later
* < 437 article rejected - do not try again
- *
+ *
* Research:
* < 200 dev16 InterNetNews server INN 2.3.2 ready
* > IHAVE <messageid>
|