comparison src/configfile.c @ 82:1eb0cdd17c76 noffle

[svn] info-always-unread config/doc/implementation
author bears
date Sun, 14 May 2000 17:15:08 +0100
parents 125d79c9e586
children 1fcdced0246e
comparison
equal deleted inserted replaced
81:8b4e3f9e9e4e 82:1eb0cdd17c76
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 60 2000-05-09 22:28:38Z uh1763 $ 9 $Id: configfile.c 88 2000-05-14 16:15:08Z 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
45 int autoUnsubscribeDays; 45 int autoUnsubscribeDays;
46 int threadFollowTime; 46 int threadFollowTime;
47 int connectTimeout; 47 int connectTimeout;
48 Bool autoSubscribe; 48 Bool autoSubscribe;
49 Bool autoUnsubscribe; 49 Bool autoUnsubscribe;
50 Bool infoAlways;
50 Bool removeMsgId; 51 Bool removeMsgId;
51 Bool replaceMsgId; 52 Bool replaceMsgId;
52 Str autoSubscribeMode; 53 Str autoSubscribeMode;
53 Str mailTo; 54 Str mailTo;
54 int defaultExpire; 55 int defaultExpire;
68 30, /* autoUnsubscribeDays */ 69 30, /* autoUnsubscribeDays */
69 7, /* threadFollowTime */ 70 7, /* threadFollowTime */
70 30, /* connectTimeout */ 71 30, /* connectTimeout */
71 FALSE, /* autoSubscribe */ 72 FALSE, /* autoSubscribe */
72 FALSE, /* autoUnsubscribe */ 73 FALSE, /* autoUnsubscribe */
74 TRUE, /* infoAlways */
73 FALSE, /* removeMsgId */ 75 FALSE, /* removeMsgId */
74 TRUE, /* replaceMsgId */ 76 TRUE, /* replaceMsgId */
75 "over", /* autoSubscribeMode */ 77 "over", /* autoSubscribeMode */
76 "", /* mailTo */ 78 "", /* mailTo */
77 14, /* defaultExpire */ 79 14, /* defaultExpire */
92 int Cfg_autoUnsubscribeDays( void ) { return config.autoUnsubscribeDays; } 94 int Cfg_autoUnsubscribeDays( void ) { return config.autoUnsubscribeDays; }
93 int Cfg_threadFollowTime( void ) { return config.threadFollowTime; } 95 int Cfg_threadFollowTime( void ) { return config.threadFollowTime; }
94 int Cfg_connectTimeout( void ) { return config.connectTimeout; } 96 int Cfg_connectTimeout( void ) { return config.connectTimeout; }
95 Bool Cfg_autoUnsubscribe( void ) { return config.autoUnsubscribe; } 97 Bool Cfg_autoUnsubscribe( void ) { return config.autoUnsubscribe; }
96 Bool Cfg_autoSubscribe( void ) { return config.autoSubscribe; } 98 Bool Cfg_autoSubscribe( void ) { return config.autoSubscribe; }
99 Bool Cfg_infoAlways( void ) { return config.infoAlways; }
97 Bool Cfg_removeMsgId( void ) { return config.removeMsgId; } 100 Bool Cfg_removeMsgId( void ) { return config.removeMsgId; }
98 Bool Cfg_replaceMsgId( void ) { return config.replaceMsgId; } 101 Bool Cfg_replaceMsgId( void ) { return config.replaceMsgId; }
99 const char * Cfg_autoSubscribeMode( void ) { 102 const char * Cfg_autoSubscribeMode( void ) {
100 return config.autoSubscribeMode; } 103 return config.autoSubscribeMode; }
101 const char * Cfg_mailTo( void ) { return config.mailTo; } 104 const char * Cfg_mailTo( void ) { return config.mailTo; }
360 getInt( &config.defaultExpire, 0, INT_MAX, p ); 363 getInt( &config.defaultExpire, 0, INT_MAX, p );
361 else if ( strcmp( "auto-subscribe", name ) == 0 ) 364 else if ( strcmp( "auto-subscribe", name ) == 0 )
362 getBool( &config.autoSubscribe, p ); 365 getBool( &config.autoSubscribe, p );
363 else if ( strcmp( "auto-unsubscribe", name ) == 0 ) 366 else if ( strcmp( "auto-unsubscribe", name ) == 0 )
364 getBool( &config.autoUnsubscribe, p ); 367 getBool( &config.autoUnsubscribe, p );
368 else if ( strcmp( "info-always-unread", name ) == 0 )
369 getBool( &config.infoAlways, p );
365 else if ( strcmp( "remove-messageid", name ) == 0 ) 370 else if ( strcmp( "remove-messageid", name ) == 0 )
366 getBool( &config.removeMsgId, p ); 371 getBool( &config.removeMsgId, p );
367 else if ( strcmp( "replace-messageid", name ) == 0 ) 372 else if ( strcmp( "replace-messageid", name ) == 0 )
368 getBool( &config.replaceMsgId, p ); 373 getBool( &config.replaceMsgId, p );
369 else if ( strcmp( "auto-subscribe-mode", name ) == 0 ) 374 else if ( strcmp( "auto-subscribe-mode", name ) == 0 )