Skip to Content.
Sympa Menu

en - RE: [sympa-users] custom scenario tasks

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Philip Crandall <address@concealed>
  • To: "'Thomas Berry'" <address@concealed>, "'address@concealed'" <address@concealed>
  • Subject: RE: [sympa-users] custom scenario tasks
  • Date: Thu, 22 Oct 2009 13:47:47 -0500

If you have the custom condition return false every time, the action won't
take place. So, yes, you could execute the code of a CustomCondition every
time a scenario runs and not do anything in the context of the scenario.
Just make sure to put it at the top of the scenario so that you make sure it
is executed.

Alternatively, if you are using the custom condition to send a SMS message to
the list owners when there is a message to moderate, you could replace the
true() part of the scenario with the custom condition and always return true
from your CustomCondition package. Along the lines of:
CustomCondition::yes() smtp,md5,smime -> editorkey

Philip Crandall
University of Chicago

> -----Original Message-----
> From: address@concealed [mailto:address@concealed] On
> Behalf Of Thomas Berry
> Sent: Thursday, October 22, 2009 1:23 PM
> To: address@concealed
> Subject: [sympa-users] custom scenario tasks
>
>
> I want to write a scenario CustomCondition that performs a task, but
> the
> results of that task should be ignored in the context of the scenario
> (the purpose of the CustomCondition is to send an SMS text message to
> the owners of a list). Can I use a custom scenario and ignore its
> results regardless whether it results in true or fales?




Archive powered by MHonArc 2.6.19+.

Top of Page