comparison src/content.c @ 255:52f467c7213b noffle

[svn] * docs/noffle.1,src/Makefile.am,src/Makefile.in,src/content.c, src/content.h,src/database.c,src/database.h,src/expire.c, src/expire.h,src/noffle.c: Split out expire code from database.c, change to remove articles in place (rather than rebuild article database) and add separate command to rebuild article database from articles listed in overviews. This may help if the article database gets corrupted.
author bears
date Wed, 26 Jun 2002 14:15:44 +0100
parents c48d7e881a21
children 5eece4dfd945
comparison
equal deleted inserted replaced
254:4c0f54d51591 255:52f467c7213b
1 /* 1 /*
2 content.c 2 content.c
3 3
4 $Id: content.c 357 2001-12-18 15:24:49Z mirkol $ 4 $Id: content.c 387 2002-06-26 13:15:44Z bears $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
395 Log_err( "Cannot open %s", name ); 395 Log_err( "Cannot open %s", name );
396 return FALSE; 396 return FALSE;
397 } 397 }
398 return Cont_nextGrp( result ); 398 return Cont_nextGrp( result );
399 } 399 }
400
401 Bool
402 Cont_exists( const char *grp )
403 {
404 Str fname;
405
406 /* Do we have a content/overview file for this group? */
407 snprintf( fname, MAXCHAR, "%s/overview/%s", Cfg_spoolDir(), grp );
408 return ( access( fname, R_OK ) == 0 );
409 }
410