Thread View: news.software.nn
2 messages
2 total messages
Started by David Lesher
Thu, 14 Nov 1996 00:00
nn-->elm scripts
Author: David Lesher
Date: Thu, 14 Nov 1996 00:00
Date: Thu, 14 Nov 1996 00:00
16 lines
902 bytes
902 bytes
I managed to lose my nn-->elm mail script that someone gave me years ago. It was better than the 1994 one I see in the FAQ. Has anyone else written a script to spawn elm from the 'm' and 'r' keys of nn? All suggestions welcome...
Re: nn-->elm scripts
Author: max
Date: Fri, 15 Nov 1996 00:00
Date: Fri, 15 Nov 1996 00:00
64 lines
1913 bytes
1913 bytes
wb8foz@netcom.com (David Lesher) writes:
>I managed to lose my nn-->elm mail script that someone
>gave me years ago. It was better than the 1994 one I see
>in the FAQ.
>Has anyone else written a script to spawn elm from the 'm' and 'r'
>keys of nn?
I use, which has some problems with the latest elm code so I am back to
elm2.4pl25:
#! /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
#
# 10 Nov 94 V1.1 Escape quotes in subject -- Dave Wolfe
eval `nawk '
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 $?
--
Max Heffler, Technology Manager max@ns.coral-energy.com
Web: http://www.coral-energy.com/~mheffler (Listen to my songs)
___________________________________________________
/ // /// // /// // /// // /// // /// // /// // ///
---------------------------------------------------
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