Thread View: news.software.nn
1 messages
1 total messages
Started by Jim Jagielski
Wed, 29 Jan 1992 12:54
adding a flag to show Originator (Was: how...have nn show add'l hders)
Author: Jim Jagielski
Date: Wed, 29 Jan 1992 12:54
Date: Wed, 29 Jan 1992 12:54
96 lines
4010 bytes
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?"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads