diff src/server.c @ 85:dfcb28566d36 noffle

[svn] Merged in changes from release-1-0 up to release-1-0-merge-1.
author enz
date Wed, 17 May 2000 11:51:22 +0100
parents 1eb0cdd17c76
children 1fcdced0246e
line wrap: on
line diff
--- a/src/server.c	Wed May 17 11:42:48 2000 +0100
+++ b/src/server.c	Wed May 17 11:51:22 2000 +0100
@@ -1,7 +1,7 @@
 /*
   server.c
 
-  $Id: server.c 88 2000-05-14 16:15:08Z bears $
+  $Id: server.c 96 2000-05-17 10:51:22Z enz $
 */
 
 #if HAVE_CONFIG_H
@@ -1120,28 +1120,25 @@
                 inHeader = FALSE;
                 if ( from[ 0 ] == '\0' )
                     Log_err( "Posted message has no From field" );
-                if ( ! Cfg_removeMsgId() )
+                if ( Cfg_replaceMsgId() )
+                {
+                    Prt_genMsgId( msgId, from, "NOFFLE" );
+                    Log_dbg( "Replacing Message-ID with '%s'", msgId );
+                }
+                else if ( msgId[ 0 ] == '\0' )
                 {
-                    if ( Cfg_replaceMsgId() )
-                    {
-                        Prt_genMsgId( msgId, from, "NOFFLE" );
-                        Log_dbg( "Replacing Message-ID with '%s'", msgId );
-                    }
-                    else if ( msgId[ 0 ] == '\0' )
-                    {
-                        Prt_genMsgId( msgId, from, "NOFFLE" );
-
-                        Log_inf( "Adding missing Message-ID '%s'", msgId );
-                    }
-                    else if ( ! Prt_isValidMsgId( msgId ) )
-                    {
-                        Log_ntc( "Replacing invalid Message-ID with '%s'",
-                                 msgId );
-                        Prt_genMsgId( msgId, from, "NOFFLE" );
-                    }
-                    DynStr_app( s, "Message-ID: " );
-                    DynStr_appLn( s, msgId );
+                    Prt_genMsgId( msgId, from, "NOFFLE" );
+                    
+                    Log_inf( "Adding missing Message-ID '%s'", msgId );
                 }
+                else if ( ! Prt_isValidMsgId( msgId ) )
+                {
+                    Log_ntc( "Replacing invalid Message-ID with '%s'",
+                             msgId );
+                    Prt_genMsgId( msgId, from, "NOFFLE" );
+                }
+                DynStr_app( s, "Message-ID: " );
+                DynStr_appLn( s, msgId );
                 if ( ! replyToFound && from[ 0 ] != '\0' )
                 {
                     Log_dbg( "Adding Reply-To field to posted message." );