Processing incoming e-mails

Hello. Where can i put a piece of code, which will parse incoming messages, extract login and password from them and add Customer User in OTRS? I mean, what is the best way - do i need to write a plugin or modify existing script, or something similar? -- Ilya Chesnokov

Привет Илья,
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.
Желаю всего хорошего.
--
Michiel Beijen
R&D
Follow me on Twitter: @otrsnl [https://twitter.com/otrsnl]
OTRS AG
Norsk-Data-Str 1.
61352 Bad Homburg
Germany
T: +31 (0) 6457 42418
F: +49 (0) 9421 56818-18
I: http://www.otrs.com/
Business location: Bad Homburg, Country Court: Bad Homburg, HRB 10751,
VAT ID: DE256610065
Chairman: Burchard Steinbild, Managing Board: André Mindermann
CU@ CeBIT 2010 in Hannover (Germany) and get to know more about OTRS
at booth no. C37, in hall 2 from March 2-6, 2010! http://bit.ly/4qLvqm
2010/2/18 Илья Чесноков
Hello.
Where can i put a piece of code, which will parse incoming messages, extract login and password from them and add Customer User in OTRS? I mean, what is the best way - do i need to write a plugin or modify existing script, or something similar? -- Ilya Chesnokov
--------------------------------------------------------------------- OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/

2010/2/22 Michiel Beijen
Привет Илья,
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
participants (2)
-
Michiel Beijen
-
Илья Чесноков