[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: solved posting problem - patch included - please incorporate
] Thanks for the patch!
Strange how the mind works. A few days later, riding the bus
downtown, and it occurs to me - I didn't make a very good patch. It would
try to post to a server that accepted your authinfo, even if it still
didn't accept postings (didn't replay 200). I don't know if such a server
exists, but...
*** fetch.c.orig Mon Feb 8 17:52:43 1999
--- fetch.c Wed Feb 10 20:24:27 1999
***************
*** 1042,1049 ****
S_ISREG( st.st_mode ) && getheaders( de->d_name ) &&
isgrouponserver( headers[ H_NEWSGROUPS ] ) &&
(f=fopen( de->d_name, "r" )) != NULL ) {
! if ( verbose > 2 )
printf( "Posting %s...\n", de->d_name );
sprintf( lineout, "POST\r\n" );
putaline();
r = nntpreply();
--- 1042,1051 ----
S_ISREG( st.st_mode ) && getheaders( de->d_name ) &&
isgrouponserver( headers[ H_NEWSGROUPS ] ) &&
(f=fopen( de->d_name, "r" )) != NULL ) {
! if ( verbose > 2 ) {
printf( "Posting %s...\n", de->d_name );
+ syslog( LOG_INFO, "Posting %s...",de->d_name );
+ }
sprintf( lineout, "POST\r\n" );
putaline();
r = nntpreply();
***************
*** 1314,1319 ****
--- 1316,1328 ----
if ( nntpreply() != 498 ) {
if ( reply == 200 )
( void ) postarticles();
+ else if ( authenticate() ) {
+ sprintf( lineout, "MODE READER\r\n" );
+ putaline();
+ fflush( nntpout );
+ if ( nntpreply() == 200 )
+ ( void ) postarticles();
+ }
nntpactive( servers );
/* get list of newsgroups or new newsgroups */
processupstream( servers->name );
___________________________________________________________________________
Day 0x2C: God created plain-text documents. And Lo! It was very good.
Day 0x4AF1: somebody emailed me an MSWord file. Sacrilege!
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list