🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #116288

Re: [SLRN] compose-hook() ???

#116288
From: Lee J. Moore
Date: Fri, 20 Dec 2002 10:04
32 lines
2296 bytes
One may as well begin with J.B. Nicholson-Owens's letter to
news.software.readers:

> Lee J. Moore wrote:
>> I just return the name *and* value from the same function now;
>> with the help of a structure:
>> 
>> 	variable Header_Info = struct {
>> 		name, value
>> 	};
> 
> Be careful about what happens when there are two headers with
> the same name.

It doesn't apply in this case because I'm just working with my
own custom headers.  The macro iterates through custom_headers
and followup_custom_headers and if a header has a pipe at the
end, the header is executed.  Seems to work pretty well (you can
see the result in the X-Platform and X-Kernel headers in this
message).

I was just bothered by my convoluted way of retrieving the name
and value of a header (any header, regardless of whether it has
been duplicated).

Thanks for the info though.  The article you mentioned is
interesting and good knowledge to have when writing other
macros.   I've got the s-lang bug. ;-)
-- 
Lee John Moore           :   'Only Connect...'
www.leej.dsl.pipex.com   :        - EM Forster
Technical Details
Message-ID: <slrnb05qoh.23s.leej@cafe.lan>
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!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!userdg058.dsl.pipex.COM!not-for-mail
References: <slrnavu70p.6gb.leej@cafe.lan> <FRML9.182113$ea.3697032@news2.calgary.shaw.ca> <slrnb0115m.n4t.leej@cafe.lan> <slrnb019bf.vuf.nsr@message-id.wahnes-world.de> <slrnb037s1.iqu.leej@cafe.lan> <slrnb04v4o.gln.jbn@forestfield.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnb05qoh.23s.leej@cafe.lan>
Subject: Re: [SLRN] compose-hook() ???
Date: Fri, 20 Dec 2002 10:04:03 +0000
From: "Lee J. Moore" <leej@dsl.pipex.com>
References: <slrnavu70p.6gb.leej@cafe.lan> <FRML9.182113$ea.3697032@news2.calgary.shaw.ca> <slrnb0115m.n4t.leej@cafe.lan> <slrnb019bf.vuf.nsr@message-id.wahnes-world.de> <slrnb037s1.iqu.leej@cafe.lan> <slrnb04v4o.gln.jbn@forestfield.org>
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!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!userdg058.dsl.pipex.COM!not-for-mail
Newsgroups: news.software.readers
Lines: 31
NNTP-Posting-Host: userdg058.dsl.pipex.com (62.190.230.58)
X-Trace: fu-berlin.de 1040378643 3109665 62.190.230.58 (16 [129053])
X-Platform: Gentoo Linux (Portage 2.0.46-r2)
X-Kernel: 2.4.19-gentoo-r10
X-Spam-Info: Incoming mail analysed and filtered by SpamAssassin
X-Spam-Info: Detected SPAM submitted to Vipuls Razor
User-Agent: slrn/0.9.7.4 (Linux)