[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: Permanent reminder of "no posting permission!"



Christian Weiske schrieb:
> Hello all,
> 
> 
> 
> Every hour I get a mail from leafnode telling me that:
>> WARNING: found no server with posting permission!
> Which is fully ok - I lurk only in two newsgroups and even set nopost=1 to that server. There is nothing to complain about.
> 
> Is there a way to get leafnode stop whining about no posting permissions?
> 

Please try the attached patch and let me know if it helps -- I've named it
___.txt in the hopes that it will remain in the message.

I hope Thunderbird won't tag it application/octet-stream, else the list
driver might eat it -- I'd usually use something else, but my main
development machine is sort of running a reduced feature set after a HDD
crash. The latter also prompted a CVS->Git conversion (with cvs2svn) so I
can more easily move the tree around.

HTH & best regards
Matthias.
diff --git a/fetchnews.c b/fetchnews.c
index d054d8c..24cc9bb 100644
--- a/fetchnews.c
+++ b/fetchnews.c
@@ -2289,6 +2289,7 @@ main(int argc, char **argv)
     volatile time_t lastrun;
     volatile int rc = 0, skip_servers = 0;
     volatile int anypost = 0, waitchild = 0, quiet;
+    volatile int wantpost = 0;
     struct server *current_server;
     volatile int need_refetch = 0;
 
@@ -2510,6 +2511,7 @@ main(int argc, char **argv)
 		ln_log(LNLOG_SERR, LNLOG_CTOP, "%s: protocol error after sending mode reader",
 		       current_server->name);
 	    } else {
+		if (current_server->nopost == 0) wantpost = 1;
 		if (reply == 200 && current_server->nopost == 0) {
 		    anypost = 1;
 		    if (-1 == postarticles(current_server))
@@ -2586,7 +2588,7 @@ connfail:
     oldactive = NULL;
     oldactivesize = 0;
 
-    if (anypost == 0 && skip_servers == 0 && rc != 2) {
+    if (anypost == 0 && wantpost != 0 && skip_servers == 0 && rc != 2) {
 	const char *e = "WARNING: found no server with posting permission!";
 	if (!quiet)
 	    fprintf(stderr, "%s\n", e);
-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/