Skip to Content.
Sympa Menu

en - Re: [sympa-users] per user moderation

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Czakó Krisztián <address@concealed>
  • To: Ewan <address@concealed>
  • Cc: David Verdin <address@concealed>, address@concealed
  • Subject: Re: [sympa-users] per user moderation
  • Date: Fri, 25 Jan 2008 20:09:01 +0100

Czakó Krisztián írta:
> Czakó Krisztián írta:
>> Ewan írta:
>> This sounds good. Thanx.
>>
>> Isn't it possible to add this field to wwsympa with simple html template
>> modifications? The documentation says that custom database fields can be
>> added this way to wwsympa.
>
> Answering my own mail :-)
> It's really simple. Addig the "moderated_subscriber" to the subscribers
> table and adding the following line to sympa.conf makes it:
> db_additional_subscriber_fields moderated_subscriber
>
> wwsympa shows the new field in manage subscribers menu, and the admin
> can set it.
>
> One question left: how can I set a default value for this new field per
> list for new subscribers?

Just for the archives :-)

1. Set the new "moderated_subscriber" filed in the db "null" (can be
null) and no default value. All new subscribers will have empty
"moderated_subscriber" field. We can call it "default" value.

2. Make some new scenarios:

Two examples:
One for default moderated (modified send.editorkey):
------------------------ cut send.editorkeyperusermoderated -----------
title.gettext Moderated, per user selectable, default moderated

is_editor([listname],[sender]) smtp,smime,md5 -> do_it
is_editor([listname],[header->X-sender]) smtp,smime,md5 -> do_it
equal ([subscriber->moderated_subscriber], 0) smtp,md5,smime -> do_it
true() smtp,smime,md5 ->
editorkey
------------------------ cut send.editorkeyperusermoderated -----------

And one for default non-moderated (modified send.private):
----------------- cut send.privateperusermoderated -----------
title.gettext restricted to subscribers

equal ([subscriber->moderated_subscriber], 1) smtp,md5,smime -> editorkey
is_subscriber([listname],[sender]) smtp,smime,md5 -> do_it
is_editor([listname],[sender]) smtp,smime,md5 -> do_it
is_owner([listname],[sender]) smtp,smime,md5 -> do_it
true() smtp,md5,smime ->
reject(reason='send_subscriber')
----------------- cut send.privateperusermoderated -----------

The first example will moderate all new subscribers per default, the
second one will make a private list (only subscribers can send) and all
new members can send by default, but the owner can change them to be
moderated.


Should I create a support ticket to integrate these simple changes into
the official release, or could you do it for us without a ticket? :-)

I love Sympa ;-)


Regards,
Krisztian


Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.19+.

Top of Page