On Tue, 29 Aug 2000, Patrick Salsbury wrote:
Never did get an answer to this one. Any ideas, anyone?
Pat ___________________Think For Yourself____________________ Patrick G. Salsbury - http://reality.sculptors.com/~salsbury/ Trying to figure out what to do with all that spent uranium? :-) Join the uranium-hot-rock mailing list! See http://reality.sculptors.com/lists.html --------------------------------------------------------- The only smart thing to do is to get smarter. -- Timothy Leary, The Intelligence Agents
------- Forwarded Message
Date: Tue, 08 Aug 2000 17:41:13 -0700 From: Patrick Salsbury <salsbury@sculptors.com> To: Dan Craioveanu <dancr@bratca.com> cc: SmartList Discussion List <SmartList@informatik.rwth-aachen.de> Subject: footer.txt - Can it do variable interpolation?
This is a similar, but different issue to the one below. I've looked through the FAQ, and the archives of the list that I've still got around (400+ messages), but don't see an answer:
Is there a way of interpolating variables within the header.txt or footer.txt files, so that I could use a generic footer.txt for numerous lists?
So the file may say:
To unsubscribe, mail to '$list@$domain' with subject 'unsubscribe'
And I'd like $list and $domain to be expanded out per list. (I run about 2 dozen lists, so it'd be nice to just use one file.)
Has anyone done this?
FAQ #2.11 seems like something in the right direction. Would I have to build the file out of rc.local.s20 every time there was a submission, though? That seems wasteful.
Well filtering and generating things on the fly is kind of how the whole thing works. FAQ #8.10 is a closer variation of what you want. Otherwise you need to create a static file with the correct listname. Perhaps adding a sed script to createlist that will make a static footer.txt which includes '$list@$domain' when you create a new list? Just a thought, --Paul T. -- A little quote from Nader: "More Columbians die each year from American cigarettes than Americans from Columbian cocaine. Imagine the Columbian Government deciding to spray defoliants on our tobacco crops!"