Thread View: news.software.nn
8 messages
8 total messages
Started by Timothy Murphy
Fri, 04 Nov 1994 19:48
(Q) setting mailer -> elm
Author: Timothy Murphy
Date: Fri, 04 Nov 1994 19:48
Date: Fri, 04 Nov 1994 19:48
20 lines
1165 bytes
1165 bytes
I carried out the instructions in the FAQ, adding set mailer nn_elm to .nn/init, putting the nn_elm script in my path (and also in .nn), etc, but it had no discernible effect. I'm not quite clear what the intended effect is? I had assumed that when I replied to a posting I would go into elm. Any suggestions gratefully received. -- Timothy Murphy e-mail: tim@maths.tcd.ie tel: +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Re: (Q) setting mailer -> elm
Author: John Brinda
Date: Sat, 05 Nov 1994 03:14
Date: Sat, 05 Nov 1994 03:14
21 lines
1646 bytes
1646 bytes
In <39e36m$gp8@hamilton.maths.tcd.ie> tim@maths.tcd.ie (Timothy Murphy) writes:
>I carried out the instructions in the FAQ, adding
>set mailer nn_elm
>to .nn/init, putting the nn_elm script in my path
>(and also in .nn), etc,
>but it had no discernible effect.
>I'm not quite clear what the intended effect is?
>I had assumed that when I replied to a posting
>I would go into elm.
>Any suggestions gratefully received.
I tried this as well with similar results somebody please post some help on
this question.
--
_____________________________________________________________________________
John Brinda _ /| I saw the best minds of my generation destroyed
\'o.O' by madness, starving hysterical naked...
brinda@netcom.com =(___)= angelheaded hipsters burning for the ancient
brinda@scf.usc.edu U heavenly connection to the stary dynamo...
_____________________________________________________________________________
Re: (Q) setting mailer -> elm
Author: Sven Guckes
Date: Mon, 07 Nov 1994 15:30
Date: Mon, 07 Nov 1994 15:30
16 lines
1256 bytes
1256 bytes
tim@maths.tcd.ie (Timothy Murphy) writes: >I carried out the instructions in the FAQ, adding "set mailer nn_elm" >to .nn/init, putting the nn_elm script in my path (and also in .nn), etc, >but it had no discernible effect. Looks like the description depends a lot on the system. Never got it running myself. I support any movement for a good description on that. Sven -- X-Mail-Reader: Elm 2.4 PL22 X-News-Reader: NN 6.4.13 #15
Re: (Q) setting mailer -> elm
Author: Nancy McGough
Date: Tue, 08 Nov 1994 00:40
Date: Tue, 08 Nov 1994 00:40
19 lines
1536 bytes
1536 bytes
Sven Guckes <guckes@inf.fu-berlin.de> writes: >tim@maths.tcd.ie (Timothy Murphy) writes: >>I carried out the instructions in the FAQ, adding "set mailer nn_elm" >>to .nn/init, putting the nn_elm script in my path (and also in .nn), etc, >>but it had no discernible effect. > >Never got it running myself. >I support any movement for a good description on that. I also never got it working. Now I've switched to Pine 3.91 and I'd love to be able to use Pine's .addressbook from NN - does anyone know how to do that? Nancy -- /\_/\ ( o.o ) Nancy McGough http://www.jazzie.com/ii/ > ^ < Infinite Ink ftp://ftp.ii.com/pub/ii
Re: (Q) setting mailer -> elm
Author: David Friedlander
Date: Wed, 09 Nov 1994 15:22
Date: Wed, 09 Nov 1994 15:22
45 lines
2873 bytes
2873 bytes
brinda@netcom.com (John Brinda) writes: >In <39e36m$gp8@hamilton.maths.tcd.ie> tim@maths.tcd.ie (Timothy Murphy) writes: >>I carried out the instructions in the FAQ, adding >>set mailer nn_elm >>to .nn/init, putting the nn_elm script in my path >>(and also in .nn), etc, >>but it had no discernible effect. >>I'm not quite clear what the intended effect is? >>I had assumed that when I replied to a posting >>I would go into elm. >>Any suggestions gratefully received. >I tried this as well with similar results somebody please post some help on >this question. THe nn_elm script allows you to mail directly to your elm aliases, so that you do not have to remember or type out the full addresses of recipients. It does not throw you into elm. The script works, but there is one odd bug: If the Subject line contains punctuation (I haven't isolated which types), it does indeed mail a copy to your intended recipient, but it also tries to send it to individual words on your Subject line, which, of course, bounce. Rough Example: To: joe@nowhere.com Subject: Hey! "Work for Change" slogan reused from 1924!! might end up being mailed to joe@nowhere.com, Hey, Work, for, Change, etc... It is bothersome but not sufficiently so such that it has been worth my time to investigate/fix the problem. Hope this helps. David +---------------------------------------------------------------------------+ |David Friedlander / Hughes STX / Code 664 dpf@egret.gsfc.nasa.gov | |Energetic Gamma Ray Experiment Telescope | |Compton Gamma Ray Observatory | |NASA/ Goddard Space Flight Center, Greenbelt, MD 20771 (301) 286-1129 | +---------------------------------------------------------------------------+
Re: (Q) setting mailer -> elm
Author: John Brinda
Date: Wed, 09 Nov 1994 18:34
Date: Wed, 09 Nov 1994 18:34
33 lines
2249 bytes
2249 bytes
In <39qpfr$5k2@paperboy.gsfc.nasa.gov> dpf@ganges.gsfc.nasa.gov (David Friedlander) writes:
>brinda@netcom.com (John Brinda) writes:
>>In <39e36m$gp8@hamilton.maths.tcd.ie> tim@maths.tcd.ie (Timothy Murphy) writes:
>>>I carried out the instructions in the FAQ, adding
>>>set mailer nn_elm
>>>to .nn/init, putting the nn_elm script in my path
>>>(and also in .nn), etc,
>>>but it had no discernible effect.
>>>I'm not quite clear what the intended effect is?
>>>I had assumed that when I replied to a posting
>>>I would go into elm.
>>>Any suggestions gratefully received.
>>I tried this as well with similar results somebody please post some help on
>>this question.
>THe nn_elm script allows you to mail directly to your elm aliases, so that
>you do not have to remember or type out the full addresses of recipients.
>It does not throw you into elm.
> David
Well, since it seems that some of us would like to be thrown into elm from
nn could someone out there who knows a little perl help us out?
--
___________________________________________________________________________
John Brinda _ /| I saw the best minds of my generation destroyed
\'o.O' by madness, starving hysterical naked...
brinda@netcom.com =(___)= angelheaded hipsters burning for the ancient
brinda@scf.usc.edu U heavenly connection to the stary dynamo...
___________________________________________________________________________
Re: (Q) setting mailer -> elm
Author: Dave Wolfe
Date: Thu, 10 Nov 1994 19:45
Date: Thu, 10 Nov 1994 19:45
91 lines
3392 bytes
3392 bytes
In <39qpfr$5k2@paperboy.gsfc.nasa.gov> dpf@ganges.gsfc.nasa.gov (David Friedlander) writes:
>THe nn_elm script ... works, but there is one odd bug: If the Subject
>line contains punctuation (I haven't isolated which types), it does
>indeed mail a copy to your intended recipient, but it also tries to
>send it to individual words on your Subject line, which, of course,
>bounce.
[ example deleted ]
The problem is the quotes (") in the subject. It would be much prettier
in Perl, but the following revised nn_elm fixes this problem:
---- Cut Here and feed the following to sh ----
#!/bin/sh
# This is a shell archive (produced by shar 3.49)
# To extract the files from this archive, save it to a file, remove
# everything above the "!/bin/sh" line above, and type "sh file_name".
#
# made 11/10/1994 20:04 UTC by dwolfe@miaow
# Source directory /tmp_mnt/home/dwolfe/News
#
# existing files will NOT be overwritten unless -c is specified
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 725 -rwxr-xr-x nn_elm
#
shar: saving /home/dwolfe/nn_elm (Text)
# ============= nn_elm ==============
if test -f 'nn_elm' -a X"$1" != X"-c"; then
echo 'x - skipping nn_elm (File already exists)'
else
echo 'x - extracting nn_elm (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'nn_elm' &&
X#!/bin/sh
X#
X# nn_elm
X#
X# 07 Aug 91 V1.0
X#
X# Massage a mail message from nn into a form that elm can use
X# (c) 1991 Phil Kernick <phil@ringo.ssn.flinders.edu.au> Wizard Software
X#
X# 10 Nov 94 V1.1 Escape quotes in subject -- Dave Wolfe
X
Xeval `awk '
XBEGIN {
X
X FS = ":";
X dq = sprintf("%c", 34);
X bs = sprintf("%c", 92);
X
X headers = 0;
X to = "";
X subject = "";
X}
X
X/^.*: / {
X
X headers++;
X if($1 == "To")
X to = dq substr($0, 5) dq;
X if($1 == "Subject") {
X subject = substr($0, 10);
X gsub(/\"/, bs dq, subject);
X subject = dq subject dq;
X }
X}
X
X/^$/ {
X
X printf("tail +%d %s | elm -s %s %s > /dev/null\n", headers+2, mail, subject,
X to);
X exit;
X}' mail=$1 $1`
X
Xexit $?
SHAR_EOF
chmod 0755 nn_elm ||
echo 'restore of nn_elm failed'
Wc_c="`wc -c < 'nn_elm'`"
test 725 -eq "$Wc_c" ||
echo 'nn_elm: original size 725, current size' "$Wc_c"
fi
exit 0
--
Dave Wolfe | 6501 William Cannon Dr. W. | (512) 891-3246
Motorola MMTG | Austin, TX 78735-8598 | dwolfe@pets.sps.mot.com
Re: (Q) setting mailer -> elm (here's a SOLUTION)
Author: Robert Joop
Date: Sat, 12 Nov 1994 00:32
Date: Sat, 12 Nov 1994 00:32
221 lines
6460 bytes
6460 bytes
tim@maths.tcd.ie (Timothy Murphy) writes:
>I carried out the instructions in the FAQ, adding
>set mailer nn_elm
>to .nn/init, putting the nn_elm script in my path
>(and also in .nn), etc,
>but it had no discernible effect.
>I'm not quite clear what the intended effect is?
>I had assumed that when I replied to a posting
>I would go into elm.
>Any suggestions gratefully received.
a lot of people seem to have problems with nn_elm. i stopped using it a lot
of years ago and wrote my own version called nnelm. it is written in perl
(both perl 4 and 5 work) and doesn't call elm at all. it just uses the elm
alias database. it's appended below.
look at the file's beginning since you may need to adjust your ~/.nn/init
and some paths in nnelm itself.
best,
rj
#!/bin/sh
# This is a shell archive (produced by shar 3.52.3)
# To extract the files from this archive, save it to a file, remove
# everything above the "!/bin/sh" line above, and type "sh file_name".
#
# made 11/12/1994 00:26 UTC by rj@rainbow
# Source directory /home/rainbow/rj/.rm
#
# existing files will NOT be overwritten unless -c is specified
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 3237 -rwxrwxr-x nnelm
#
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
shar_touch=touch
else
shar_touch=:
echo 'WARNING: not restoring timestamps'
fi
rm -f 1231235999 $$.touch
#
# ============= nnelm ==============
if test -f 'nnelm' && test X"$1" != X"-c"; then
echo 'x - skipping nnelm (File already exists)'
else
echo 'x - extracting nnelm (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'nnelm' &&
#!/usr/local/bin/perl
# File: nnelm
# Purposes:
# - expand elm aliases
# - transform to mail-safe encoding
# nnelm's behaviour can be influenced by specifying an X-nnelm: header
# with the following options:
# ascii text is ASCII, don't encode
# noenc don't encode (assumes 8bit clean channel)
# qp convert to quoted-printable
# b64 convert to base64
# This version doesn't use elm or fastmail to actually send the mail
# An elm utility is used to expand aliases only.
# � 1993, 1994 by Robert Joop <rj@rainbow.in-berlin.de>
$version = '3.1.3';
# Put the following line into your ~/.nn/init:
# set mailer nnelm
# The line
# unset mailer-pipe-input
# is *not* needed.
# This program automatically generates a Bcc: to oneself that can be
# redirected using procmail; put something like the following into your
# ~/.procmailrc:
# :2
# ^X-Mailer: nnelm
# ^From: rj
# nn-sent
# (you've got to replace `rj' with your userid.)
X
# --- configuration: ---
X
# command that expands elm aliases:
$expand = '/usr/local/bin/checkalias';
$commatospace = 1; # checkalias doesn't like commas :-(
X
$charset = 'ISO-8859-1';
X
# MIME encoding:
$encoding = 'quoted-printable';
# command that generates MIME $encoding:
if ($ENV{'DOMAIN'} eq 'tubcs')
{
X $encoder = '/usr/elm/bin/mmencode';
}
else
{
X $encoder = '/usr/local/bin/mmencode';
}
%encoders = ('quoted-printable', "$encoder -q", 'base64', "$encoder -b");
$encode = 1;
$encoding = 'quoted-printable';
X
# MTA:
$sendmail = '/usr/lib/sendmail -t';
X
$tmp = "/tmp/nnelm.$$";
X
# --- let's do it! ---
X
open (TMP, "> $tmp");
X
$hdr = '';
hdr_line: while (<>)
{
X if ((/^$/ || !/^[ \t]/) && $hdr ne '')
X {
X # process header line:
X if ($hdr =~ /^(X-)?nnelm:/i)
X {
X $hdr =~ s/^(X-)?nnelm:\s*//i;
X @args = split (/[\s,]+/, $hdr);
X foreach $arg (@args)
X {
X if ($arg eq 'ascii')
X {
X $encode = 0;
X $encoding = '7bit';
X $charset = 'US-ASCII';
X }
X elsif ($arg eq 'noenc' || $arg eq 'no')
X {
X $encode = 0;
X $encoding = '8bit';
X }
X elsif ($arg eq 'qp' || $arg =~ /^quote/)
X {
X $encode = 1;
X $encoding = 'quoted-printable';
X }
X elsif ($arg eq 'b64' || $arg =~ /^base/)
X {
X $encode = 1;
X $encoding = 'base64';
X }
X }
X }
X else
X {
X foreach $key (('To','Cc','Bcc','Reply-To'))
X {
X if ($hdr =~ /^$key: /i)
X {
X $hdr =~ s/^$key: //i;
X $hdr =~ s/,/ /g if $commatospace;
X $hdr = `$expand "$hdr"`;
X $hdr =~ s/^Expands to: (\n\t)?//i;
X print TMP "$key: $hdr";
X $hdr = '';
X goto start;
X }
X }
X print TMP "$hdr";
X $hdr = '';
X }
X }
start:
X last if /^$/;
X $hdr .= "$_";
}
print TMP "Bcc: ", (getpwuid ($<))[0], " (instead of writing into =sent)\n";
print TMP "X-Mailer: nnelm $version (c) 1993, 1994 <rj\@rainbow.in-berlin.de>\n";
X
print TMP "MIME-Version: 1.0\n";
print TMP "Content-Type: text/plain; charset=$charset\n";
print TMP "Content-Transfer-Encoding: $encoding\n";
print TMP "\n";
X
if ($encode)
{
X close (TMP);
X $encoder = $encoders{$encoding};
X open (QUOTE, "| $encoder >> $tmp");
X print QUOTE while (<>);
X close (QUOTE);
}
else
{
X print TMP while (<>);
X close (TMP);
}
X
open (TMP, "< $tmp");
open (SENDMAIL, "| $sendmail");
while (<TMP>)
{
X s/^\.$/. /;
X print SENDMAIL;
}
close (SENDMAIL);
unlink ("$tmp");
SHAR_EOF
$shar_touch -am 1030133894 'nnelm' &&
chmod 0775 'nnelm' ||
echo 'restore of nnelm failed'
shar_count="`wc -c < 'nnelm'`"
test 3237 -eq "$shar_count" ||
echo "nnelm: original size 3237, current size $shar_count"
fi
exit 0
--
__________________________________________________
Robert Joop
rj@{rainbow.in-berlin,fokus.gmd,cs.tu-berlin}.de
s=joop;ou=fokus;ou=berlin;p=gmd;a=d400;c=de
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