Skip to Content.
Sympa Menu

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

Subject: Developers of Sympa

List archive

Chronological Thread  
  • 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:

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.
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.
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)
Very interesting scenario. It sounds very near what I need.

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.



Archive powered by MHonArc 2.6.19+.

Top of Page