🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Richard Friedman Thu, 01 Oct 1992 20:59
using elm as a mailer
#3200
Author: Richard Friedman
Date: Thu, 01 Oct 1992 20:59
78 lines
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)|                          /\
\/=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\/
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