🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Mark M Mehl Fri, 28 Sep 1990 15:48
Enhancing nn mail handling; and a premailer
#951
Author: Mark M Mehl
Date: Fri, 28 Sep 1990 15:48
37 lines
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?
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