Article View: comp.mail.misc
Article #37Re: Smail3.1.28: string expansion
From: Ronald S. Karr
Date: Fri, 30 Oct 1992 19:30
Date: Fri, 30 Oct 1992 19:30
23 lines
1550 bytes
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
Technical Details
Message-ID:
<1992Oct30.193025.9589@Veritas.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!olivea!veritas!tronReferences:
<JOE8UIP@odb.rhein-main.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!olivea!veritas!tron From: tron@Veritas.COM (Ronald S. Karr) Newsgroups: comp.mail.misc Subject: Re: Smail3.1.28: string expansion Message-ID: <1992Oct30.193025.9589@Veritas.COM> Date: 30 Oct 92 19:30:25 GMT References: <JOE8UIP@odb.rhein-main.de> Organization: VERITAS Software Lines: 23