Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] Moderate according to subscribers count

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Jennifer Lang <address@concealed>
  • To: Sylvain Amrani <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-dev] Moderate according to subscribers count
  • Date: Fri, 18 Aug 2006 10:16:22 -0700 (PDT)

On Fri, 18 Aug 2006, Sylvain Amrani wrote:

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.

We have a set of lists internally that we limit based on someone's position in the company and the size, so I use the newer condition mixed with LDAP queries.

title.gettext cascading permissions based on size and title

! 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)

--
Jennifer Lang, Synopsys Postmistress

"The important thing is not to stop questioning. Curiosity has its own
reason for existing." -- Albert Einstein



Archive powered by MHonArc 2.6.19+.

Top of Page