Xref: utzoo news.software.nn:1856 comp.mail.elm:4006 Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!think.com!mintaka!ogicse!sequent!muncher.sequent.com!news From: jaap@sequent.com Newsgroups: news.software.nn,comp.mail.elm Subject: Re: alias sharing... Keywords: nn, elm, pl16 Message-ID: <1991Apr19.173125.2539@sequent.com> Date: 19 Apr 91 17:31:25 GMT References: <1991Apr19.025634.11846@mthvax.cs.miami.edu> Sender: news@sequent.com (News on Muncher) Organization: Sequent Computer Sytems, Windows Group, Beaverton, Oregon Lines: 47 X-Phone: (503) 578-4404 X-Internet: jaap@sequent.com X-Uucp: uunet!sequent!jaap In <1991Apr19.025634.11846@mthvax.cs.miami.edu> wb8foz@mthvax.cs.miami.edu (David Lesher) writes: >Kim Storm has just released a nn patch that makes provision for >an external alias program. > >I'd LOVE to be able to use my elm-defined alias file under nn. >Who will be the first to write the needed code???? > > >(Me? C? You don't understand - we need functioning code ;-) Although this is a nice feature, I still don't understand why it is so difficult to use the existing hooks for what you want. By specifying the following variables you should be able to send mail with the alias expansion as elm sees fit: set mailer path-to-a-script unset mail-pipe-input path-to-a-script points to the following script (make sure it is executable): #! /bin/csh -f set to = `sed -n -e '/^To:/p' -e '/^To:/q' $1 | sed 's/^To://'` set subject = `sed -n -e '/^Subject:/p' -e '/^Subject:/q' $1 | sed 's/^Subject://'` /usr/local/bin/elm -s "$subject" $to < $1 > /dev/null This works for me (although I'm normally an MH user :-). And I'm sure you can do the same in a hundred different ways. :-) The trick is that most mailers need a subject line and the recipient, which are not given explicitly by nn. Actually, it would be nice it nn would not only give the message, but also the recipients and subject when mail-pipe-input is set to false. Anyways, while looking at the elm manual page, I suppose you could do the following: set mail-alias-expander /usr/local/bin/elm -c Try it and let people know if it works... Cheers, -Jaap-