NotificationEvent - filtering by SenderType

Hello everybody, I'm setting up an OTRS environment that will largely depend on email notifications. NotificationEvent interface and implementation are both very rich but one thing I find lacking -- our agents usually do not need to be notified of auto-response messages... Interface allows filtering on mostly every article field except SenderType... So, I've added a line of code (in the line #116 of program module K/S/Ticket/Event/NotificationEvent.pm in version $Id: NotificationEvent.pm,v 1.9 2009/08/18 21:32:15 martin Exp $) # by ddzeko: no notifications for system originated msgs (2 == $Article{SenderTypeID}) and next NOTIFICATION; I guess better way would be to add the option to filter setup page in NotificationEvent admin interface, but this simple trick did the job for me. Is there a better way to accomplish this? Hard-coding that SenderTypeID = 2 is what bothers me. Kind regards, d.
participants (1)
-
Damir Dzeko