[Junk released by User action] Re: [rt-users] Disable Auto replymessage for a group

Sean McCreadie smccreadie at CanyonPartners.com
Fri Jan 18 11:11:36 EST 2008

OK it works now!  Thanks everyone for all the help with this, I was able
to get it to send the Autoreply only to regular users and not my
Helpdesk group by using the code supplied below.  Mine looks like this:

if ( $self->TransactionObj->Type eq "Create" ) {
    my @HelpDeskMembersEmails =
    my $requestor = $self->TicketObj->RequestorAddresses();
    if (grep{ lc($requestor) eq lc($_)} @HelpDeskMembersEmails)
	return undef;
return 1;

Thanks again to everyone that helped on this!


-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Emmanuel
Sent: Thursday, January 17, 2008 9:18 AM
To: rt-users at lists.bestpractical.com
Subject: Re: [Junk released by User action] Re: [rt-users] Disable Auto
replymessage for a group

On Thu, Jan 17, 2008 at 08:48:45AM -0800, Sean McCreadie wrote:
> Kenn,
> Thanks for the tip on those actions, I didn't think about that before.
> I guess im still a little stuck on this because I need to be able to
> disable the Autoreply action for only those members of my RT group
> called "Helpdesk" and still have it work for all the unprivileged
> Gene replied with a way to check group membership in a custom
> I think this is the way to go, but I can't seem to get the syntax
> to get it to work.  Maybe there is a way to write in a custom
> to return undef if the requestor is a privileged user?  Perhaps I can
> just list all the email addresses of the members of my helpdesk group
> the custom condition? , as there are only about 10 members.  I was
> to get it to work for one email address (I pasted the code in the
> original post) but I couldn't figure out how ot list several
> Thanks again for all the help on this, I have learned a lot so far off
> this mailing list and hope to contribute more as I get more experience
> with RT.

Once you have an array with your helpdesk users emails, uses something
like this:

if ( $self->TransactionObj->Type eq "Create" )
    my @HelpDeskMembersEmails = FIXME;
    my $requestor = $self->TicketObj->RequestorAddresses();
    if (grep{ lc($requestor) eq lc($_)} @HelpDeskMembersEmails)
	return undef;

return 1;

Community help: http://wiki.bestpractical.com
Commercial support: sales at bestpractical.com

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

More information about the rt-users mailing list