🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #127308

Re: slrn - Will it show uptime like Mutt?

#127308
From: Crashdamage
Date: Sun, 29 Jun 2003 14:37
31 lines
2321 bytes
On Sat, 28 Jun 2003 19:17:18 +0100, Andrew Preater <preater@deadspam.com> wrote:
> * Crashdamage <tmeador@nospam.invalid>:
>> With Mutt, I use this line to show my uptime in mail headers to
>> Windows boneheads:
>> 
>>  my_hdr X-Uptime: `uptime | sed -e 's/.*up \([^,]*\),.*/\1/'`
>> 
>> Is there a way to this in slrn?
> 
> You can do this with an s-lang macro in slrn, in fact you could insert
> the output of any external command.  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.  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.  Strictly speaking, putting my uptime in headers isn't worth
the trouble, but it'll teach me some stuff I should probably learn.

I'll keep messin' around...I've been trying Emmanuale Bossi's macro with
no luck yet either, errors somewhere, but I just started.  I also found
the "set_preferences" macro by J.B. Nicholson-Owens he mentions and I'll
try to get it going too.

BTW, does anyone know why the sed command to srtip away verbose uptime
info is ignored?  Works in Mutt, and I don't understand why it would
make a differnce using it in a macro, but it does.
Technical Details
Message-ID: <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-east.nntpserver.com!nntpserver.com!free.teranews.com!not-for-mail
References: <5b5d4e99f7010bc79d6f175b05231f5a@free.teranews.com> <slrnbfrmte.l0t.preater@preater.com>

Show Full Headers
Complete Article Headers
Message-ID: <84cd9d5b82ec8563b17b9f8e4007df6a@free.teranews.com>
Subject: Re: slrn - Will it show uptime like Mutt?
Date: Sun, 29 Jun 2003 14:37:43 GMT
From: Crashdamage <tmeador@nospam.invalid>
References: <5b5d4e99f7010bc79d6f175b05231f5a@free.teranews.com> <slrnbfrmte.l0t.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-east.nntpserver.com!nntpserver.com!free.teranews.com!not-for-mail
X-Abuse-Report: abuse@teranews.com
Lines: 30
Newsgroups: news.software.readers
X-Newsreader: SLRN 0.9.7.4 (Linux)
User-Agent: slrn/0.9.7.4 (Linux)