🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #14635

Re: Use of ELM as your mailer in XRN?

#14635
From: David Wolfe
Date: Mon, 16 Jan 1995 20:27
72 lines
3017 bytes
In <3f66uf$8do@pad-thai.cam.ov.com> jik@cam.ov.com (Jonathan I. Kamens) writes:

>In article <3f4bcs$gk2@courier.urbana.mcd.mot.com>, amy@michael.austin.mcd.mot.com (Amy Moseley Rupp) writes:
>|> Notice that I used to use sendmail, which works fine, but I wanted
>|> to add the functionality of elm, i.e. autosave, auto-attach-.sig,
>|> aliases, etc. etc. However, when I invoke it, it seems to warp into
>|> an endless loop of scrolling through my elm options, everything
>|> locks up, and to recover, I have to kill xrn.

>You are confused about exactly what the "mailer" you tell xrn to use is
>supposed to do.
[ explanation of MTA and MUA deleted ]

>Alternatively, perhaps it has command-line options to say, "Read a mail
>draft from a specified file, allow the user to manipulate and send it,
>and then exit." In that case, you can write a shell script to save the
>message that xrn puts out into a temporary file, call elm with the
>correct command-line options on that file, and then remove it and exit.

What you want, Amy, is something like the nn_elm script (included
below) to interface elm to xrn. Note that this doesn't bring up elm in
interactive mode, but I don't think that you expect that anyway.

----------------------------------8<------------------------------------
#!/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 <phil@ringo.ssn.flinders.edu.au> Wizard Software
#
# 10 Nov 94             V1.1	Escape quotes in subject -- Dave Wolfe

eval `awk '
BEGIN {
    
  FS = ":";
  dq = sprintf("%c", 34);
  bs = sprintf("%c", 92);

  headers = 0;
  to = "";
  subject = "";
}

/^.*: / {
    
  headers++;
  if($1 == "To")
    to = dq substr($0, 5) dq;
  if($1 == "Subject") {
    subject = substr($0, 10);
    gsub(/\"/, bs dq, subject);
    subject = dq subject dq;
  }
}

/^$/ {
    
    printf("tail +%d %s | elm -s %s %s > /dev/null\n", headers+2, mail, subject,
 to);
    exit;
}' mail=$1 $1`

exit $?
----------------------------------8<------------------------------------

-- 
 Dave Wolfe    | 6501 William Cannon Dr. W. | (512) 891-3246
 Motorola MMTG | Austin, TX  78735-8598     | dwolfe@pets.sps.mot.com
Technical Details
Message-ID: <dwolfe.790288043@talos4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!oakhill!risc.sps.mot.com!talos4!dwolfe
References: <3f4bcs$gk2@courier.urbana.mcd.mot.com> <3f66uf$8do@pad-thai.cam.ov.com>

Show Full Headers
Complete Article Headers
Message-ID: <dwolfe.790288043@talos4>
Subject: Re: Use of ELM as your mailer in XRN?
Date: Mon, 16 Jan 1995 20:27:23 +0000
From: dwolfe@miaow.sps.mot.com (David Wolfe)
References: <3f4bcs$gk2@courier.urbana.mcd.mot.com> <3f66uf$8do@pad-thai.cam.ov.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.readers.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!oakhill!risc.sps.mot.com!talos4!dwolfe
Newsgroups: news.software.readers
Organization: Motorola (Austin,TX)
Lines: 72
NNTP-Posting-Host: miaow.sps.mot.com