Article View: news.software.nn
Article #6912New nn-use-mh script
From: Brian Exelbierd
Date: Wed, 21 Dec 1994 18:57
Date: Wed, 21 Dec 1994 18:57
43 lines
1678 bytes
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
Technical Details
Message-ID:
<3d9tq6$mhb@taco.cc.ncsu.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!gatech!taco.cc.ncsu.edu!bexShow Full Headers
Complete Article Headers
Message-ID: <3d9tq6$mhb@taco.cc.ncsu.edu> Subject: New nn-use-mh script Date: Wed, 21 Dec 1994 18:57:10 +0000 From: bex@catt.ncsu.edu (Brian Exelbierd) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!gatech!taco.cc.ncsu.edu!bex Newsgroups: comp.mail.mh,news.software.nn Organization: North Carolina State University Lines: 43 NNTP-Posting-Host: garfield.catt.ncsu.edu