Subject: The mailing list for listmasters using Sympa
List archive
- From: Michael Howe <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] Disabling archives for a list
- Date: Wed, 21 May 2014 13:25:22 +0100
On 20/05/14 22:43, Steve Shipway wrote:
>> I'm trying to work out how to let list owners stop sympa archiving
> messages
>> for their lists - that is, not saving them at all (not just saving them
> and making
>> them inaccessible).
>
> Why not just set archive.max_month for the archive to 0? Of course this
> will also delete all existing archives for that list.
A good idea - sadly, there's a test:
if ($list->{'admin'}{'web_archive'}{'max_month'}){
which fails unless max_month is a true value (and 0 doesn't count).
However, that set me on the right track, and it turns out that if you
can remove the web_archive.access parameter archiving doesn't happen.
This is easy enough to do with edit_list_request.tt2 by adding in an
extra option (with apologies for the wrapping my mail client has applied):
Index: sympa/web_tt2/edit_list_request.tt2
===================================================================
--- sympa/web_tt2/edit_list_request.tt2 (revision 43969)
+++ sympa/web_tt2/edit_list_request.tt2 (revision 43970)
@@ -280,6 +281,13 @@
[% IF key.type == 'scenario' %]
<!-- Scenario -->
+ [% IF p.name == 'web_archive'
AND key.name == 'access';
+ SET empty_string = '';
+ key.value.${empty_string} = {
+ 'name' => '',
+ web_title => 'disable archiving'
+ };
+ END %]
[% IF key.may_edit == 'write' %]
<select name="single_param.[%
p.name %].[% key.name %].name" id="single_param.[% p.name %].[% key.name
%].name">
[% FOREACH scenario =
key.value %]
Michael
--
Michael Howe, Systems Development and Support Section
IT Services, University of Oxford
-
[sympa-users] Disabling archives for a list,
Michael Howe, 05/20/2014
-
Re: [sympa-users] Disabling archives for a list,
Marcin Hoffmann, 05/20/2014
- Re: [sympa-users] [sympa-core] Re: Disabling archives for a list, Chirhart, Kurtus V, 05/20/2014
-
RE: [sympa-users] Disabling archives for a list,
Steve Shipway, 05/20/2014
- Re: [sympa-users] Disabling archives for a list, Michael Howe, 05/21/2014
-
Re: [sympa-users] Disabling archives for a list,
Marcin Hoffmann, 05/20/2014
Archive powered by MHonArc 2.6.19+.