Article View: news.software.nn
Article #3200using elm as a mailer
From: Richard Friedman
Date: Thu, 01 Oct 1992 20:59
Date: Thu, 01 Oct 1992 20:59
78 lines
2142 bytes
2142 bytes
I have been trying to get nn to use elm as a
mailer so I can use the elm aliases I have created.
I found the recommended stript in the FAQ file,
and installed it. But every mail message goes
to the dead.letter box.
Anyone willing to look this over?:
My .nn/init file:
# rchrd init file for nn
set record ~/News/sent
set repeat
set header-lines =S=NFODLRW
define 1
'%''%'
end
map menu \ macro 1
set consolidated-menu
set new-group-action 4
set query-signature
set repeat-group-query
set mailer ~/bin/nn_elm
unset mailer-pipe-input
Here is bin/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 $?
As I say, everything, including mail sent to
legit unaliased usernames, goes to dead.letter.
The message is properly formed. I suspect something
may be going wrong with the $to variable.. but what?
--
/\=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=/\
\/Richard Friedman (510)528-7055 | rchrd@netcom.com
/\Applied Parallel Rsch (Berkeley)| /\
\/=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\/
Technical Details
Message-ID:
<1992Oct1.205934.23881@netcom.com>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!gumby!wupost!csus.edu!netcom.com!rchrdShow Full Headers
Complete Article Headers
Message-ID: <1992Oct1.205934.23881@netcom.com> Subject: using elm as a mailer Date: Thu, 1 Oct 1992 20:59:34 GMT From: rchrd@netcom.com (Richard Friedman) 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!gumby!wupost!csus.edu!netcom.com!rchrd Newsgroups: news.software.nn Organization: Applied Parallel Rsrch (Berkeley) Lines: 79