All,

The client side scripting engine I've developed is now able to take simple
script lines and perform actions. For example, the following rule script;

-Start of file-
if
 is_from [EMAIL PROTECTED]
 Contains_Message_Text reject
do
 Send_Reply Test done
endif

if
 Contains_Message_Text Hello
do
 Send_Reply Hello to you to
endif
-End of file-

will reply to any messages from [EMAIL PROTECTED] containing the word
reject in the message body with a message saying "Test done", and reply to
any messages with the word Hello in the body with a message saying "Hello to
you to".

It's extensible in that you can add in extra rules and condition templates
to the scripting language quite easily (you put a class in the correct
package in your classpath and it picks it up as either an action or
condition depending on where you put it.

I'm planning to upload a Java jar file and instructions on how to use and
expand it tomorrow so people can play with it at will.

Comments welcome..

Al.

_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to