diff 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
line wrap: on
line diff
--- a/src/content.c	Wed Jun 26 14:14:56 2002 +0100
+++ b/src/content.c	Wed Jun 26 14:15:44 2002 +0100
@@ -1,7 +1,7 @@
 /*
   content.c
 
-  $Id: content.c 357 2001-12-18 15:24:49Z mirkol $
+  $Id: content.c 387 2002-06-26 13:15:44Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -397,3 +397,14 @@
     }
     return Cont_nextGrp( result );
 }
+
+Bool
+Cont_exists( const char *grp )
+{
+    Str fname;
+
+    /* Do we have a content/overview file for this group? */
+    snprintf( fname, MAXCHAR, "%s/overview/%s", Cfg_spoolDir(), grp );
+    return ( access( fname, R_OK ) == 0 );    
+}
+