Subject: The mailing list for listmasters using Sympa
List archive
[sympa-users] Re: Re: Global message.footer for robot
- From: Olivier Salaün - CRU <address@concealed>
- To: Steven Peterson <address@concealed>
- Cc: address@concealed
- Subject: [sympa-users] Re: Re: Global message.footer for robot
- Date: Fri, 09 Feb 2007 09:03:21 +0100
Hi Steven,
Turning the header/footer into templates should create new MIME problems.
We are already facing the issue you mention if a message is of type text/html and footer_type is set to 'append' (see http://www.sympa.org/wiki/manual/parameters-sending#footer_type). In such situations I think sympa just doesn't append any footer. If footer_type parameter is set to 'mime' (the default value), then a MIME partcan be added whatever the content-type is, except S/MIME signed messages.
Steven Peterson wrote:
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.
-
[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+.