Article View: news.software.readers
Article #127328Re: slrn - Will it show uptime like Mutt?
From: Andrew Preater
Date: Sun, 29 Jun 2003 20:44
Date: Sun, 29 Jun 2003 20:44
51 lines
2901 bytes
2901 bytes
* Crashdamage <tmeador@nospam.invalid>:
> Andrew Preater <preater@deadspam.com> wrote:
>> Here's a suitable macro to do this, uname is given as an example:
>>
>> http://www.geocities.com/tsca.geo/slang/ext_header.txt
>
> Thanks, but no good so far. That link goes to 2 macros, an old
> version and a newer "improved" one. I haven't had much tome ot play
> withthem, but so far I can't get either to go.
The "old" one does work, check my headers! I didn't really want to
use it (look at the state of that uptime...) but given the thread it
was too tempting. All I have:
$ grep uptime_header .slrnrc
interpret "News/uptime_header.sl"
The nitty-gritty in that macro:
#v+
define ext_header2 ()
{
variable eh,fp;system ("uptime > /tmp/tmp.slrn1.hea");
fp = fopen("/tmp/tmp.slrn1.hea", "r");
fgets (&eh,fp);
set_string_variable("followup_custom_headers",sprintf ("X-Uptime: %s",eh));
}
define followup_hook (){ ext_header2; }
#v-
Of course it clobbers all of my other custom headers, so my new vim
6.2 isn't announced loud and proud.
> I'm still too much of a noob and no programmer. This stuff mostly is
> over my head, and I need to do more studying.
Me too. I've only learned what little I know by using others' macros
& playing around with them. It would be really nice to be able to pop
a command in backtick in my slrnrc --> WISH!
> BTW, does anyone know why the sed command to srtip away verbose
> uptime info is ignored?
Sorry, I don't know. I can confirm it does happen, because I tried
the same as you first time I found that header ;) Never got to the
bottom of it.
--
Andrew Preater
Technical Details
Message-ID:
<slrnbfujts.ctj.preater@preater.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!82-69-29-2.dsl.in-addr.zen.co.UK!not-for-mailReferences:
<5b5d4e99f7010bc79d6f175b05231f5a@free.teranews.com> <slrnbfrmte.l0t.preater@preater.com> <84cd9d5b82ec8563b17b9f8e4007df6a@free.teranews.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnbfujts.ctj.preater@preater.com> Subject: Re: slrn - Will it show uptime like Mutt? Date: Sun, 29 Jun 2003 21:44:44 +0100 From: Andrew Preater <preater@deadspam.com> References: <5b5d4e99f7010bc79d6f175b05231f5a@free.teranews.com> <slrnbfrmte.l0t.preater@preater.com> <84cd9d5b82ec8563b17b9f8e4007df6a@free.teranews.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!82-69-29-2.dsl.in-addr.zen.co.UK!not-for-mail Newsgroups: news.software.readers Organization: AOLM slrn Mafia Lines: 50 Reply-To: usenet@preater.com NNTP-Posting-Host: 82-69-29-2.dsl.in-addr.zen.co.uk (82.69.29.2) X-Trace: fu-berlin.de 1056919479 31851638 82.69.29.2 (16 [139491]) X-Uptime: 9:28pm up 5:40, 2 users, load average: 0.18, 0.29, 0.52 User-Agent: slrn/0.9.7.4 (GNU/Linux)