comparison server.c @ 12:43631b72021f noffle

[svn] Fixed bug: multiple line headers of posted articles were truncated
author enz
date Sat, 15 Apr 2000 11:09:20 +0100
parents 04124a4423d4
children 526a4c34ee2e
comparison
equal deleted inserted replaced
11:9c32711fc479 12:43631b72021f
1 /* 1 /*
2 server.c 2 server.c
3 3
4 $Id: server.c 3 2000-01-04 11:35:42Z enz $ 4 $Id: server.c 18 2000-04-15 10:09:20Z enz $
5 */ 5 */
6 6
7 #include "server.h" 7 #include "server.h"
8 #include <ctype.h> 8 #include <ctype.h>
9 #include <signal.h> 9 #include <signal.h>
883 - add/replace/cut Message-ID depending on config options 883 - add/replace/cut Message-ID depending on config options
884 - add Reply-To with content of From, if missing 884 - add Reply-To with content of From, if missing
885 (some providers overwrite From field) 885 (some providers overwrite From field)
886 - rename X-Sender header to X-NOFFLE-X-Sender 886 - rename X-Sender header to X-NOFFLE-X-Sender
887 (some providers want to insert their own X-Sender) 887 (some providers want to insert their own X-Sender)
888
889 For doing this, it is not necessary to parse multiple-line
890 headers.
888 */ 891 */
889 putStat( STAT_SEND_ART, "Continue (end with period)" ); 892 putStat( STAT_SEND_ART, "Continue (end with period)" );
890 fflush( stdout ); 893 fflush( stdout );
891 Log_dbg( "[S FLUSH]" ); 894 Log_dbg( "[S FLUSH]" );
892 s = new_DynStr( 10000 ); 895 s = new_DynStr( 10000 );
961 } 964 }
962 else 965 else
963 DynStr_appLn( s, p ); 966 DynStr_appLn( s, p );
964 } 967 }
965 else 968 else
966 Log_err( "Ignoring invalid header line '%s'", p ); 969 DynStr_appLn( s, line );
967 } 970 }
968 else 971 else
969 DynStr_appLn( s, line ); 972 DynStr_appLn( s, line );
970 } 973 }
971 if ( inHeader ) 974 if ( inHeader )