diff 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
line wrap: on
line diff
--- a/src/configfile.c	Sat Jun 24 21:20:01 2000 +0100
+++ b/src/configfile.c	Sat Jun 24 21:28:01 2000 +0100
@@ -6,7 +6,7 @@
     SPOOLDIR
     VERSION
 
-  $Id: configfile.c 143 2000-06-13 06:34:25Z bears $
+  $Id: configfile.c 155 2000-06-24 20:28:01Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -89,6 +89,7 @@
     int numAutoSubscribeMode;
     int maxAutoSubscribeMode;
     AutoSubscribeModeEntry *autoSubscribeMode;
+    Str pathHeader;
 } config =
 {
     SPOOLDIR, /* spoolDir */
@@ -114,7 +115,8 @@
     NULL,     /* expire */
     0,        /* numAutoSubscribeMode */
     0,        /* maxAutoSubscribeMode */
-    NULL      /* autoSubscribeMode */
+    NULL,     /* autoSubscribeMode */
+    ""        /* pathHeader */
 };
 
 const char * Cfg_spoolDir( void ) { return config.spoolDir; }
@@ -133,6 +135,7 @@
     return config.defaultAutoSubscribeMode; }
 const char * Cfg_mailTo( void ) { return config.mailTo; }
 int Cfg_defaultExpire( void ) { return config.defaultExpire; }
+const char * Cfg_pathHeader( void ) { return config.pathHeader; }
 
 void
 Cfg_beginServEnum( void )
@@ -612,6 +615,8 @@
             getServ( line );
         else if ( strcmp( "mail-to", name ) == 0 )
             getStr( config.mailTo, p );
+        else if ( strcmp( "path-header", name ) == 0 )
+            getStr( config.pathHeader, p );
         else if ( strcmp( "expire", name ) == 0 )
             getExpire( p );
         else if ( strcmp( "auto-subscribe-mode", name ) == 0 )