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