2010/2/22 Michiel Beijen <michiel.beijen@otrs.com>
Привет Илья,

The tidiest way of implementing this would be to develop a custom
Postmaster module, see the Developer documentation.
http://doc.otrs.org/developer/2.4/en/html/x576.html#ticket-postmaster-module

This way your code will run just when the emails are fetched and
processed. You can then also modify the email if needed to add any
results to it.


Thank you. I've already found, that the best method of doing my task is to use a Postmaster::PreFilterModule's.

Instead of writing a new module i've decided to use a PostMaster::Filter::CMD module, which calls my script, which in turn uses OTRS API to create Customer User, if necessary.

--
Ilya Chesnokov