diff src/protocol.c @ 195:76460d98b2fb noffle

[svn] * noffle.conf.example,docs/noffle.conf.5,src/configfile.h,src/configfile.c, src/protocol.c: Add new config item 'hostname' to specify the part after the @ in message IDs generated by Noffle. Patch submitted by Mirko Liss.
author bears
date Tue, 30 Oct 2001 13:16:40 +0000
parents fed1334d766b
children 24d4cd032da5
line wrap: on
line diff
--- a/src/protocol.c	Tue Oct 30 12:42:13 2001 +0000
+++ b/src/protocol.c	Tue Oct 30 13:16:40 2001 +0000
@@ -1,7 +1,7 @@
 /*
   protocol.c
 
-  $Id: protocol.c 300 2001-08-05 08:24:22Z bears $
+  $Id: protocol.c 314 2001-10-30 13:16:40Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -241,7 +241,10 @@
     const char *addTopLevel, *p1, *p2, *p, *domainStart;
     Str myDomain;
 
-    if ( getFQDN( myDomain ) )
+    /* get hostname for MsgId from Cfg-File */
+    /* more elaborate testing must be left to upstream server */ 
+    Utl_cpyStr( myDomain, Cfg_hostnameMsgId() );
+    if (  strlen( myDomain ) != 0  || getFQDN( myDomain ) )
     {
         p = strstr( myDomain, "." );
         if ( p != NULL )