Skip to Content.
Sympa Menu

en - Re: [sympa-users] HTML digest mode?

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] HTML digest mode?
  • Date: Wed, 21 Mar 2012 11:26:26 +0100

Hi John,

Sympa can do this. Actually, it's just a matter of tweaking the digest_plain.tt2 file.

If you replace the default by something like what follows, you will send digests using an HTML table of content, with even some additional links to ease navigatio and replies to messages.
Basically, keep in mind that most of what you wan to do in Sympa can be achieved by tweaking a template.

Here is the template that you could try:

From: [% fromlist %]
To: [% to %]
Reply-to: [% replyto %]
Subject: [% FILTER qencode %][%|loc(list.name,date)%]%1 Digest %2[%END%] [% IF total_group > 1 -%]([% current_group %]/[% total_group %])[% END %][%END%]
Content-Type: multipart/mixed; boundary="[% boundary1 %]"

--[% boundary1 %]
Content-Type: text/html; charset="UTF-8";
Content-Transfer-Encoding: 8bit

[%|loc(list.name,date)%]%1 Digest %2[%END%]

<br>

[%|loc%]Table of contents:[%END%]

<ul>
[% FOREACH m = msg_list -%]
<li><a name="N0"><a href="#N[% m.id %]">[% m.id %] - [% m.subject %]</a> - [% m.from %] </li>
[% END %]
</ul>
<hr color="#0000ff">

[% FOREACH m = msg_list -%]
<p></b><a name="N[% m.id %]">[% m.id %] -</a> Date: [% m.date %] Author: [% m.from %] <br>
Subject: <b><font color="#0000ff"> [% m.subject %] </b></font><br>

[% m.body %]

<br>
<table align="center">
<tr>
<td><a href="mailto: [% m.from %]?Subject= [% m.subject %] "> Answer to author</a></td>
<td>&nbsp;<-->&nbsp;</td>
<td><a href="mailto: [% replyto %]?Subject= [% m.subject %] "> Answer to list</a></td>
<td>&nbsp;<-->&nbsp;</td>
<td><a href="#N0">Back to table of content</a></td>
</tr>
</table>
<hr color="#0000ff"></font>

[% END %]

<br>
[%|loc(list.name,date)%]End of %1 Digest %2[%END%]
<br>
*********************************************
</body></html>

--[% boundary1 %]--




Cheers,

David

Le 13/03/12 19:09, John Dalbec a écrit :
I'm told that other mailing list managers can generate an HTML digest where the links in the table of contents are clickable and take you to the message in question. Does Sympa have anything like this?
Thanks,
John



Archive powered by MHonArc 2.6.19+.

Top of Page