diff 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
line wrap: on
line diff
--- a/src/configfile.c	Sun Mar 23 15:19:24 2003 +0000
+++ b/src/configfile.c	Mon Mar 24 23:32:48 2003 +0000
@@ -6,7 +6,7 @@
     SPOOLDIR
     VERSION
 
-  $Id: configfile.c 422 2003-01-11 09:30:05Z bears $
+  $Id: configfile.c 495 2003-03-24 23:32:48Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -76,6 +76,7 @@
     Bool autoSubscribe;
     Bool autoUnsubscribe;
     Bool infoAlways;
+    Bool appendReplyTo;
     Bool replaceMsgId;
     Str hostnameMsgId; 
     Bool postLocal;
@@ -109,6 +110,7 @@
     FALSE,    /* autoSubscribe */
     FALSE,    /* autoUnsubscribe */
     TRUE,     /* infoAlways */
+    TRUE,     /* appendReplyTo */
     FALSE,    /* replaceMsgId */
     "",       /* hostnameMsgId */
     FALSE,    /* postLocal */
@@ -143,6 +145,7 @@
 Bool Cfg_autoUnsubscribe( void ) { return config.autoUnsubscribe; }
 Bool Cfg_autoSubscribe( void )  { return config.autoSubscribe; }
 Bool Cfg_infoAlways( void )  { return config.infoAlways; }
+Bool Cfg_appendReplyTo ( void ) { return config.appendReplyTo; }
 Bool Cfg_replaceMsgId( void ) { return config.replaceMsgId; }
 const char * Cfg_hostnameMsgId( void ) { return config.hostnameMsgId; }
 Bool Cfg_postLocal( void ) { return config.postLocal; }
@@ -948,6 +951,8 @@
             getBool( &config.autoUnsubscribe, p );
         else if ( strcmp( "info-always-unread", name ) == 0 )
             getBool( &config.infoAlways, p );
+	else if ( strcmp( "append-reply-to", name ) == 0 )
+	    getBool( &config.appendReplyTo, p);	
         else if ( strcmp( "replace-messageid", name ) == 0 )
             getBool( &config.replaceMsgId, p );
         else if ( strcmp( "hostname", name ) == 0 )