comparison src/post.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 baa6408d1bbc
children fd66260b3479
comparison
equal deleted inserted replaced
356:93e06e5ecb7a 357:b0ee77fa24d4
1 /* 1 /*
2 post.c 2 post.c
3 3
4 $Id: post.c 414 2003-01-06 18:16:18Z bears $ 4 $Id: post.c 495 2003-03-24 23:32:48Z bears $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
378 if ( path[ 0 ] == '\0' ) 378 if ( path[ 0 ] == '\0' )
379 Prt_genPathHdr( path, article.over.from ); 379 Prt_genPathHdr( path, article.over.from );
380 DynStr_appLn( s, path ); 380 DynStr_appLn( s, path );
381 } 381 }
382 382
383 /* Ensure Reply-To header */ 383 /* Ensure Reply-To header if configuration demands it */
384 if ( ! replyToFound ) 384 if ( ! replyToFound && Cfg_appendReplyTo() )
385 { 385 {
386 Log_dbg( LOG_DBG_POST, "Adding Reply-To field to posted message." ); 386 Log_dbg( LOG_DBG_POST, "Adding Reply-To field to posted message." );
387 DynStr_app( s, "Reply-To: " ); 387 DynStr_app( s, "Reply-To: " );
388 DynStr_appLn( s, article.over.from ); 388 DynStr_appLn( s, article.over.from );
389 } 389 }