Subject: The mailing list for listmasters using Sympa
List archive
- From: David Verdin <address@concealed>
- To: Rustam <address@concealed>
- Cc: address@concealed
- Subject: [sympa-users] Re: Call an external script
- Date: Fri, 12 Oct 2007 12:54:36 +0200
Hi,
Rustam a écrit :
I'm trying to setup a list which starts a script upon message arrivalThat means that your "verify" function returns always something which is neither '1' nor 'undef'.
and gets message subject and body as arguments.
As I see the only way to call an external script is to use custom
conditions in authorization scenario. So I've created the following
scenario for my list:
CustomCondition::sendsms([topic],[msg_body]) smtp,smime,md5 -> do_it
true() smtp,smime,md5 -> reject,quiet
But every message gets rejected.
If I replace [topic] withThat means your function returns always '1'.
[topic-sender] or [topic-auto] messages come trough
but my scriptThat is probably because the topic wasn't set, neither by the sender nor automatically.
receives no arguments.
You control what your code do. If you want to have a more precise view of Sympa behaviour, try running it in debug mode (run sympa.pl daemon with option -d).
Maybe I use wrong scenario variables ? Can somebody help me, please ?
Regards,
Best regards,
Rustam.
--
David Verdin
Comité réseau des universités
-
[sympa-users] Call an external script,
Rustam, 10/11/2007
-
[sympa-users] Re: Call an external script,
David Verdin, 10/12/2007
-
[sympa-users] Re: Re: Call an external script,
Rustam, 10/15/2007
-
[sympa-users] Re: Re: Re: Call an external script,
David Verdin, 10/16/2007
-
[sympa-users] Re: Re: Re: Re: Call an external script,
Rustam, 10/16/2007
- [sympa-users] Re: Re: Re: Re: Re: Call an external script, David Verdin, 10/16/2007
-
[sympa-users] Re: Re: Re: Re: Call an external script,
Rustam, 10/16/2007
-
[sympa-users] Re: Re: Re: Call an external script,
David Verdin, 10/16/2007
-
[sympa-users] Re: Re: Call an external script,
Rustam, 10/15/2007
-
[sympa-users] Re: Call an external script,
David Verdin, 10/12/2007
Archive powered by MHonArc 2.6.19+.