Mercurial > noffle
comparison src/configfile.c @ 357:b0ee77fa24d4 noffle
[svn] * src/post.c,src/configfile.c,src/configfile.h,docs/noffle.conf.5,
noffle.conf.example,TODO: Added a config value to specify whether
a Reply-To header should be appended to messages posted without it.
Also made the new option show up in the noffle.conf manpage and the
initial example configuration shipped with the package.
author | bears |
---|---|
date | Mon, 24 Mar 2003 23:32:48 +0000 |
parents | f35a7d45efd5 |
children | 6cb66f5a0479 |
comparison
equal
deleted
inserted
replaced
356:93e06e5ecb7a | 357:b0ee77fa24d4 |
---|---|
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 422 2003-01-11 09:30:05Z bears $ | 9 $Id: configfile.c 495 2003-03-24 23:32:48Z 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 |
74 int threadFollowTime; | 74 int threadFollowTime; |
75 int connectTimeout; | 75 int connectTimeout; |
76 Bool autoSubscribe; | 76 Bool autoSubscribe; |
77 Bool autoUnsubscribe; | 77 Bool autoUnsubscribe; |
78 Bool infoAlways; | 78 Bool infoAlways; |
79 Bool appendReplyTo; | |
79 Bool replaceMsgId; | 80 Bool replaceMsgId; |
80 Str hostnameMsgId; | 81 Str hostnameMsgId; |
81 Bool postLocal; | 82 Bool postLocal; |
82 Bool clientAuth; | 83 Bool clientAuth; |
83 Str defaultAutoSubscribeMode; | 84 Str defaultAutoSubscribeMode; |
107 7, /* threadFollowTime */ | 108 7, /* threadFollowTime */ |
108 30, /* connectTimeout */ | 109 30, /* connectTimeout */ |
109 FALSE, /* autoSubscribe */ | 110 FALSE, /* autoSubscribe */ |
110 FALSE, /* autoUnsubscribe */ | 111 FALSE, /* autoUnsubscribe */ |
111 TRUE, /* infoAlways */ | 112 TRUE, /* infoAlways */ |
113 TRUE, /* appendReplyTo */ | |
112 FALSE, /* replaceMsgId */ | 114 FALSE, /* replaceMsgId */ |
113 "", /* hostnameMsgId */ | 115 "", /* hostnameMsgId */ |
114 FALSE, /* postLocal */ | 116 FALSE, /* postLocal */ |
115 FALSE, /* clientAuth */ | 117 FALSE, /* clientAuth */ |
116 "over", /* defaultAutoSubscribeMode */ | 118 "over", /* defaultAutoSubscribeMode */ |
141 int Cfg_threadFollowTime( void ) { return config.threadFollowTime; } | 143 int Cfg_threadFollowTime( void ) { return config.threadFollowTime; } |
142 int Cfg_connectTimeout( void ) { return config.connectTimeout; } | 144 int Cfg_connectTimeout( void ) { return config.connectTimeout; } |
143 Bool Cfg_autoUnsubscribe( void ) { return config.autoUnsubscribe; } | 145 Bool Cfg_autoUnsubscribe( void ) { return config.autoUnsubscribe; } |
144 Bool Cfg_autoSubscribe( void ) { return config.autoSubscribe; } | 146 Bool Cfg_autoSubscribe( void ) { return config.autoSubscribe; } |
145 Bool Cfg_infoAlways( void ) { return config.infoAlways; } | 147 Bool Cfg_infoAlways( void ) { return config.infoAlways; } |
148 Bool Cfg_appendReplyTo ( void ) { return config.appendReplyTo; } | |
146 Bool Cfg_replaceMsgId( void ) { return config.replaceMsgId; } | 149 Bool Cfg_replaceMsgId( void ) { return config.replaceMsgId; } |
147 const char * Cfg_hostnameMsgId( void ) { return config.hostnameMsgId; } | 150 const char * Cfg_hostnameMsgId( void ) { return config.hostnameMsgId; } |
148 Bool Cfg_postLocal( void ) { return config.postLocal; } | 151 Bool Cfg_postLocal( void ) { return config.postLocal; } |
149 Bool Cfg_needClientAuth( void ) { return config.clientAuth; } | 152 Bool Cfg_needClientAuth( void ) { return config.clientAuth; } |
150 const char * Cfg_defaultAutoSubscribeMode( void ) { | 153 const char * Cfg_defaultAutoSubscribeMode( void ) { |
946 getBool( &config.autoSubscribe, p ); | 949 getBool( &config.autoSubscribe, p ); |
947 else if ( strcmp( "auto-unsubscribe", name ) == 0 ) | 950 else if ( strcmp( "auto-unsubscribe", name ) == 0 ) |
948 getBool( &config.autoUnsubscribe, p ); | 951 getBool( &config.autoUnsubscribe, p ); |
949 else if ( strcmp( "info-always-unread", name ) == 0 ) | 952 else if ( strcmp( "info-always-unread", name ) == 0 ) |
950 getBool( &config.infoAlways, p ); | 953 getBool( &config.infoAlways, p ); |
954 else if ( strcmp( "append-reply-to", name ) == 0 ) | |
955 getBool( &config.appendReplyTo, p); | |
951 else if ( strcmp( "replace-messageid", name ) == 0 ) | 956 else if ( strcmp( "replace-messageid", name ) == 0 ) |
952 getBool( &config.replaceMsgId, p ); | 957 getBool( &config.replaceMsgId, p ); |
953 else if ( strcmp( "hostname", name ) == 0 ) | 958 else if ( strcmp( "hostname", name ) == 0 ) |
954 /* use line, do not change to lowercase */ | 959 /* use line, do not change to lowercase */ |
955 getStr( config.hostnameMsgId, line ); | 960 getStr( config.hostnameMsgId, line ); |