[ih] Fwd: Reporter query on the history of greater-than in quoted replies

Scott Brim scott.brim at gmail.com
Wed Jan 4 08:12:02 PST 2017


I see that the disagreement about whether to put a space after ">" was
already going on. :-)

Scott

On Wed, Jan 4, 2017 at 10:07 AM, Tony Finch <dot at dotat.at> wrote:
> 4.3BSD includes a couple of newsreaders, both of which have > quote
> support. In rn,
>
> https://github.com/dspinellis/unix-history-repo/blob/BSD-4_3-Snapshot-Development/usr/contrib/rn/common.h#L675
> https://github.com/dspinellis/unix-history-repo/blob/BSD-4_3-Snapshot-Development/usr/contrib/rn/respond.c#L340
>
> common.h:EXT char *indstr INIT(">");    /* indent for old article embedded in followup */
>
> The reply() and followup() functions both have copies of the this code,
>
> respond.c-      fseek(artfp,(long)htype[PAST_HEADER].ht_minpos,0);
> respond.c-      while (fgets(buf,LBUFLEN,artfp) != Nullch) {
> respond.c:          fprintf(tmpfp,"%s%s",indstr,buf);
> respond.c-      }
> respond.c-      fprintf(tmpfp,"\n");
>
> The code in /usr/contrib/news/ is missing from the unix-history-repo but
> it is present in Mckusick's CSRG archives. In news/src/postnews.c there is
> prep_article() which does
>
>                 fprintf(tf, "In article %s, %s writes:\n", msgid, isfrom);
>                 while (fgets(buf, BUFSIZ, of) != NULL)
>                         fprintf(tf, "> %s", buf);
>                 (void) fclose(of);



More information about the Internet-history mailing list