joachim@jrix.radig.de (Joachim Riedel) (05/26/91)
Hi there, I had a copy of Geoffrey Mendelson's news package GNEWS 1.01 for beta testing. I now added some code to TASS 3.2 so TASS is able to use gnewspost instead of "standard" inews for posting articles. TASS 3.2 is a news reader that has a nice curses interface. TASS 3.2 was in alt.sources and I ftp'ed a ported version to piggy.ucsb.edu. ATTENTION: fixstack 1500 tass !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (fixstack 1000 is not enough after patching !!) You should have a copy of the excellent patch , also available from piggy. --- cut here ------------------------------------------------------------- *** page.c Wed May 1 17:28:13 1991 --- ./gnews/page.c Wed May 15 22:04:05 1991 *************** *** 1121,1126 **** --- 1121,1127 ---- { FILE *fp; char nam[100]; + char lsubj[100], *ngroup; char ch; char buf[200]; int post_anyway = FALSE; *************** *** 1154,1175 **** } chmod(nam, 0600); ! fprintf(fp, "Subject: Re: %s\n", eat_re(note_h_subj)); if (*note_h_followup && strcmp(note_h_followup, "poster") != 0) ! fprintf(fp, "Newsgroups: %s\n", note_h_followup); else ! fprintf(fp, "Newsgroups: %s\n", note_h_newsgroups); - if (*my_org) - fprintf(fp, "Organization: %s\n", my_org); ! if (note_h_distrib != '\0') ! fprintf(fp, "Distribution: %s\n", note_h_distrib); - fprintf(fp, "References: %s\n", note_h_messageid); - fprintf(fp, "\n"); - if (respnum) { /* if "copy_text" */ fprintf(fp, "%s writes:\n", note_h_from); --- 1155,1172 ---- } chmod(nam, 0600); ! strcpy (lsubj,"Re: "); ! strcat (lsubj, eat_re(note_h_subj)); if (*note_h_followup && strcmp(note_h_followup, "poster") != 0) ! ngroup = note_h_followup; else ! ngroup = note_h_newsgroups; ! if (!(*note_h_distrib)) ! strcpy (note_h_distrib,"world"); if (respnum) { /* if "copy_text" */ fprintf(fp, "%s writes:\n", note_h_from); *************** *** 1177,1183 **** copy_fp(note_fp, fp, "> "); } ! add_signature(fp, FALSE); fclose(fp); ch = 'e'; --- 1174,1180 ---- copy_fp(note_fp, fp, "> "); } ! add_signature(fp, TRUE); fclose(fp); ch = 'e'; *************** *** 1195,1201 **** case 'p': printf("Posting... "); fflush(stdout); ! sprintf(buf, "%s/inews -h < %s", LIBDIR, nam); if (invoke_cmd(buf)) { printf("article posted\r\n"); fflush(stdout); --- 1192,1199 ---- case 'p': printf("Posting... "); fflush(stdout); ! sprintf(buf, "/bin/gnewspost -s \"%s\" -n %s -d %s -F \"%s\" < %s 2>/dev/null\n"\ ! ,lsubj,ngroup,note_h_distrib,note_h_messageid,nam); if (invoke_cmd(buf)) { printf("article posted\r\n"); fflush(stdout); *** group.c Wed May 1 17:28:07 1991 --- ./gnews/group.c Tue May 14 12:05:30 1991 *************** *** 726,739 **** } chmod(nam, 0600); - fprintf(fp, "Subject: %s\n", subj); - fprintf(fp, "Newsgroups: %s\n", group); - fprintf(fp, "Distribution: \n"); - if (*my_org) - fprintf(fp, "Organization: %s\n", my_org); fprintf(fp, "\n"); ! ! add_signature(fp, FALSE); fclose(fp); ch = 'e'; --- 724,731 ---- } chmod(nam, 0600); fprintf(fp, "\n"); ! add_signature(fp, TRUE); fclose(fp); ch = 'e'; *************** *** 751,757 **** case 'p': printf("\nPosting... "); fflush(stdout); ! sprintf(buf, "%s/inews -h < %s", LIBDIR, nam); if (invoke_cmd(buf)) { printf("article posted\n"); fflush(stdout); --- 743,749 ---- case 'p': printf("\nPosting... "); fflush(stdout); ! sprintf(buf, "/bin/gnewspost -s \"%s\" -n %s < %s 2>/dev/null\n",subj,group,nam); if (invoke_cmd(buf)) { printf("article posted\n"); fflush(stdout); --- cut here ------------------------------------------------------------ GNEWS should be available from MWCBBS. As far as I know there are now three news packages for Coherent available. WNEWS 3.0 (MINIX), CNEWS (one of the standards), GNEWS 1.01 (Coherent). Choose your favourite package. Joachim +---------------------------------------+-------+-------------------+-------+ | Joachim Riedel | @ @ | Don't worry, | @ @ | | Geschwister-Scholl-Strasse 48 | \_/ | keep smiling | \_/ | | D-6050 Offenbach am Main +-------+-------------------+-------+ | Tel. +49 69 85 62 25 | joachim@jrix.radig.de | +---------------------------------------+-----------------------------------+