I'd like to develop a postmasterpost module that would get some values from newly created ticket (using regex named groups)
it will execute select statement using where condition with these values
select would return email address which will be stored in X-OTRS-CustomerUser
(I need to set the customer user as all tickets are created by sending the mail from one email address for all customers)
I've never done anything like this before. I checked some documentation but it did not help me at all

Is there anybody who would send me some simple example how I could do it?
Thanks
Jaro