Article View: news.software.nn
Article #951Enhancing nn mail handling; and a premailer
From: Mark M Mehl
Date: Fri, 28 Sep 1990 15:48
Date: Fri, 28 Sep 1990 15:48
37 lines
2545 bytes
2545 bytes
I like the ability to edit Usenet articles before e-mailing them to
my colleagues; however, when doing so, I'm unable to use the aliases
defined in my .mailrc file to e-mail them. There's an _easy_
enhancement to nn that would remedy the problem. Simply have nn
define a $TO variable that contained the e-mail aliases on the To:
line of the message. The user-level mailer (which consults the
.mailrc file for aliases) could then use the $TO variable to forward
the mail. One would then set:
set mailer mail $TO
in their ~/.nn/init file (where "mail $TO" is the shell command nn
automatically pipes to) so nn forwards the mail to the user-level
(high-level) mailer rather than the low-level mailer (e.g. sendmail).
----------------------
Meanwhile, until such an enhancement is available, has anyone written
a simple premailer program that would do the same thing? The
premailer would need to except stdin (piped) from nn and pipe it to
the user-level mailer. In addition, it would need to extract the
contents of the To: line in the message and pass that as an argument
to the user-level mailer. Then one can set their nn mailer to:
set mailer premailer | mail $TO
or something equivalent. (Note: The default aux script may have
problems with the pipe symbol so the above may not work exactly as
stated.) Any simple C program or shell script (say using awk or
something) would be of interest to me. Please post it to this
group (others may be interested). Thanks in advance.
--
/\ Mark M Mehl, alias Superticker (Supertickler to some)
<><> Internet: mehl@atanasoff.cs.IAstate.edu
\/ UUCP: {{mailrus,umix}!sharkey,hplabs!hp-lsd,uunet}!atanasoff!mehl
Disclaimer: You got to be kidding; who would want to claim anything I said?
Technical Details
Message-ID:
<mehl.654536885@atanasoff>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!gmdzi!unido!mcsun!uunet!dino!atanasoff!mehlShow Full Headers
Complete Article Headers
Message-ID: <mehl.654536885@atanasoff> Subject: Enhancing nn mail handling; and a premailer Date: Fri, 28 Sep 1990 15:48:05 +0000 From: mehl@cs.iastate.edu (Mark M Mehl) 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!gmdzi!unido!mcsun!uunet!dino!atanasoff!mehl Newsgroups: news.software.nn Summary: Have nn define a $TO variable for the high-level mailer Keywords: mailing, premailer, nn suggestion Sender: usenet@dino.cs.iastate.edu Reply-To: mehl@atanasoff.cs.iastate.edu Organization: Dept of EE/CprE -- IOWA STATE UNIV Lines: 37 Posted: Fri Sep 28 16:48:05 1990