tneff@bfmny0.UU.NET (Tom Neff) (09/12/89)
Woody Kellum recently posted a collection of neat RN macros submitted from various sources, including one from Larry Williamson and Mark Brader to display a nice columnar article list for the '=' command. It seemed to come out a little ragged on my system, though, and it didn't handle the common address form Joe Schmoe <jschmoe@valdez.EXXON.COM> which is seen in many headers these days. So I rewrote it and have been quite happy with the results. Here it is -- add to your RNINIT string or file (I prefer a file). #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create: # subjline.rni # This archive created: Mon Sep 11 13:46:55 1989 export PATH; PATH=/bin:/usr/bin:$PATH if test -f 'subjline.rni' then echo shar: "will not over-write existing file 'subjline.rni'" else sed 's/^X//' << \SHAR_EOF > 'subjline.rni' X-ESUBJLINE="%(%[subject] x=\ X\\(........................................\\)?%1)\ X %(%[lines]=^$? :%(\(%[lines]\) =\\(.....\\)?%1))\ X %(%(%f=.* \(\\(.*\\)\)\\|\\(.*\\) <.*>?%0:%f)=\ X\\(..........................\\)?%0:%(%f=.* \(\\(.*\\)\)\\|\\(.*\\) <.*>?%0:%f))" SHAR_EOF fi exit 0 # End of shell archive -- Annex Canada now! We need the room, \) Tom Neff and who's going to stop us. (\ tneff@bfmny0.UU.NET
filbo@gorn.santa-cruz.ca.us (Bela Lubkin) (09/12/89)
In article <14655@bfmny0.UU.NET> Tom Neff posts a nice RN setting >to display a nice columnar article list for the '=' command. >from Larry Williamson and Mark Brader I found that this setting failed on one not-so-common, but occasionally seen header style: > From: user@mis.configured.site () A one-character patch suffices: \\(....[DELETED]....\\)?%0:%(%f=.* \(\\(..*\\)\)\\|\\(.*\\) <.*>?%0:%f))" ^^^^^^^^^(so it wouldn't wrap) ^ This isn't absolutely perfect -- I'd like it to drop the empty () -- but I don't understand the RN macro facilities well enough and the man page is fuzzy in that area. Foo. Bela Lubkin * * filbo@gorn.santa-cruz.ca.us CIS: 73047,1112 @ * * ...ucbvax!ucscc!gorn!filbo ^^^ REALLY slow [months] R Pentomino * Filbo @ Pyrzqxgl (408) 476-4633 & XBBS (408) 476-4945