Subject: The mailing list for listmasters using Sympa
List archive
- From: Steven Peterson <address@concealed>
- To: Olivier Salaün - CRU <address@concealed>
- Cc: address@concealed
- Subject: [sympa-users] Re: Global message.footer for robot
- Date: Thu, 08 Feb 2007 13:48:11 -0500
Olivier Salaün - CRU wrote:
Steven Peterson wrote:That is a great idea to turn them into templates.
We have a large number of lists and want to have the same footer for every list within this robot. I know we can do this by placing a message.footer file in each expl/<list> directory, but this requires having a separate file for each list -- difficult to maintain if the robot's listmaster wants to change the footer. Is there a way to specify a global message.footer file for all lists in a robot?
Unfortunately there is no way to define defaults for message.footer and message.header. There are existing feature requests for that.
We first want to turn these headers/footers into templates ; they would move to mail_tt2/. Doing so would both allow to parse variables and to define site defaults.
You'll have to be patient ;-)
One problem that you will probably face is how to insert a header/footer into an HTML page. I suppose you could do this by parsing the tags, for example, inserting the footer right before the closing </body> tag. Another way that gives you more control over appearance would be to create a standard template that defines the format for all sympa posted messages, then drop the extracted content of any posts into this master template. Something like:
<html><body><p> header info here</p>
[% HTML-Formatted-Message %]
<p>footer info here</p>
</body></html>
The problem then would be how to extract the content of a message from the original HTML posting.
With either method, parsing HTML files is part of the solution. I assume there are plenty of regex's for this.
- Steve
-
[sympa-users] Global message.footer for robot,
Steven Peterson, 02/08/2007
-
[sympa-users] Re: Global message.footer for robot,
Olivier Salaün - CRU, 02/08/2007
-
[sympa-users] Re: Global message.footer for robot,
Steven Peterson, 02/08/2007
-
[sympa-users] Re: Re: Global message.footer for robot,
Olivier Salaün - CRU, 02/09/2007
- [sympa-users] Re: Re: Re: Global message.footer for robot, Olivier Salaün - CRU, 02/09/2007
-
[sympa-users] Re: Re: Global message.footer for robot,
Olivier Salaün - CRU, 02/09/2007
-
[sympa-users] Re: Re: Global message.footer for robot,
Peter Farmer, 02/09/2007
- [sympa-users] Re: Re: Re: Global message.footer for robot, Adam Bernstein, 02/09/2007
-
[sympa-users] Re: Global message.footer for robot,
Steven Peterson, 02/08/2007
-
[sympa-users] Re: Global message.footer for robot,
Olivier Salaün - CRU, 02/08/2007
Archive powered by MHonArc 2.6.19+.