Mercurial > noffle
diff src/configfile.c @ 195:76460d98b2fb noffle
[svn] * noffle.conf.example,docs/noffle.conf.5,src/configfile.h,src/configfile.c,
src/protocol.c: Add new config item 'hostname' to specify the part after
the @ in message IDs generated by Noffle. Patch submitted by Mirko Liss.
author | bears |
---|---|
date | Tue, 30 Oct 2001 13:16:40 +0000 |
parents | a4e9a20e50e5 |
children | 24d4cd032da5 |
line wrap: on
line diff
--- a/src/configfile.c Tue Oct 30 12:42:13 2001 +0000 +++ b/src/configfile.c Tue Oct 30 13:16:40 2001 +0000 @@ -6,7 +6,7 @@ SPOOLDIR VERSION - $Id: configfile.c 313 2001-10-30 12:42:13Z bears $ + $Id: configfile.c 314 2001-10-30 13:16:40Z bears $ */ #if HAVE_CONFIG_H @@ -77,6 +77,7 @@ Bool autoUnsubscribe; Bool infoAlways; Bool replaceMsgId; + Str hostnameMsgId; Bool postLocal; Str defaultAutoSubscribeMode; Str mailTo; @@ -106,6 +107,7 @@ FALSE, /* autoUnsubscribe */ TRUE, /* infoAlways */ TRUE, /* replaceMsgId */ + "", /* hostnameMsgId */ FALSE, /* postLocal */ "over", /* defaultAutoSubscribeMode */ "", /* mailTo */ @@ -136,6 +138,7 @@ Bool Cfg_autoSubscribe( void ) { return config.autoSubscribe; } Bool Cfg_infoAlways( void ) { return config.infoAlways; } Bool Cfg_replaceMsgId( void ) { return config.replaceMsgId; } +const char * Cfg_hostnameMsgId( void ) { return config.hostnameMsgId; } Bool Cfg_postLocal( void ) { return config.postLocal; } const char * Cfg_defaultAutoSubscribeMode( void ) { return config.defaultAutoSubscribeMode; } @@ -869,6 +872,9 @@ getBool( &config.infoAlways, p ); else if ( strcmp( "replace-messageid", name ) == 0 ) getBool( &config.replaceMsgId, p ); + else if ( strcmp( "hostname", name ) == 0 ) + /* use line, do not change to lowercase */ + getStr( config.hostnameMsgId, line ); else if ( strcmp( "post-locally", name ) == 0 ) getBool( &config.postLocal, p ); else if ( strcmp( "default-auto-subscribe-mode", name ) == 0 )