🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Brian Exelbierd Wed, 21 Dec 1994 18:57
New nn-use-mh script
#6912
Author: Brian Exelbierd
Date: Wed, 21 Dec 1994 18:57
43 lines
1678 bytes
This version of the script to make nn use mh, honors nn's edit query.


#!/bin/sh
# The original idea of using MH (namely, comp) to send mail from nn
# came from Jaap Vermeulen <jaap@sequent.com>, but he wouldn't
# recognize what I did to it.  I also used a suggestion from John
# Romine <jromine@ics.uci.edu> and Tom McCain <tom@dynamo.ecn.purdue.edu>.
#
# Add
#
#       set mail-script nn-use-mh
#
# to your init file.  See Appendix "nn-use-mh" for the script.

# Edited to honor the edit request by Brian Exelbierd (bex@ncsu.edu)

# Obtain value of $WORK and $RECORD
. ${HOME}/.nn/.param

# Append Fcc: +folder to headers.  The folder is specified in
# mail-record.
if [ "$RECORD" != "" ]; then
      awk '
      {
	      if ($0 == "" && !done) {
		      print "Fcc: +'$RECORD'";
		      done = 1;
	      }
	      print;
      }' $WORK > /tmp/aux.$$ && mv /tmp/aux.$$ $WORK
fi

if [ "$FIRST_ACTION" = "send" ]; then
	send $WORK
	rm -f ,$WORK
else
	# Compose and send the mail
	comp -form $WORK
	rm -f $WORK
fi

bex
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