🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #59990

Re: [slrn/ s-lang] multiple post-hooks addind custom-headers

#59990
From: Rejo Zenger
Date: Sun, 02 Apr 2000 00:00
58 lines
3681 bytes
++ <slrn8ef7v9.4df.davis@aluche.mit.edu>; John E. Davis:
>The above code fragments show that you are doubling these headers.
>When you set a variable via set_string_variable, it stays set until
>you call it again.  Each time your hook gets called, your
>message-id will get appended to custom_headers because you have coded
[...]

Excellent explenation. It took some time for me to completly realize
what you were saying, but now this is clear to me. Thank you!

While testing things, i also ran into another problem of which the error
message wasn't very clear. I tried to set a variable to a string, but it
seems to be that the string nay not exceed 255 characters. Is that
correct? I have now solved this now like this:

  variable Fixed_Custom_Headers = "";
  Fixed_Custom_Headers += sprintf ("X-PGP-Id: ELG-E/DSS: 0x75FC50F3, 
	DSS/DH: 0x2C8059B5, RSA: 0xFAE40065\n");
  Fixed_Custom_Headers += sprintf ("X-PGP-Keys: Available at keyserver 
	and website or finger <sister@xs4all.nl>.\n");
  Fixed_Custom_Headers += sprintf ("X-Spamtrap: For quicker replies 
	please use the email address in my signature.\n");

The lines are rewrapped because of posting. I guess this isn't the best
method for solving this, but it works.

This leaves me with two additional questions (sorry for bugging you so
much). The first thing is this. I now have almost twice the same code
in my spamtraps.sl. This is because one of them is a followup-hook and
the other a post-hook. Is there a variable (or whatever those things are
called) which replaces the functions of both the "post-hook" and the
"followup-hook"? Say, a merged post- and followup-hook?

Second things is, i have noted these signs all prepending and trailing
quotes of scripts:

>#v+
[...]
>#v-

These denote a slang script is following? Or more like a diff thing? In
other words, do they have a special meaning?

Thanks a lot for your excellent time and help!

	-Rejo.


PS. One last question, where can i learn more about s-lang? I have
looked for webpages on slang in relation to slrn, but i couldn't a thing
that comes close to what is usefull for me.

-- 
= Rejo Zenger                                           rejo@sisterray.xs4all.nl
= http://mediaport.org/~sister (and my_urls.html)               PGP: see headers
--------------------------------------------------------------------------------

Technical Details
Message-ID: <rejo.954708227m@sisterray.xs4all.nl>
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!not-for-mail
References: <rejo.954595435m@sisterray.xs4all.nl> <slrn8eciau.bg3.bluemoon@ux6.cso.uiuc.edu> <rejo.954628360m@sisterray.xs4all.nl> <slrn8ed5rk.2hf.davis@aluche.mit.edu> <rejo.954678191m@sisterray.xs4all.nl> <slrn8ef7v9.4df.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <rejo.954708227m@sisterray.xs4all.nl>
Subject: Re: [slrn/ s-lang] multiple post-hooks addind custom-headers
Date: Sun, 02 Apr 2000 00:00:00 +0000
From: rejo.954708227f@sisterray.xs4all.nl (Rejo Zenger)
References: <rejo.954595435m@sisterray.xs4all.nl> <slrn8eciau.bg3.bluemoon@ux6.cso.uiuc.edu> <rejo.954628360m@sisterray.xs4all.nl> <slrn8ed5rk.2hf.davis@aluche.mit.edu> <rejo.954678191m@sisterray.xs4all.nl> <slrn8ef7v9.4df.davis@aluche.mit.edu>
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!not-for-mail
X-Deja-AN: 605776337
X-PGP-Id: ELG-E/DSS: 0x75FC50F3, DSS/DH: 0x2C8059B5, RSA: 0xFAE40065
X-Spamtrap: For quicker replies please use the email address in my signature.
X-Complaints-To: abuse@xs4all.nl
X-Trace: news1.xs4all.nl 954709096 5412 194.109.57.59 (2 Apr 2000 20:58:16 GMT)
Organization: Sister Ray Zenuwcentrum
X-PGP-Keys: Available at keyserver and website or finger <sister@xs4all.nl>.
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: rejo.954708227r@sisterray.xs4all.nl
NNTP-Posting-Date: 2 Apr 2000 20:58:16 GMT
Newsgroups: news.software.readers