comparison src/configfile.h @ 104:402300614185 noffle

[svn] Remove expire enum, add Cfg_expire(grp). Rename Cfg_autoSubscribeMode() Cfg_defaultAutoSubscribeMode() and add Cfg_autoSubscribeMode(grp).
author bears
date Tue, 13 Jun 2000 07:34:25 +0100
parents 1fcdced0246e
children 6f681d41734c
comparison
equal deleted inserted replaced
103:f782184db8bc 104:402300614185
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 100 2000-05-18 12:17:23Z bears $ 6 $Id: configfile.h 143 2000-06-13 06:34:25Z bears $
7 */ 7 */
8 8
9 #ifndef CONFIGFILE_H 9 #ifndef CONFIGFILE_H
10 #define CONFIGFILE_H 10 #define CONFIGFILE_H
11 11
29 Bool Cfg_autoSubscribe( void ); 29 Bool Cfg_autoSubscribe( void );
30 Bool Cfg_infoAlways( void ); 30 Bool Cfg_infoAlways( void );
31 31
32 Bool Cfg_replaceMsgId( void ); 32 Bool Cfg_replaceMsgId( void );
33 Bool Cfg_postLocal( void ); 33 Bool Cfg_postLocal( void );
34 const char * Cfg_autoSubscribeMode( void ); /* Can be: full, thread, over */
35 const char * Cfg_mailTo( void ); 34 const char * Cfg_mailTo( void );
36 35
37 /* Begin iteration through the server names */ 36 /* Begin iteration through the server names */
38 void Cfg_beginServEnum( void ); 37 void Cfg_beginServEnum( void );
39 38
45 /* Prefer server earlier in config file. Known servers are always preferential 44 /* Prefer server earlier in config file. Known servers are always preferential
46 to unknown servers. */ 45 to unknown servers. */
47 Bool Cfg_servIsPreferential( const char *name1, const char *name2 ); 46 Bool Cfg_servIsPreferential( const char *name1, const char *name2 );
48 void Cfg_authInfo( const char *name, Str user, Str pass ); 47 void Cfg_authInfo( const char *name, Str user, Str pass );
49 48
50 /* Begin iteration through expire entries. */ 49 /* Return expire period for named group. */
51 void Cfg_beginExpireEnum( void ); 50 int Cfg_expire( const char *grp );
52
53 /* Put next expire pattern in "pattern" and return its days count.
54 Return -1 if no more expire patterns. */
55 int Cfg_nextExpire( Str pattern );
56 51
57 /* Return default expire days. */ 52 /* Return default expire days. */
58 int Cfg_expire( void ); 53 int Cfg_defaultExpire( void );
54
55 /* Return auto subscribe mode for named group. Can be: full, thread, over */
56 const char * Cfg_autoSubscribeMode( const char *grp );
57
58 /* Return default auto subscribe mode. Can be: full, thread, over */
59 const char * Cfg_defaultAutoSubscribeMode( void );
59 60
60 void Cfg_read( void ); 61 void Cfg_read( void );
61 62
62 /* Get a new iterator for get group patterns for the given server */ 63 /* Get a new iterator for get group patterns for the given server */
63 GroupEnum * 64 GroupEnum *