From: utzoo!decvax!harpo!npoiv!hou5f!ariel!martin
Newsgroups: net.mail
Title: Re: How to read saved news via Mail?
Article-I.D.: ariel.239
Posted: Sat Feb 19 10:01:51 1983
Received: Sun Feb 20 06:23:08 1983
References: syteka.281

Reading the saved Article using Mail is simple once you have done one
of a few things.

1)	remove the (real name) from the From lines in Article. you can use
	sed (or ed). /^From /s/(.*) //

2)	change Mail to allow From lines with the format that news gives you.
	in head.c add a few more rules so that different From lines are
	accepted:-

#define	L	1		/* A lower case char */
#define	S	2		/* A space */
#define	D	3		/* A digit */
#define	O	4		/* An optional digit */
#define	C	5		/* A colon */
#define	N	6		/* A new line */
#define U	7		/* An upper case char */
#define X	8		/* one [or more] space(s) */
#define	B	9		/* ( to ) , this is for news*/

char ctypes[]   = {U,L,L,S,U,L,L,X,D,O,X,D,D,C,D,D,C,D,D,S,D,D,D,D,0};
char tmz1types[] = {U,L,L,S,U,L,L,X,D,O,X,D,D,C,D,D,C,D,D,S,U,U,U,S,D,D,D,D,0};
char tmz2types[] = {U,L,L,S,U,L,L,X,D,O,X,D,D,C,D,D,C,D,D,S,D,D,D,D,S,U,U,U,0};
char oastypes[] = {U,L,L,S,U,L,L,X,D,O,X,D,D,C,D,D,S,U,U,U,S,D,D,D,D,0};
char newstype[] = {B,U,L,L,S,U,L,L,X,D,O,X,D,D,C,D,D,C,D,D,S,D,D,D,D,0};

then you can change the code below this to parse a B and to look for another
type of From string. we have (as you can see) have 5 types of From lines.

3)	change news to save without the realname. it could put that field
	into a 'Real-Name: ' header.

martin levy,
holmdel, nj.