Re: [Simple-evcorr-users] How can I trigger all outstanding context actions on SEC_SHUTDOWN?

2020-12-16 Thread Risto Vaarandi
...one additional note -- SEC official documentation on the 'while' action has other relevant examples about processing context event stores (you can find them in the end of the "ACTIONS, ACTION LISTS AND ACTION LIST VARIABLES" section of SEC man page:

Re: [Simple-evcorr-users] How can I trigger all outstanding context actions on SEC_SHUTDOWN?

2020-12-15 Thread Risto Vaarandi
> > For better testing, it would be cool if SEC's idea of the current time could > be derived from the timestamps in the log file instead of wall-clock time, so > that context actions happen at the right time relative to log messages > (rather than 30 seconds after the program ends! :-), but

Re: [Simple-evcorr-users] How can I trigger all outstanding context actions on SEC_SHUTDOWN?

2020-12-15 Thread Risto Vaarandi
hi Penelope, since 'obsolete' is a SEC action, it can not be called in Perl, but you rather need some sort of loop written in the SEC rule language. Fortunately, SEC supports the 'while' action that executes an action list as long as the given action list variable evaluates true in boolean

[Simple-evcorr-users] How can I trigger all outstanding context actions on SEC_SHUTDOWN?

2020-12-14 Thread sec-user--- via Simple-evcorr-users
Hello! I'm dabbling with SEC, experimenting with adding lines into contexts and only when the context is finished, decide what to do with it. Essentially it's taking a look at the group of log messages emitted by sendmail for every connection, looking for behaviour that is not consistent with