🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20523

diff.org.hdr patch

#20523
From: Jan Hrdonka
Date: Thu, 14 Aug 1997 00:00
36 lines
1477 bytes
  If anyone is interested, here is simple nnrpd patch, which allows
you to choose a different Organization: header for NNTP clients.
  Regards,

  H.

# nnrp.access config file has to have 5th field - Organization string;
# a NNTP client can set Organization: header itself; if it doesn't
# and 5th field mentioned above is empty, a string from inn.conf will
# be used; if 5th field isn't empty, it's string will be used

*** nnrpd.c.old
--- nnrpd.c
***************
*** 320 ***
!     char              *fields[5];
--- 320 ---
!     char              *fields[6];
***************
*** 345 ***
!               if (i != 4)
--- 345 ---
!               if (i != 5)
***************
*** 370,371 ***
                (void)strcpy(accesslist, fields[4]);
                found = TRUE;
--- 370,373 ---
                (void)strcpy(accesslist, fields[4]);
+               if (*fields[5] != '\0')
+                       setenv(_ENV_ORGANIZATION, fields[5], 1);
                found = TRUE;


Technical Details
Message-ID: <5sv8et$pb5$1@news.eunet.cz>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <5sv8et$pb5$1@news.eunet.cz>
Subject: diff.org.hdr patch
Date: Thu, 14 Aug 1997 00:00:00 +0000
From: hrd@eunet.cz (Jan Hrdonka)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 264635024
Organization: EUnet Czechia
Newsgroups: news.software.nntp