🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Oliver Boehmer Thu, 29 Oct 1992 21:18
Smail3.1.28: string expansion
#32
Author: Oliver Boehmer
Date: Thu, 29 Oct 1992 21:18
19 lines
1278 bytes
Recently I played around with the new string expansion features of
Smail3.1 and I noticed that a lot of variables are not subject to string
expansion, especially the ones I needed mostly. Can someone provide me with
a list of variables that are being expanded (file lookups, conditionals, 
etc..) by Smail?
I understand that full expansion features is tricky with variables
like config_file, method_dir, transport_file, etc. But why are not all
variables in the actual transports/routers/directors being expanded? Too
much work?
Let me tell you one of the goals I have: based on the $sender_host I want
to assign a different value to the "path" or the "method" attribute of the 
smart_host router. 

	oli
-- 
Oliver Boehmer, Frankfurt - Germany			oli@odb.rhein-main.de

"...make -k all to compile everything in the core distribution. This will take
anywhere from 15 minutes (on a Cray Y-MP) to 12 hours."  X Window Release Notes
Re: Smail3.1.28: string expansion
#37
Author: Ronald S. Karr
Date: Fri, 30 Oct 1992 19:30
23 lines
1550 bytes
In article <JOE8UIP@odb.rhein-main.de> oli@odb.rhein-main.de (Oliver Boehmer) writes:
>I understand that full expansion features is tricky with variables
>like config_file, method_dir, transport_file, etc. But why are not all
>variables in the actual transports/routers/directors being expanded? Too
>much work?
>Let me tell you one of the goals I have: based on the $sender_host I want
>to assign a different value to the "path" or the "method" attribute of the 
>smart_host router. 

It may be possible to adjust the path attribute to be an expansion
string variable.  However, the historical implementation of method
files would have to be completely rewritten for this to work (they
should be reimplemented anyway, so it isn't such a bad thing).  The
problem is that method files are interpreted when the router file
is scanned.  To base the method file on the $sender_host, smail
would have to delay reading the method file until the sender_host
is known.

Also, you can usually do these kinds of expansions with the queryprogram
router, although this isn't very efficient.
-- 
	tron |-<=>-|		ARPAnet:  veritas!tron@apple.com
      tron@veritas.com		UUCPnet:  {apple,pyramid}!veritas!tron
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads