[rt-users] Customizing a scrip to prevent too many mails

Vivek Khera vivek at khera.org
Mon Sep 20 16:06:15 EDT 2004


On Sep 8, 2004, at 10:18 AM, Ruslan U. Zakirov wrote:

> As far as I know if you use one notify action then module will sent  
> only one mail to the recipient.
> Then you can add record to DB that represent action 'Notify Owner and  
> AdminCc'.
> Table: ScripActions
> Fields:
> 	ExecModule: Notify (or NotifyAsComment)
> 	Argument: Owner,AdminCc
> Other fields fill as you wish(see other records in table as examples).
>

This was just what I needed, too... For the feint of heart, here are  
the two scripactions I added to my system.  It sounds like they may be  
generally useful for inclusion in RT.

insert into scripactions  
(name,description,execmodule,argument,creator,created,lastupdatedby,last 
updated)
  values ('Notify Owner and AdminCc',
  'Sends mail to owner and  
AdminCCs','Notify','Owner,AdminCc',1,now(),1,now());

insert into scripactions  
(name,description,execmodule,argument,creator,created,lastupdatedby,last 
updated)
  values ('Notify Owner and AdminCc as Comment',
  'Sends mail to owner and AdminCCs as comment',
  'NotifyAsComment','Owner,AdminCc',1,now(),1,now());


> Danie Marais wrote:
>> Hi list,
>>  I have a scrip to notify the owner of any correspondence.  But the  
>> owner is always an AdminCC as well since they watch all activity in  
>> the queue.  So he ends up getting two mails when a requestor sends  
>> correspondence.



Vivek Khera, Ph.D.
+1-301-869-4449 x806




More information about the rt-users mailing list