comparison src/configfile.c @ 500:614a3177b15c noffle tip

Add mail-from option. Some modern mail systems will try and ensure the sender email is a legitimate address. Which will fail if there isn't such an address.
author Jim Hague <jim.hague@acm.org>
date Wed, 14 Aug 2013 12:04:39 +0100
parents 372f8b55506e
children
comparison
equal deleted inserted replaced
499:1c4d3397e99f 500:614a3177b15c
81 Str hostnameMsgId; 81 Str hostnameMsgId;
82 Bool postLocal; 82 Bool postLocal;
83 Bool clientAuth; 83 Bool clientAuth;
84 Str defaultAutoSubscribeMode; 84 Str defaultAutoSubscribeMode;
85 Str mailTo; 85 Str mailTo;
86 Str mailFrom;
86 int defaultExpire; 87 int defaultExpire;
87 int numServ; 88 int numServ;
88 int maxServ; 89 int maxServ;
89 ServEntry *serv; 90 ServEntry *serv;
90 int servIdx; /* for server enumeration */ 91 int servIdx; /* for server enumeration */
116 "", /* hostnameMsgId */ 117 "", /* hostnameMsgId */
117 FALSE, /* postLocal */ 118 FALSE, /* postLocal */
118 FALSE, /* clientAuth */ 119 FALSE, /* clientAuth */
119 "over", /* defaultAutoSubscribeMode */ 120 "over", /* defaultAutoSubscribeMode */
120 "", /* mailTo */ 121 "", /* mailTo */
122 "noffle@localhost", /* mailFrom */
121 14, /* defaultExpire */ 123 14, /* defaultExpire */
122 0, /* numServ */ 124 0, /* numServ */
123 0, /* maxServ */ 125 0, /* maxServ */
124 NULL, /* serv */ 126 NULL, /* serv */
125 0, /* servIdx */ 127 0, /* servIdx */
152 const char * Cfg_hostnameMsgId( void ) { return config.hostnameMsgId; } 154 const char * Cfg_hostnameMsgId( void ) { return config.hostnameMsgId; }
153 Bool Cfg_postLocal( void ) { return config.postLocal; } 155 Bool Cfg_postLocal( void ) { return config.postLocal; }
154 Bool Cfg_needClientAuth( void ) { return config.clientAuth; } 156 Bool Cfg_needClientAuth( void ) { return config.clientAuth; }
155 const char * Cfg_defaultAutoSubscribeMode( void ) { 157 const char * Cfg_defaultAutoSubscribeMode( void ) {
156 return config.defaultAutoSubscribeMode; } 158 return config.defaultAutoSubscribeMode; }
159 const char * Cfg_mailFrom( void ) { return config.mailFrom; }
157 const char * Cfg_mailTo( void ) { return config.mailTo; } 160 const char * Cfg_mailTo( void ) { return config.mailTo; }
158 int Cfg_defaultExpire( void ) { return config.defaultExpire; } 161 int Cfg_defaultExpire( void ) { return config.defaultExpire; }
159 const char * Cfg_pathHeader( void ) { return config.pathHeader; } 162 const char * Cfg_pathHeader( void ) { return config.pathHeader; }
160 const char * Cfg_fromDomain( void ) { return config.fromDomain; } 163 const char * Cfg_fromDomain( void ) { return config.fromDomain; }
161 const char * Cfg_organization( void ) { return config.organization; } 164 const char * Cfg_organization( void ) { return config.organization; }
987 return; 990 return;
988 } 991 }
989 else 992 else
990 Utl_cpyStr( config.defaultAutoSubscribeMode, s ); 993 Utl_cpyStr( config.defaultAutoSubscribeMode, s );
991 } 994 }
995 else if ( strcmp( "mail-from", name ) == 0 )
996 getStr( config.mailFrom, p );
992 else if ( strcmp( "mail-to", name ) == 0 ) 997 else if ( strcmp( "mail-to", name ) == 0 )
993 getStr( config.mailTo, p ); 998 getStr( config.mailTo, p );
994 else if ( strcmp( "expire", name ) == 0 ) 999 else if ( strcmp( "expire", name ) == 0 )
995 getExpire( p ); 1000 getExpire( p );
996 else if ( strcmp( "auto-subscribe-mode", name ) == 0 ) 1001 else if ( strcmp( "auto-subscribe-mode", name ) == 0 )