comparison src/post.c @ 136:55ba957023f9 noffle

[svn] do no longer always replace invalid message-IDs
author enz
date Wed, 23 Aug 2000 10:52:25 +0100
parents d45b0abe7c79
children 1c7303c71f66
comparison
equal deleted inserted replaced
135:ae1d1b93883d 136:55ba957023f9
1 /* 1 /*
2 post.c 2 post.c
3 3
4 $Id: post.c 165 2000-06-25 18:42:10Z bears $ 4 $Id: post.c 202 2000-08-23 09:52:25Z enz $
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
269 else if ( article.over.msgId[ 0 ] == '\0' ) 269 else if ( article.over.msgId[ 0 ] == '\0' )
270 { 270 {
271 Prt_genMsgId( article.over.msgId, article.over.from, "NOFFLE" ); 271 Prt_genMsgId( article.over.msgId, article.over.from, "NOFFLE" );
272 Log_inf( "Adding missing Message-ID '%s'", article.over.msgId ); 272 Log_inf( "Adding missing Message-ID '%s'", article.over.msgId );
273 } 273 }
274 else if ( ! Prt_isValidMsgId( article.over.msgId ) )
275 {
276 Log_ntc( "Replacing invalid Message-ID '%s'", article.over.msgId );
277 Prt_genMsgId( article.over.msgId, article.over.from, "NOFFLE" );
278 }
279 DynStr_app( s, "Message-ID: " ); 274 DynStr_app( s, "Message-ID: " );
280 DynStr_appLn( s, article.over.msgId ); 275 DynStr_appLn( s, article.over.msgId );
281 276
282 /* Ensure Path header */ 277 /* Ensure Path header */
283 if ( ! pathFound ) 278 if ( ! pathFound )