[rt-users] help with script.

Gene LeDuc gleduc at mail.sdsu.edu
Thu Aug 2 14:52:32 EDT 2007

You could try this:
1.  Copy the Correspondence template into a new custom template.
2.  Add some code to the template that reads in the AdminCcs and Ccs, then 
makes a mailing list from those AdminCc members that are not in the Cc list.
3.  Change the scrip action to: Notify Other Recipients; you have to supply 
your own list of recipients (step 2) in the template.

Have fun!

At 11:32 AM 8/2/2007, slamp slamp wrote:
>Currently I have this script to notify AdminCc on correspond when a
>ticket is owned by Nobody.
>Condition: User Defined
>Action: Notify AdminCcs
>Template: Global template: Correspondence
>Stage: TransactionCreate
>if (($self->TransactionObj->Type eq "Correspond") and
>($self->TicketObj->OwnerObj->Id == $RT::Nobody->Id)) { return(1); }
>else { return(undef); }
>How do I edit this so it will not send to AdminCcs that are already
>part of the Cc? The reason being I also have another scrip that adds a
>corresponder as a Cc.

Gene LeDuc, GSEC
Security Analyst
San Diego State University 

More information about the rt-users mailing list