🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Qin Fang Wed, 29 Sep 1993 18:36
trn: forward an article to other people
#6056
Author: Qin Fang
Date: Wed, 29 Sep 1993 18:36
10 lines
1152 bytes
  If I find an interesting news article and want to forward it to
my friends via email, how can I do it in trn?

  Thanks.
--

*****************************************************************************
*    Qin Fang              University of North Carolina at Chapel Hill      *
*    Qin_Fang@unc.edu      Office of Information Technology                 *
*****************************************************************************
Re: trn: forward an article to other people
#6051
Author: Jerry Whelan
Date: Wed, 29 Sep 1993 19:03
11 lines
1258 bytes
In article <FANG.93Sep29143650@p-dwarf.oit.unc.edu>,
Qin Fang <fang@p-dwarf.oit.unc.edu> wrote:
-}   If I find an interesting news article and want to forward it to
-} my friends via email, how can I do it in trn?

	You could probably pipe it to mail, but I just hit `R' and
then change the To: line.  This way you can also add comments
and edit the text of the article if you want to.

-------------------------------------------------------------------------------
Jerry Whelan                                             guru@stasi.bradley.edu
Re: trn: forward an article to other people
#6052
Author: John Schmitz
Date: Wed, 29 Sep 1993 19:26
147 lines
4870 bytes
Re: forwarding in trn

> 	You could probably pipe it to mail, but I just hit `R' and
> then change the To: line.

This is true, but I find it cumbersome.  I prefer the following
patch to make ^e be the forward key.  This way I can customize the
quotes, subject and attribution independently of how I might reply.


*** /tmp/,RCSt1a07438	Wed Sep 29 12:17:34 1993
--- respond.c	Tue Aug 24 14:36:41 1993
***************
*** 650,655
  }
  
  void
  followup()
  {
      bool incl_body = (*buf == 'F');

--- 654,700 -----
  
  
  void
+ forward()
+ {
+     char *maildoer = savestr(filexp(getval("MAILPOSTER",MAILPOSTER)));
+ 
+     artopen(art);
+     tmpfp = fopen(headname,"w");	/* open header file */
+     if (tmpfp == Nullfp) {
+ 	printf(cantcreate,headname) FLUSH;
+ 	goto no_forward;
+     }
+     interp(buf, (sizeof buf), getval("FORWMAILHEADER",FORWMAILHEADER));
+     fputs(buf,tmpfp);
+     if (!instr(maildoer,"%h",TRUE))
+ #ifdef VERBOSE
+ 	IF(verbose)
+ 	    printf("\n%s\n(Above lines saved in file %s)\n",buf,headname)
+ 	      FLUSH;
+ 	ELSE
+ #endif
+ #ifdef TERSE
+ 	    printf("\n%s\n(Header in %s)\n",buf,headname) FLUSH;
+ #endif
+     if (artfp != Nullfp) {
+ 	interp(buf, (sizeof buf), getval("POSTERSAID",POSTERSAID));
+ 	fprintf(tmpfp,"%s\n",buf);
+ 	parseheader(art);
+ 	fseek(artfp,(long)htype[PAST_HEADER].ht_minpos,0);
+ 	while (fgets(buf,LBUFLEN,artfp) != Nullch) {
+ 	    fprintf(tmpfp,"%s",buf);
+ 	}
+ 	fprintf(tmpfp,"\n");
+     }
+     fclose(tmpfp);
+     interp(cmd_buf, (sizeof cmd_buf), maildoer);
+     invoke(cmd_buf,origdir);
+     UNLINK(headname);		/* kill the header file */
+ no_forward:
+     free(maildoer);
+ }
+ 
+ void
  followup()
  {
      bool incl_body = (*buf == 'F');
*** /tmp/,RCSt1a07446	Wed Sep 29 12:18:40 1993
--- ng.c	Tue Aug 24 14:36:38 1993
***************
*** 1086,1091
      case 'f': {			/* followup command */
  	followup();
  	forcegrow = TRUE;		/* recalculate lastart */
  	return AS_ASK;
      }
      case '|':

--- 1097,1106 -----
      case 'f': {			/* followup command */
  	followup();
  	forcegrow = TRUE;		/* recalculate lastart */
+ 	return AS_ASK;
+     }
+     case Ctl('e'): {			/* reply? */
+ 	forward();
  	return AS_ASK;
      }
      case '|':
*** /tmp/,RCSt1a07456	Wed Sep 29 12:21:27 1993
--- common.h	Tue Aug 24 14:44:10 1993
***************
*** 551,556
  #   endif
  #endif
  
  #ifndef YOUSAID			/* % */
  #   define YOUSAID "In article %i you write:"
  #endif

--- 570,593 -----
  #   endif
  #endif
  
+ #ifdef INTERNET
+ #   ifndef FORWMAILHEADER		/* % */
+ #	ifdef CONDSUB
+ #	    define FORWMAILHEADER "To: \nSubject: (fwd) Re: %S\n%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}\n)Newsgroups: %n\nIn-Reply-To: %i\n%(%[references]!=^$?References\\: %[references]\n)Organization: %o\nCc: \nBcc: \n\n"
+ #	else
+ #	    define FORWMAILHEADER "To: \nSubject: (fwd) Re: %S\nNewsgroups: %n\nIn-Reply-To: %i\nReferences: %[references]\nCc: \nBcc: \n\n"
+ #	endif
+ #   endif
+ #else
+ #   ifndef FORWMAILHEADER		/* % */
+ #	ifdef CONDSUB
+ #	    define MAILHEADER "To: \nSubject: (fwd) %(%i=^$?:Re: %S\nNewsgroups: %n\nIn-Reply-To: %i)\n%(%[references]!=^$?References\\: %[references]\n)Organization: %o\nCc: \nBcc: \n\n"
+ #	else
+ #	    define FORWMAILHEADER "To: \nSubject: (fwd) Re: %S\nNewsgroups: %n\nIn-Reply-To: %i\nReferences: %[references]\nCc: \nBcc: \n\n"
+ #	endif
+ #   endif
+ #endif
+ 
  #ifndef YOUSAID			/* % */
  #   define YOUSAID "In article %i you write:"
  #endif
***************
*** 555,560
  #   define YOUSAID "In article %i you write:"
  #endif
  
  /* command to submit a followup article */
  #ifndef NEWSPOSTER		/* % and ~ */
  #   define NEWSPOSTER "QUOTECHARS=%I Pnews -h %h"

--- 592,601 -----
  #   define YOUSAID "In article %i you write:"
  #endif
  
+ #ifndef POSTERSAID                      /* % */
+ #   define POSTERSAID "In article %i %f writes:"
+ #endif
+ 
  /* command to submit a followup article */
  #ifndef NEWSPOSTER		/* % and ~ */
  #   define NEWSPOSTER "QUOTECHARS=%I Pnews -h %h"
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