Article View: news.software.nn
Article #2351Re: How tell nn to use elm?
From: Max Heffler
Date: Thu, 16 Jan 1992 19:30
Date: Thu, 16 Jan 1992 19:30
58 lines
2053 bytes
2053 bytes
mac@cis.ksu.edu (Myron A. Calhoun) writes:
>I'd like nn to use elm as my mailer and not whatever nn defaults
>to. In particular, I'd like the mailer to save a copy of mail
>I send from nn in the same fashion as does elm.
>I thought it would just be a case of needing to "set xxxx ......"
>in .nn/init, but I've read a fair number of the nn man-ual pages
>without finding an xxxx to set.
From the nn FAQ:
Add the following to ~/.nn/init:
set mailer nn_elm
unset mailer-pipe-input
Here is nn_elm:
#/bin/sh
#
# nn_elm
#
# 07 Aug 91 V1.0
#
# Massage a mail message from nn into a form that elm can use
# (c) 1991 Phil Kernick Wizard Software
#
eval `awk '
BEGIN {
FS = ":";
dq = sprintf("%c", 34);
headers = 0;
to = "";
subject = "";
}
/^.*: / {
headers++;
if($1 == "To")
to = dq substr($0, 5) dq;
if($1 == "Subject")
subject = dq substr($0, 10) dq;
}
/^$/ {
printf("tail +%d %s | elm -s %s %s > /dev/null\n", headers+2, mail, subject, to);
exit;
}' mail=$1 $1`
exit $?
--
Max Heffler, Senior Software Engineer internet: max@compaq.com
Compaq Computer Corporation uucp: ..!uunet!max@compaq.com
P.O. Box 692000 - M050701 phone: (713) 378-8366
Houston, Texas 77269-2000 fax: (713) 374-7305
Technical Details
Message-ID:
<max.695590214@isis>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!isis.eng.hou.compaq.com!maxReferences:
<mac.695495754@depot.cis.ksu.edu>Show Full Headers
Complete Article Headers
Message-ID: <max.695590214@isis> Subject: Re: How tell nn to use elm? Date: Thu, 16 Jan 1992 19:30:14 GMT From: max@isis.eng.hou.compaq.com (Max Heffler) References: <mac.695495754@depot.cis.ksu.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!isis.eng.hou.compaq.com!max Newsgroups: news.software.nn Sender: news@twisto.eng.hou.compaq.com (Netnews Account) Organization: Compaq Computer Corp. Distribution: usa