postmaster pre-filter: search in tickets

Peter Tester <[email protected]>
Newsgroups gmane.comp.otrs.devel,gmane.comp.otrs.user
Message-ID <[email protected]>
I wrote an postmaster pre-filter that searches in the tickets for an existing external ID, if it's existing a new article to this ticket is added. Otherwise a new ticket is added.
My problem is that I have to define the Agent ID (UserID) in the Ticketsearch function in the pre-filter. 
How can I handle searches in all tickets and not only supportef by the selected agent?

Thank you

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.