Subject: Developers of Sympa
List archive
Re: [sympa-dev] Moderate according to subscribers count
- From: Sylvain Amrani <address@concealed>
- To: Jennifer Lang <address@concealed>
- Cc: address@concealed
- Subject: Re: [sympa-dev] Moderate according to subscribers count
- Date: Fri, 18 Aug 2006 23:24:04 +0200
Jennifer Lang a écrit :
On Fri, 18 Aug 2006, Sylvain Amrani wrote:Yes it will do the trick. But looking at the source, it doesn't seem to be very secure to use a function that's waiting for a human date. But why not.
I post a new feature request on the Sourcesup's GForge, with a few lines patch that add the new "LESS" condition keyword in authorization scenario.
You can actually do this using 'newer' and 'older' conditions. They compare dates or numbers, and are equivalent to greater and less, respectively.
title.gettext cascading permissions based on size and titleVery interesting scenario. It sounds very near what I need.
! match([sender], /[conf->host]$/) smtp,smime,md5 -> reject(reject_internal)
is_editor([listname],[sender]) smtp,smime,md5 -> do_it
search(executives.ldap, [sender]) smtp,smime,md5 -> do_it
newer([list->total], 1499) smtp,smime,md5 -> reject(reject_cascading)
search(directors.ldap, [sender]) smtp,smime,md5 -> do_it
newer([list->total], 499) smtp,smime,md5 -> reject(reject_cascading)
search(managers.ldap, [sender]) smtp,smime,md5 -> do_it
newer([list->total], 99) smtp,smime,md5 -> reject(reject_cascading)
is_subscriber([listname],[sender]) smtp,smime,md5 -> do_it
true() smtp,smime,md5 -> reject(reject_cascading)
The reject(reject_cascading) statement is a short cut for reject(tt2=reject_cascading), isn't it ? May be it could be documented as well.
Thanks,
Sylvain.
-
[sympa-dev] Moderate according to subscribers count,
Sylvain Amrani, 08/18/2006
-
Re: [sympa-dev] Moderate according to subscribers count,
Jennifer Lang, 08/18/2006
-
Re: [sympa-dev] Moderate according to subscribers count,
Sylvain Amrani, 08/18/2006
- Re: [sympa-dev] Moderate according to subscribers count, Olivier Salaün - CRU, 08/21/2006
-
Re: [sympa-dev] Moderate according to subscribers count,
Sylvain Amrani, 08/18/2006
-
Re: [sympa-dev] Moderate according to subscribers count,
Jennifer Lang, 08/18/2006
Archive powered by MHonArc 2.6.19+.