🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Paul Fischer of BTG Inc. Office ... Thu, 28 Mar 1996 00:00
Need RECMAIL for NN and MMDF
#7554
Author: Paul Fischer of BTG Inc. Office ...
Date: Thu, 28 Mar 1996 00:00
12 lines
671 bytes


Hi,

I know there is a "recmail" script for use with MMDF out there in
the SCO community.  Could someone send me a copy of it please.

Paul


Re: Need RECMAIL for NN and MMDF
#7552
Author: Robert Lipe
Date: Fri, 29 Mar 1996 00:00
107 lines
3008 bytes
In <4jem1i$4ba@rohan.btg.com> paul@pfischer (Paul Fischer of BTG Inc. Office Automation) writes:

>I know there is a "recmail" script for use with MMDF out there in
>the SCO community.  Could someone send me a copy of it please.

Paul, I know you sent me your mail address yesterday, but I didn't keep it.

I've attached the recmail I used to use.  However, on my OpenServer 5
box that runs MMDF, I now use /usr/lib/sendmail -t and it works swimmingly.

It is part of the OS.



#!/bin/sh
#  This is my version of a mailer that parses the To: lines and invokes the
#  domain-based mailer		mfr Jul 89

export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0; kill $$)

# System dependencies

# mailer="/usr/local/smtp"
mailer="/usr/bin/mailx"
# your site name
case define in
define) sitename=`hostname` ;;
undef) sitename="puppsr" ;;
esac

test=test
sed=/bin/sed
echo=/bin/echo
cat=/bin/cat
grep=/bin/grep
rm=/bin/rm

dotdir=${DOTDIR-${HOME-$LOGDIR}}
tmpart=$dotdir/.letter
ttmpart=$dotdir/.letter_

	tee $tmpart | egrep -v "^Subject:|^To:"  >$ttmpart

	case $mailer in
	*sendmail)
	    $mailer -t <$tmpart
	    ;;
# but recmail does not know about Bcc, alas
	*recmail)
	    $mailer <$tmpart
	    ;;
	*)
	    set X `$sed <$tmpart -n -e '/^To:/{' -e 's/To: *//p' -e q -e '}'`
	    shift
	    set X "$@" `$sed <$tmpart -n -e '/^Cc:/{' -e 's/Cc: *//p' -e q -e '}'`
	    shift
	    set X "$@" `$sed <$tmpart -n -e '/^Bcc:/{' -e 's/Bcc: *//p' -e q -e '}'`
	    shift
	    subject=`$sed <$tmpart -n -e '/^Subject:/{' -e 's/Subject: *//p' -e q -e '}'`
#	    shift
	    for i in "$@"
	    do
#		thost=`echo $i | cut -s -d@ -f2`
#		recip=`echo $i | cut -s -d@ -f1`
		recip=`echo $i | cut -s -f1`
		recip=`echo $i`
#		sender=${LOGNAME}@${sitename}
		$grep -v "^Bcc:"  <$ttmpart | $mailer -s "$subject" $recip
	    done
	    ;;
	esac
	case $? in
	0)
	    state=cleanup
	    ;;
	*)
	    state=rescue
	    ;;
	esac
case $state in
    rescue)
	$cat $tmpart >> ${HOME-$LOGDIR}/dead.letter
	$echo "Message appended to ${HOME-$LOGDIR}/dead.letter"
	$echo "A copy may be temporarily found in $tmpart"
	exit
	;;
    cleanup)
	case "${MAILRECORD-none}" in
	none)
	    ;;
	*)  if $cat $tmpart >> $MAILRECORD; then
		$echo "Article appended to $MAILRECORD"
	    else
		$echo "Cannot append to $MAILRECORD"
	    fi
	    ;;
	esac
	exit
	;;
    esac
done


--
Robert Lipe

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