footer.txt - Can it do variable interpolation? (fwd)
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. Pat On Tue, Apr 11, 2000 at 08:45:54PM +0300, Dan Craioveanu wrote:
I have tried the Solution in the SmartList FAQ. But, still, there's no message appearing eather as a header or footer.
I have created a file called header.txt and one called footer.txt with the text to add to the message.
I've uncommented the line "RC_LOCAL_SUBMIT_20 = rc.local.s20" from my rc.custom file, and added the following to my rc.local.s20 file:
# # Adding a disclaimer in front of every mail: #
:0 fhw | cat - header.txt
# # Appending a footer to every outgoing mail: #
:0 fbw | cat - footer.txt
I have even tried all the other solutions in the Smart List mailing list archive, but with no result.
Please help,
Thanks
- -- Pat ___________________Think For Yourself____________________ Patrick G. Salsbury - http://reality.sculptors.com/~salsbury/ Fuel Cells: Electricity for home, car, or business. 0% emmissions, 0% charge-time. - http://reality.sculptors.com/~salsbury/Fuel-Cells/ --------------------------------------------------------- Do you value your privacy? If so, take note of what's coming down the pipe: The United States Government should encourage the development of those products that would provide a capability allowing law enforcement (Federal, State, and local), with a court order only, to gain timely access to the plaintext of either stored data or data in transit. Unless law enforcement has the benefit of such market encouragement, drug traffickers, spies, child pornographers, pedophiles, kidnappers, terrorists, mobsters, weapons proliferators, fraud schemers, and other criminals will be able to use encryption software to protect their criminal activity and hinder the criminal justice system. 106th CONGRESS - 1st Session HR2616 - Section 3 (Para. 14-15) July 27, 1999 - http://thomas.loc.gov/ _______________________________________________ Smartlist mailing list Smartlist@lists.RWTH-Aachen.DE http://MailMan.RWTH-Aachen.DE/mailman/listinfo/smartlist ------- End of Forwarded Message
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!"
On Tue, Aug 29, 2000 at 08:35:44PM -0700, CueMan wrote:
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?
That'll certainly be more efficient - even something that wanders over the relevant lists and greps rc.custom to create the footer.txt, run manually when you modify an rc.custom file. No point in doing variable expansion once per post, after all. -- Roger Burton West -/- roger@firedrake.org http://firedrake.org/roger/
participants (3)
-
CueMan
-
Patrick Salsbury
-
Roger Burton West