Thread View: news.software.readers
3 messages
3 total messages
Started by Amy Moseley Rupp
Thu, 12 Jan 1995 22:44
Use of ELM as your mailer in XRN?
Author: Amy Moseley Rupp
Date: Thu, 12 Jan 1995 22:44
Date: Thu, 12 Jan 1995 22:44
17 lines
1480 bytes
1480 bytes
I use elm as my mailer in xrn: !xrn*.mailer: /usr/ucblib/sendmail -oi -t xrn*.mailer: /local/bin/elm 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. Has anyone successfully used elm with xrn? -- Amy Moseley Rupp 108 Wild Basin Ste. 108, Austin, Texas 78746 Motorola Computer Group FAX: (512) 329-7131 amy@austin.mcd.mot.com alphanumeric pgr: (512) 933-5511, pgr 327117 (300 baud) (512) 329-7117 digital pgr: (512) 933-7333, pgr 327117
Re: Use of ELM as your mailer in XRN?
Author: Jonathan I. Kamens
Date: Fri, 13 Jan 1995 15:41
Date: Fri, 13 Jan 1995 15:41
42 lines
3045 bytes
3045 bytes
In article <3f4bcs$gk2@courier.urbana.mcd.mot.com>, amy@michael.austin.mcd.mot.com (Amy Moseley Rupp) writes: |> I use elm as my mailer in xrn: More accurately, you are *trying* to use elm as your mailer in xrn, and it's not working, hence your posting. |> !xrn*.mailer: /usr/ucblib/sendmail -oi -t |> xrn*.mailer: /local/bin/elm |> |> 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. What it needs to be able to do is to take a mail message on its standard input and deliver that message to the recipients specified in its header. In other words, you need to give xrn the name of a Mail Transport Agent, or MTA, to use. Elm is an interactive program which displays your current mail, allows you to send new messages, etc. In other words, elm is a Mail User Agent, or MUA, not an MTA. The "endless loop" you are seeing is because elm is treating the contents of the mail message which xrn is feeding it on standard input as elm commands, and, understandably, getting very confused as a result. I don't use elm, so I don't know if it has command-line options to say, "Take a mail message on standard input, and allow the user to do everything with it that you'd allow her to do when composing a message from inside elm, and then exit after the message is sent." If it has such options, then you need to specify them on the command line in your X resources. 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. If neither of these is the case, then you're not going to be able to get xrn to do what you're trying to do. -- Jonathan Kamens | OpenVision Technologies, Inc. | jik@cam.ov.com
Re: Use of ELM as your mailer in XRN?
Author: David Wolfe
Date: Mon, 16 Jan 1995 20:27
Date: Mon, 16 Jan 1995 20:27
72 lines
3017 bytes
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
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