🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.notes
Article #56

hostdomain fixed to host.domain

#56
From: The Mighty One
Date: Thu, 08 Jan 1987 17:53
29 lines
1337 bytes
When news articles are routed over to notes, the site and domain comes
out like hostdomain instead of host.domain.  The following fixes this
problem.

*** /tmp/,RCSt1002900	Thu Jan  8 11:27:09 1987
--- bnewshead.c	Thu Jan  8 11:21:02 1987
***************
*** 306,312
      tp = index (host, '@');
      if (tp != NULL)
  	*tp = 0;
!     sprintf (hp -> from, "%s@%s%s", user, host, MYDOMAIN);
  
      fullname = index (hp -> path, '(');
      if (fullname != NULL)

--- 306,312 -----
      tp = index (host, '@');
      if (tp != NULL)
  	*tp = 0;
!     sprintf (hp -> from, "%s@%s.%s", user, host, MYDOMAIN);
  
      fullname = index (hp -> path, '(');
      if (fullname != NULL)
-- 

Perry Smith
Pedz Consultants
pedz@megamax, pedz@ctvax, pedz@pollux
Technical Details
Message-ID: <299@pollux.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!ut-ngp!infotel!pollux!root

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!ut-ngp!infotel!pollux!root
From: root@pollux.UUCP (The Mighty One)
Newsgroups: news.software.notes
Subject: hostdomain fixed to host.domain
Message-ID: <299@pollux.UUCP>
Date: Thu, 8-Jan-87 12:53:23 EST
Article-I.D.: pollux.299
Posted: Thu Jan  8 12:53:23 1987
Date-Received: Fri, 9-Jan-87 20:55:48 EST
Reply-To: root@pollux.UUCP (The Mighty One)
Distribution: world
Organization: Department of Electrical Engineering; S.M.U.; Dallas, TX
Lines: 29