🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2405

adding a flag to show Originator (Was: how...have nn show add'l hders)

#2405
From: Jim Jagielski
Date: Wed, 29 Jan 1992 12:54
96 lines
4010 bytes
As previously posted, the mechanics of having nn show the Originator:
header line are quite easy. In fact, here are the diffs. 'J' in news-header
shows Originator... you can use the same technique to add your own headers.

===========================================================
$ cat more.c.PATCH
*** more.c.OLD  Tue Jan 28 07:42:50 1992
--- more.c      Tue Jan 28 07:44:23 1992
***************
*** 79,84
      'F', "From",      &news.ng_from,          &digest.dg_from,
      'f', "Sender",    &news.ng_sender,        0,
      'I', "Message-Id",        &news.ng_ident,         0,
      'K', "Keywords",  &news.ng_keyw,          0,
      'L', "Lines",     &news.ng_xlines,        0,
      'N', "Newsgroups",        &news.ng_groups,        0,

--- 79,85 -----
      'F', "From",      &news.ng_from,          &digest.dg_from,
      'f', "Sender",    &news.ng_sender,        0,
      'I', "Message-Id",        &news.ng_ident,         0,
+     'J', "Originator",        &news.ng_origr,         0,
      'K', "Keywords",  &news.ng_keyw,          0,
      'L', "Lines",     &news.ng_xlines,        0,
      'N', "Newsgroups",        &news.ng_groups,        0,


$ cat news.c.PATCH
*** news.c.OLD  Tue Jan 28 07:42:34 1992
--- news.c      Tue Jan 28 08:09:37 1992
***************
*** 180,185
        if (!all) break;
        check("rganization:",   12, ng_org);
        check("rganisation:",   12, ng_org);
        break;

       case 'P':

--- 180,186 -----
        if (!all) break;
        check("rganization:",   12, ng_org);
        check("rganisation:",   12, ng_org);
+       check("riginator:",     10, ng_origr);
        break;

       case 'P':
***************
*** 292,297
            news.ng_control     = NULL;
            news.ng_date        = NULL;
            news.ng_rdate       = NULL;
        }

        if (modes & GET_DATE_ONLY)

--- 293,299 -----
            news.ng_control     = NULL;
            news.ng_date        = NULL;
            news.ng_rdate       = NULL;
+           news.ng_origr       = NULL;
        }

        if (modes & GET_DATE_ONLY)


$ cat news.h.PATCH
*** news.h.OLD  Tue Jan 28 07:42:43 1992
--- news.h      Tue Jan 28 07:43:27 1992
***************
*** 34,39

        char    *ng_rdate;      /*   date-received (News 3)     */
        char    *ng_bref;       /*   back-references (News 3)   */

        char    *ng_xlines;     /*   lines (from header)        */
        int     ng_lines;       /*   lines (decoded)            */

--- 34,40 -----

        char    *ng_rdate;      /*   date-received (News 3)     */
        char    *ng_bref;       /*   back-references (News 3)   */
+       char    *ng_origr;      /*   originator                 */

        char    *ng_xlines;     /*   lines (from header)        */
        int     ng_lines;       /*   lines (decoded)            */

===========================================================
-- 
==============================================================================
#include <std/disclaimer.h>

              Jim Jagielski                    NASA/GSFC, Code 711.4
          jim@jagubox.gsfc.nasa.gov               Greenbelt, MD 20771

       "If we took the bones out, it wouldn't be crunchy now would it?"
Technical Details
Message-ID: <479@jagubox.gsfc.nasa.gov>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!elroy.jpl.nasa.gov!ames!nsisrv!jagubox!jim

Show Full Headers
Complete Article Headers
Message-ID: <479@jagubox.gsfc.nasa.gov>
Subject: adding a flag to show Originator (Was: how...have nn show add'l hders)
Date: Wed, 29 Jan 1992 12:54:33 GMT
From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!elroy.jpl.nasa.gov!ames!nsisrv!jagubox!jim
Newsgroups: news.software.nn
Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
Nntp-Posting-Host: jagubox.gsfc.nasa.gov
Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
Organization: NASA/Goddard Space Flight Center