[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] Can't get news from alternate server
Paolo Amoroso schrieb am 2003-09-22:
> ## This is another news server which stores some groups that are not
> ## available on the first one. You can define username, password and port
> ## for each server separately.
> server = forum.mclink.it
> username = Username
> password = PassWd
Two more things:
#1 add
nodesc = 1
below the "server = forum.mclink.it" line.
#2 here's a patch against 1.9.43 that allows leafnode to be used on
servers that are broken like this:
Index: fetchnews.c
===================================================================
RCS file: /var/CVS/leafnode-1/fetchnews.c,v
retrieving revision 1.115
diff -u -r1.115 fetchnews.c
--- fetchnews.c 21 Sep 2003 17:21:03 -0000 1.115
+++ fetchnews.c 23 Sep 2003 02:48:07 -0000
@@ -1424,7 +1424,11 @@
"%Y%m%d %H%M00", gmtime(&update));
xsnprintf(lineout, SIZE_lineout, "NEWGROUPS %s GMT\r\n", timestr + 2);
putaline();
- if (nntpreply() != 231) {
+ /* we used to expect 231 here, but some broken servers (MC-link
+ * Custom News-server V1.06) return 215 instead.
+ * Just accept any 2XX code as success.
+ */
+ if ((reply = nntpreply()) < 200 || reply >= 300) {
char *e = lastreply();
if (!e) e = "premature disconnect";
printf("Reading new newsgroups failed, reason \"%s\".\n", e);
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list