Article View: news.software.nn
Article #7981looking at previously read messages in nn
From: Bryan Ogawa
Date: Fri, 13 Sep 1996 00:00
Date: Fri, 13 Sep 1996 00:00
56 lines
2304 bytes
2304 bytes
Note: followups are set to news.software.nn... I hope. ObHack: I was reading news with nn, and I wanted to check up on some articles that I had read before. Persual of the man pages showed the command line: -x <no. of articles>, and the associated variable old (unset == show no read articles, set to n == show n previous read as well as unread), but it doesn't really appeal to me to have to type in all of that stuff. I decided to write a macro which toggled the "show read articles" option on and off. Unfortunately, the conditionals in the macro language didn't like the way I was testing -- it looked like old wasn't an integer variable (although I really can't confirm that). After some fiddling, I ended up with the following: -- begin exerpt from ~/.nn/init -- define 0 :set old :unread :map menu ^A macro 1 end define 1 :unset old :unread :map menu ^A macro 0 end map menu ^A macro 0 -- end exerpt -- This binds the key Control-A to toggle showing all unread messages. The 'trick' to make the toggle work is that the macro which defines old also rebinds ^A to a macro which undefines old. This other macro rebinds ^A to the original macro. Minor bugs (if you set/unset old manually, the macros don't know), but it does what I want. ObNN: I suspect that my .signature may be appended twice to this message. I commented out the append-signature-mail I had stuck on it. Does defining both append-signature-post on and query-signature off append the .signature twice? -- bryan k. ogawa <bkogawa@primenet.com> <bkogawa@netvoyage.net> -- bryan k. ogawa <bkogawa@primenet.com> <bkogawa@netvoyage.net>
Technical Details
Message-ID:
<51cnil$1ji@nnrp1.news.primenet.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <51cnil$1ji@nnrp1.news.primenet.com> Subject: looking at previously read messages in nn Date: Fri, 13 Sep 1996 00:00:00 +0000 From: bkogawa@primenet.com (Bryan Ogawa) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 180464511 Organization: Primenet Services for the Internet Followups-to: news.software.nn X-posted-by: bkogawa@206.165.5.110 (bkogawa) Newsgroups: alt.hackers,news.software.nn