comparison src/configfile.h @ 88:1fcdced0246e noffle

[svn] Move posting code to post.c, add command line posting
author bears
date Thu, 18 May 2000 13:17:23 +0100
parents dfcb28566d36
children 402300614185
comparison
equal deleted inserted replaced
87:bf8c97460fd7 88:1fcdced0246e
1 /* 1 /*
2 configfile.h 2 configfile.h
3 3
4 Common declarations and handling of the configuration file. 4 Common declarations and handling of the configuration file.
5 5
6 $Id: configfile.h 96 2000-05-17 10:51:22Z enz $ 6 $Id: configfile.h 100 2000-05-18 12:17:23Z bears $
7 */ 7 */
8 8
9 #ifndef CONFIGFILE_H 9 #ifndef CONFIGFILE_H
10 #define CONFIGFILE_H 10 #define CONFIGFILE_H
11 11
12 #if HAVE_CONFIG_H 12 #if HAVE_CONFIG_H
13 #include <config.h> 13 #include <config.h>
14 #endif 14 #endif
15 15
16 #include "common.h" 16 #include "common.h"
17
18 struct GroupEnum;
19 typedef struct GroupEnum GroupEnum;
17 20
18 const char * Cfg_spoolDir( void ); 21 const char * Cfg_spoolDir( void );
19 const char * Cfg_version( void ); 22 const char * Cfg_version( void );
20 23
21 int Cfg_maxFetch( void ); 24 int Cfg_maxFetch( void );
24 int Cfg_connectTimeout( void ); 27 int Cfg_connectTimeout( void );
25 Bool Cfg_autoUnsubscribe( void ); 28 Bool Cfg_autoUnsubscribe( void );
26 Bool Cfg_autoSubscribe( void ); 29 Bool Cfg_autoSubscribe( void );
27 Bool Cfg_infoAlways( void ); 30 Bool Cfg_infoAlways( void );
28 31
29 /* Ignored. Should be removed in development version. */
30 Bool Cfg_removeMsgId( void );
31
32 Bool Cfg_replaceMsgId( void ); 32 Bool Cfg_replaceMsgId( void );
33 Bool Cfg_postLocal( void );
33 const char * Cfg_autoSubscribeMode( void ); /* Can be: full, thread, over */ 34 const char * Cfg_autoSubscribeMode( void ); /* Can be: full, thread, over */
34 const char * Cfg_mailTo( void ); 35 const char * Cfg_mailTo( void );
35 36
36 /* Begin iteration through the server names */ 37 /* Begin iteration through the server names */
37 void Cfg_beginServEnum( void ); 38 void Cfg_beginServEnum( void );
56 /* Return default expire days. */ 57 /* Return default expire days. */
57 int Cfg_expire( void ); 58 int Cfg_expire( void );
58 59
59 void Cfg_read( void ); 60 void Cfg_read( void );
60 61
62 /* Get a new iterator for get group patterns for the given server */
63 GroupEnum *
64 new_GetGrEn( const char *name );
65
66 /* Get a new iterator for omit group patterns for the given server */
67 GroupEnum *
68 new_OmitGrEn( const char *name );
69
70 /* Free up a group enumerator */
71 void
72 del_GrEn( GroupEnum * ge );
73
74 /* Rewind to first group */
75 void
76 GrEn_first( GroupEnum * ge );
77
78 /* Get next group pattern or NULL if no more */
79 const char *
80 GrEn_next( GroupEnum *ge );
81
61 #endif 82 #endif