Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site utcs.UUCP Path: utzoo!utcs!geoff From: geoff@utcs.UUCP (Geoff Collyer) Newsgroups: net.news Subject: Re: It's time for news to get user-UNfriendly... (signature nuking) Message-ID: <535@utcs.UUCP> Date: Mon, 18-Mar-85 20:19:30 EST Article-I.D.: utcs.535 Posted: Mon Mar 18 20:19:30 1985 Date-Received: Mon, 18-Mar-85 21:24:55 EST References: <465@grendel.UUCP> <309@cmu-cs-k.ARPA> <2478@nsc.UUCP> Reply-To: geoff@utcs.UUCP (Geoff Collyer) Organization: University of Toronto - General Purpose UNIX Lines: 39 Keywords: signatures Summary: source code for 2.10.1 B news to nuke signatures In article <2478@nsc.UUCP> chuqui@nsc.UUCP (Chuq Von Rospach) writes: >If signatures bother you, I'd suggest >that you hack rn, or vnews, or readnews, or whatever you read news with to >excise them. Standard news puts a '--' on the line before the signature for >just this very purpose, and I heartily suggest that people who add >signatures manually do the same. If you DO do this, please post it-- I'm >sure there are others who would appreciate doing without signatures as >well. I haven't modified rn yet, but here's the two-line mod to readnews (2.10.1, sorry) to excise signatures. In rfuncs2.c, you modify the function tprint and add the two lines with comments on them. As coded, signatures are only suppressed under -h; you may want to change this policy. [Incidentally, signatures are preceded by "-- \n" and not "--\n".] [A small flame, now that news supplies one's name and return address and pathalias can provide a decent return path, what justificiation is there for signatures aside from humour?] tprint(ifp, ofp, checkfrom) register FILE *ifp, *ofp; int checkfrom; { register int c; while ((fgets(bfr, sizeof bfr, ifp)) != NULL && !sigtrap) { if (hflag && strcmp(bfr, "-- \n") == 0) /* signature start */ break; /* ignore rest */ if (checkfrom && strncmp(bfr, "From ", 5) == 0) putc('>', ofp); fputs(bfr, ofp); } if (sigtrap) qfflush(ofp); fflush(ofp); fprintf(ofp, (sigtrap ? "\n\n" : "\n")); sigtrap = FALSE; }