Mail Trigger

Hi,I want to create a mail trigger. I would like to process all messages route by a Domino Server and make a action on each message.

On which process I need to work: On the ROUTER task or an other task ? I would like to work with C API or LS ! Is it possible ? Which method can I use ? Is there somewhere some examples ?

Thank’s for all your response…