Subject: The mailing list for listmasters using Sympa
List archive
Re: [sympa-users] Implemented per-subscription moderation
- From: "Roger B.A. Klorese" <address@concealed>
- To: Sympa Mailing list <address@concealed>
- Subject: Re: [sympa-users] Implemented per-subscription moderation
- Date: Fri, 09 Jul 2010 14:52:46 -0700
On 7/9/10 2:35 AM, Roger B.A. Klorese wrote:
On 7/9/10 1:27 AM, Roger B.A. Klorese wrote:
On 7/8/10 10:55 PM, Roger B.A. Klorese wrote:
In lieu of a built-in feature, would it be sufficient to:
- add a moderated_subscriber field to the subscriber_table
- add "moderated" to db_additional_subscriber_fields
- add tests for subscriber->moderated in scenarios
I have done the first two steps above, adding "moderated_subscriber" as int(1), but do not see the "moderated" field on the "review members" summary page OR on each subscriber's drilldown "subscriber information" page.
Neither int(1) nor enum('true','false') work.
Making progress. If I create "moderated_subscriber" as an enum and list it in db_additional_subscriber_fields, it shows up in the subscriber details (as an editable text field, not an enum, alas).
But If I do the following in a scenario...
title.gettext restricted to subscribers
is_editor([listname],[sender]) smtp,smime,md5 -> do_it
is_owner([listname],[sender]) smtp,smime,md5 -> do_it
match([subscriber->moderated_subscriber],/'true'/) smtp,smime,md5 -> editorkey
is_subscriber([listname],[sender]) smtp,smime,md5 -> do_it
true() smtp,md5,smime -> reject(reason='send_subscriber')
...and send it from a subscribed non-editor-or-owner address it falls through to the is_subscriber test and goes out.
1) Am I unclear on the concept?
2) Do I have the syntax wrong?
3) For extra credit, if the simple case works, can it be made more explicit by testing is_subscriber AND the match in a single condition?
-
[sympa-users] Implemented per-subscription moderation,
Roger B.A. Klorese, 07/09/2010
-
Re: [sympa-users] Implemented per-subscription moderation,
Roger B.A. Klorese, 07/09/2010
-
Re: [sympa-users] Implemented per-subscription moderation,
Roger B.A. Klorese, 07/09/2010
- Re: [sympa-users] Implemented per-subscription moderation, Roger B.A. Klorese, 07/09/2010
-
Re: [sympa-users] Implemented per-subscription moderation,
Roger B.A. Klorese, 07/09/2010
-
Re: [sympa-users] Implemented per-subscription moderation,
Roger B.A. Klorese, 07/09/2010
Archive powered by MHonArc 2.6.19+.