🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
8 messages
8 total messages Started by Myron A. Calhoun Wed, 15 Jan 1992 17:14
How tell nn to use elm?
#2350
Author: Myron A. Calhoun
Date: Wed, 15 Jan 1992 17:14
21 lines
1636 bytes
I'd like nn to use elm as my mailer and not whatever nn defaults
to.  In particular, I'd like the mailer to save a copy of mail
I send from nn in the same fashion as does elm.

I thought it would just be a case of needing to "set xxxx ......"
in .nn/init, but I've read a fair number of the nn man-ual pages
without finding an xxxx to set.

A local guru said that while he knew how to configure elm to use
something besides "sendmail" as the Mail Transport Agent (MTA),
he couldn't find any way to convince nn to use elm as the Mail User
Agent (MUA).  Then he suggested that I post to news.software.nn and
see if any of you have done this.

Any suggestions?
--Myron.
-- 
# We preserve our freedoms using three boxes:  ballot, jury, and cartridge.
# Myron A. Calhoun, PhD EE; Associate Professor  (913) 539-4448 home
# INTERNET:  mac@cis.ksu.edu (129.130.10.5)      532-6350 work, 532-7353 fax
#      UUCP:  ...rutgers!ksuvax1!depot!mac       W0PBV @ K0VAY.KS.USA.NA
Re: How tell nn to use elm?
#2351
Author: Max Heffler
Date: Thu, 16 Jan 1992 19:30
58 lines
2053 bytes
mac@cis.ksu.edu (Myron A. Calhoun) writes:

>I'd like nn to use elm as my mailer and not whatever nn defaults
>to.  In particular, I'd like the mailer to save a copy of mail
>I send from nn in the same fashion as does elm.

>I thought it would just be a case of needing to "set xxxx ......"
>in .nn/init, but I've read a fair number of the nn man-ual pages
>without finding an xxxx to set.

From the nn FAQ:

Add the following to ~/.nn/init:

set   mailer              nn_elm
unset mailer-pipe-input

Here is 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 $?
--
Max Heffler, Senior Software Engineer        internet: max@compaq.com
Compaq Computer Corporation     uucp: ..!uunet!max@compaq.com
P.O. Box 692000 - M050701       phone: (713) 378-8366
Houston, Texas  77269-2000      fax:   (713) 374-7305
Re: How tell nn to use elm?
#2352
Author: Harry Herman
Date: Fri, 17 Jan 1992 13:35
31 lines
1939 bytes
In <mac.695495754@depot.cis.ksu.edu> mac@cis.ksu.edu (Myron A. Calhoun) writes:

>I'd like nn to use elm as my mailer and not whatever nn defaults
>to.  In particular, I'd like the mailer to save a copy of mail
>I send from nn in the same fashion as does elm.

>I thought it would just be a case of needing to "set xxxx ......"
>in .nn/init, but I've read a fair number of the nn man-ual pages
>without finding an xxxx to set.

In your .nn/init file, use the following:
	set mail-record		your-file-name-here

According to the nn manual, this causes nn to save all replies in the
specified file in mail-folder format so that it can be read by either
nn or your mailer.  I have used this since nn V6.4.12, and have a LARGE
file, that I keep meaning to clean up.  And I have read it with elm,
so I assume it is in mail-folder format since elm can read it.

>Any suggestions?
>--Myron.
>-- 
># We preserve our freedoms using three boxes:  ballot, jury, and cartridge.
># Myron A. Calhoun, PhD EE; Associate Professor  (913) 539-4448 home
># INTERNET:  mac@cis.ksu.edu (129.130.10.5)      532-6350 work, 532-7353 fax
>#      UUCP:  ...rutgers!ksuvax1!depot!mac       W0PBV @ K0VAY.KS.USA.NA
-- 
------------------------------------------------
Harry Herman		Corpane Industries, Inc.
UUCP:		herman@corpane.uucp
Internet:	herman%corpane@uunet.uu.net
Re: How tell nn to use elm?
#2363
Author: J.C. Webber III
Date: Sun, 19 Jan 1992 03:56
29 lines
1464 bytes
In <mac.695495754@depot.cis.ksu.edu> mac@cis.ksu.edu (Myron A. Calhoun) writes:

->I'd like nn to use elm as my mailer and not whatever nn defaults
->to.  In particular, I'd like the mailer to save a copy of mail
->I send from nn in the same fashion as does elm.

->I thought it would just be a case of needing to "set xxxx ......"
->in .nn/init, but I've read a fair number of the nn man-ual pages
->without finding an xxxx to set.

->Any suggestions?


Yes...

I have the following entries in my ~/.nn/init file.

set mail-format
set mail-record ~/Mail/nn_mail_sent
set news-record ~/Mail/nn_posted


then you can use either nn or elm to access those files as articles or
mail when ever you want to.
-- 
J.C. Webber III			jc@skyking.UUCP
R&D Lab Manager			..!uunet!cadence!mips!skyking!jc
Mips Computer Systems		{ames,decwrl,pyramid,prls)!mips!skyking!jc
(408)524-8260
Re: How tell nn to use elm?
#2368
Author: Bill Silvert
Date: Sun, 19 Jan 1992 14:42
33 lines
2131 bytes
In <793@skyking.UUCP> jc@skyking.UUCP (J.C. Webber III) writes:

>->I'd like nn to use elm as my mailer and not whatever nn defaults
>->to.  In particular, I'd like the mailer to save a copy of mail
>->I send from nn in the same fashion as does elm.

>I have the following entries in my ~/.nn/init file.

>set mail-format
>set mail-record ~/Mail/nn_mail_sent
>set news-record ~/Mail/nn_posted

>then you can use either nn or elm to access those files as articles or
>mail when ever you want to.

I've seen several responses like this, and they miss the point (at least
in the sense that I want to do the same as the original poster, and they
don't tell me how to do it):

When I read a message and hit 'r' to reply to it, I use a mailer.  How
can I let that mailer be elm, with full access to elm's features?  Same
if I hit 'm' to remail it, possibly to an elm alias?

I know that I can save the item and then run elm on the archive file,
but that is a slow and inefficient way to do it.
-- 
William Silvert, Habitat Ecology Division, Bedford Inst. of Oceanography
P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2.  Tel. (902)426-1577
InterNet Address: silvert@biome.bio.ns.ca
-- 
William Silvert, Habitat Ecology Division, Bedford Inst. of Oceanography
P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2.  Tel. (902)426-1577
InterNet Address: silvert@biome.bio.ns.ca
Re: How tell nn to use elm?
#2373
Author: Max Heffler
Date: Tue, 21 Jan 1992 05:52
31 lines
1980 bytes
silvert@cs.dal.ca (Bill Silvert) writes:

>In <793@skyking.UUCP> jc@skyking.UUCP (J.C. Webber III) writes:

>>->I'd like nn to use elm as my mailer and not whatever nn defaults
>>->to.  In particular, I'd like the mailer to save a copy of mail
>>->I send from nn in the same fashion as does elm.

>>I have the following entries in my ~/.nn/init file.

>>set mail-format
>>set mail-record ~/Mail/nn_mail_sent
>>set news-record ~/Mail/nn_posted

>>then you can use either nn or elm to access those files as articles or
>>mail when ever you want to.

>I've seen several responses like this, and they miss the point (at least
>in the sense that I want to do the same as the original poster, and they
>don't tell me how to do it):

>When I read a message and hit 'r' to reply to it, I use a mailer.  How
>can I let that mailer be elm, with full access to elm's features?  Same
>if I hit 'm' to remail it, possibly to an elm alias?

The portion of the FAQ that I posted does what you want.
--
Max Heffler, Senior Software Engineer        internet: max@compaq.com
Compaq Computer Corporation     uucp: ..!uunet!max@compaq.com
P.O. Box 692000 - M050701       phone: (713) 378-8366
Houston, Texas  77269-2000      fax:   (713) 374-7305
Re: How tell nn to use elm?
#2377
Author: Jaap Vermeulen
Date: Tue, 21 Jan 1992 16:42
24 lines
1940 bytes
In <max.695973159@isis> max@isis.eng.hou.compaq.com (Max Heffler) writes:

>silvert@cs.dal.ca (Bill Silvert) writes:
>
>>I've seen several responses like this, and they miss the point (at least
>>in the sense that I want to do the same as the original poster, and they
>>don't tell me how to do it):
>
>>When I read a message and hit 'r' to reply to it, I use a mailer.  How
>>can I let that mailer be elm, with full access to elm's features?  Same
>>if I hit 'm' to remail it, possibly to an elm alias?
>
>The portion of the FAQ that I posted does what you want.

It allows you to use the elm aliases etc.  etc.  but it doesn't let you
use elm when you're composing your message.  Although that's enough for
most people, if you really want to use elm to compose your message, you
have to roll up your sleeves and start hacking in the aux script.
That's where the message gets composed.  It's a shell script, I'm sure
you can rewrite it to invoke elm instead of your favorite editor when
composing a message.  The aux script can typically be found as
/usr/local/lib/nn/aux.  Have fun... :-)

	-Jaap-
Re: How tell nn to use elm?
#2414
Author: Bill Irwin
Date: Sat, 01 Feb 1992 09:40
60 lines
2496 bytes
max@isis.eng.hou.compaq.com (Max Heffler) writes:

: mac@cis.ksu.edu (Myron A. Calhoun) writes:

: >I'd like nn to use elm as my mailer and not whatever nn defaults
: >to.  In particular, I'd like the mailer to save a copy of mail
: >I send from nn in the same fashion as does elm.

: >I thought it would just be a case of needing to "set xxxx ......"
: >in .nn/init, but I've read a fair number of the nn man-ual pages
: >without finding an xxxx to set.

: From the nn FAQ:

: Add the following to ~/.nn/init:

: set   mailer              nn_elm
: unset mailer-pipe-input

: Here is nn_elm:

[portion of code deleted]
:     printf("tail +%d %s | elm -s %s %s > /dev/null\n", headers+2, mail, subject, to);
                                ^^^^^
When I tried to use this, because the subject was not in quotes, it
took the first word of the subject as the subject, with all other
words being interpreted as recipients.  I modified this line to output
the subject surrounded by quotes.

The problem is that Elm immediately mails the message, without taking
me into editing mode.  Do I have an ancient version of Elm that won't
allow me to invoke it with a file name and go into compose before
sending?  I have 2.3 PL11.













:     exit;
: }' mail=$1 $1`

: exit $?
: --
: Max Heffler, Senior Software Engineer        internet: max@compaq.com
: Compaq Computer Corporation     uucp: ..!uunet!max@compaq.com
: P.O. Box 692000 - M050701       phone: (713) 378-8366
: Houston, Texas  77269-2000      fax:   (713) 374-7305
-- 
Bill Irwin    -       The Westrheim Group     -    Vancouver, BC, Canada
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uunet!twg!bill            (604) 431-9600 (voice) |     Your Computer  
bill@twg.bc.ca            (604) 430-4329 (fax)   |    Systems Partner
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