I want to use a different template for the autoreply for a single queue.
Basically, I'll be matching the subject to a predetermined string. This string
will only be used by privileged users but, to make certain that only they will
receive this auto reply, I want to set the condition for the scrip to check for
them.
Will it work to use
my %userID;
my $users = new RT::Users(RT::CurrentUser);
$users->LimitToPrivileged;
while (my $user = $users->Next) {
next if $user->Name eq 'root';
$userID{$user->Name} = undef;
}
if exists($userID{$self->TicketObj->Creator} {
return 1;
}else{
return(undef);
}
Thanks
Mathew
--
Keep up with me and what I'm up to: http://theillien.blogspot.com
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com