Subject: The mailing list for listmasters using Sympa
List archive
RE: [sympa-users] Modify Variables Before Use in Scenari
- From: Christopher Andrews <address@concealed>
- To: "address@concealed" <address@concealed>, "address@concealed" <address@concealed>
- Subject: RE: [sympa-users] Modify Variables Before Use in Scenari
- Date: Wed, 8 Aug 2012 18:16:07 +0000
We did this by creating a custom scenario condition in Sympa 5. We had to do this because we wanted to account for all the possible aliases a user has (up to 7 per user I think) and to allow us to create the restrict post list functionality that you are describing. The custom scenarios file checks LDAP for all possible aliases the user has and then does a SQL check against the Sympa database for any of those addresses for the various possible options.
# subscriber = search all LDAP email aliases for the email against the subscribers list # owner = search all LDAP email aliases for the email against the list of owners # editor = search all LDAP email aliases for the email against the list of owners and editors # editor-_only_ = search all LDAP email aliases for the email against the list of editors # restricted = search all LDAP email aliases for the email against the restrict post list for the list
match ([msg_header->X-Proofpoint-IsSpam],/Yes/) smtp -> reject(reason='send_reject_spam') is_owner([listname],[sender]) smtp,md5,smime -> do_it CustomCondition::checkallbcemails([sender],[listname],"owner") smtp -> do_it CustomCondition::checkallbcemails([sender],[listname],"restricted") smtp,md5,smime -> do_it is_listmaster([sender]) md5,smime -> do_it true() smtp,md5,smime -> reject(reason='send_restrict_post')
--- Chris Andrews Boston College Collaboration Team Sr. Applications Systems Administrator
-----Original Message-----
I'm looking for a way to do something like the following in a scenari:
$listname = [listname] . '-append' is_subscriber($listname, [sender])...
Is there anyway to do this, either by using the right syntax in the scenari or by creating a custom perl condition? If the latter, can someone point me to code that defines is_subscriber and the like are defined? I haven't been able to find them.
Also, I am aware that I could do this with a custom attribute, by I would prefer not to.
Best, Robert |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
-
[sympa-users] Modify Variables Before Use in Scenari,
dukrat, 08/08/2012
- RE: [sympa-users] Modify Variables Before Use in Scenari, Christopher Andrews, 08/08/2012
Archive powered by MHonArc 2.6.19+.