comparison src/configfile.c @ 111:6f681d41734c noffle

[svn] path-header added.
author bears
date Sat, 24 Jun 2000 21:28:01 +0100
parents 402300614185
children 8897b7e3b108
comparison
equal deleted inserted replaced
110:d23f038454d4 111:6f681d41734c
4 The following macros must be set, when compiling this file: 4 The following macros must be set, when compiling this file:
5 CONFIGFILE 5 CONFIGFILE
6 SPOOLDIR 6 SPOOLDIR
7 VERSION 7 VERSION
8 8
9 $Id: configfile.c 143 2000-06-13 06:34:25Z bears $ 9 $Id: configfile.c 155 2000-06-24 20:28:01Z bears $
10 */ 10 */
11 11
12 #if HAVE_CONFIG_H 12 #if HAVE_CONFIG_H
13 #include <config.h> 13 #include <config.h>
14 #endif 14 #endif
87 int maxExpire; 87 int maxExpire;
88 ExpireEntry *expire; 88 ExpireEntry *expire;
89 int numAutoSubscribeMode; 89 int numAutoSubscribeMode;
90 int maxAutoSubscribeMode; 90 int maxAutoSubscribeMode;
91 AutoSubscribeModeEntry *autoSubscribeMode; 91 AutoSubscribeModeEntry *autoSubscribeMode;
92 Str pathHeader;
92 } config = 93 } config =
93 { 94 {
94 SPOOLDIR, /* spoolDir */ 95 SPOOLDIR, /* spoolDir */
95 VERSION, /* version */ 96 VERSION, /* version */
96 300, /* maxFetch */ 97 300, /* maxFetch */
112 0, /* numExpire */ 113 0, /* numExpire */
113 0, /* maxExpire */ 114 0, /* maxExpire */
114 NULL, /* expire */ 115 NULL, /* expire */
115 0, /* numAutoSubscribeMode */ 116 0, /* numAutoSubscribeMode */
116 0, /* maxAutoSubscribeMode */ 117 0, /* maxAutoSubscribeMode */
117 NULL /* autoSubscribeMode */ 118 NULL, /* autoSubscribeMode */
119 "" /* pathHeader */
118 }; 120 };
119 121
120 const char * Cfg_spoolDir( void ) { return config.spoolDir; } 122 const char * Cfg_spoolDir( void ) { return config.spoolDir; }
121 const char * Cfg_version( void ) { return config.version; } 123 const char * Cfg_version( void ) { return config.version; }
122 124
131 Bool Cfg_postLocal( void ) { return config.postLocal; } 133 Bool Cfg_postLocal( void ) { return config.postLocal; }
132 const char * Cfg_defaultAutoSubscribeMode( void ) { 134 const char * Cfg_defaultAutoSubscribeMode( void ) {
133 return config.defaultAutoSubscribeMode; } 135 return config.defaultAutoSubscribeMode; }
134 const char * Cfg_mailTo( void ) { return config.mailTo; } 136 const char * Cfg_mailTo( void ) { return config.mailTo; }
135 int Cfg_defaultExpire( void ) { return config.defaultExpire; } 137 int Cfg_defaultExpire( void ) { return config.defaultExpire; }
138 const char * Cfg_pathHeader( void ) { return config.pathHeader; }
136 139
137 void 140 void
138 Cfg_beginServEnum( void ) 141 Cfg_beginServEnum( void )
139 { 142 {
140 config.servIdx = 0; 143 config.servIdx = 0;
610 /* Server needs line not p, 613 /* Server needs line not p,
611 because password may contain uppercase */ 614 because password may contain uppercase */
612 getServ( line ); 615 getServ( line );
613 else if ( strcmp( "mail-to", name ) == 0 ) 616 else if ( strcmp( "mail-to", name ) == 0 )
614 getStr( config.mailTo, p ); 617 getStr( config.mailTo, p );
618 else if ( strcmp( "path-header", name ) == 0 )
619 getStr( config.pathHeader, p );
615 else if ( strcmp( "expire", name ) == 0 ) 620 else if ( strcmp( "expire", name ) == 0 )
616 getExpire( p ); 621 getExpire( p );
617 else if ( strcmp( "auto-subscribe-mode", name ) == 0 ) 622 else if ( strcmp( "auto-subscribe-mode", name ) == 0 )
618 getAutoSubscribeMode( p ); 623 getAutoSubscribeMode( p );
619 else if ( strcmp( "getgroups", name ) == 0 ) 624 else if ( strcmp( "getgroups", name ) == 0 )