comparison src/noffle.c @ 117:d45b0abe7c79 noffle

[svn] Merge with release-1-0 at release-1-0-merge-3
author bears
date Sun, 25 Jun 2000 19:42:10 +0100
parents af7bea7515b2
children d00adc26d77a
comparison
equal deleted inserted replaced
116:0a12fc56db30 117:d45b0abe7c79
8 not as server. If noffle runs as server, locking is performed while 8 not as server. If noffle runs as server, locking is performed while
9 executing NNTP commands, but temporarily released if no new command is 9 executing NNTP commands, but temporarily released if no new command is
10 received for some seconds (to allow multiple clients connect at the same 10 received for some seconds (to allow multiple clients connect at the same
11 time). 11 time).
12 12
13 $Id: noffle.c 158 2000-06-24 20:36:38Z bears $ 13 $Id: noffle.c 165 2000-06-25 18:42:10Z bears $
14 */ 14 */
15 15
16 #if HAVE_CONFIG_H 16 #if HAVE_CONFIG_H
17 #include <config.h> 17 #include <config.h>
18 #endif 18 #endif
175 Fetch_close(); 175 Fetch_close();
176 } 176 }
177 } 177 }
178 178
179 static Bool 179 static Bool
180 doPost() 180 doPost( void )
181 { 181 {
182 Str line; 182 Str line;
183 DynStr *s; 183 DynStr *s;
184 Bool res; 184 Bool res;
185
186 185
187 s = new_DynStr( 10000 ); 186 s = new_DynStr( 10000 );
188 while ( fgets( line, MAXCHAR, stdin ) != NULL ) 187 while ( fgets( line, MAXCHAR, stdin ) != NULL )
189 DynStr_app( s, line ); 188 DynStr_app( s, line );
190 189
490 printf( "%s is already in fetch list. Mode is now: %s.\n", 489 printf( "%s is already in fetch list. Mode is now: %s.\n",
491 name, mode == FULL ? "full" : mode == THREAD ? 490 name, mode == FULL ? "full" : mode == THREAD ?
492 "thread" : "overview" ); 491 "thread" : "overview" );
493 if ( ! Fetchlist_write() ) 492 if ( ! Fetchlist_write() )
494 fprintf( stderr, "Could not save fetchlist.\n" ); 493 fprintf( stderr, "Could not save fetchlist.\n" );
494 Grp_setLastAccess( name, time( NULL ) );
495 return TRUE; 495 return TRUE;
496 } 496 }
497 497
498 static void 498 static void
499 doUnsubscribe( const char *name ) 499 doUnsubscribe( const char *name )