[rt-users] Scrip ordering and commmitting

Ruslan Zakirov ruz at bestpractical.com
Mon Jan 28 13:56:05 EST 2008


On Jan 28, 2008 7:50 PM, Stephen Turner <sturner at mit.edu> wrote:
> One of our users would like to be added to a ticket as an AdminCc
> (and be notified) whenever a particular requestor sends (new) mail to
> the queue. I thought I could do this by taking advantage of the
> scrip-ordering feature:
>
>    00 On Create User Defined (add user as AdminCc if requestor matches a list)
>    99 On Create Notify AdminCc ...
>
> The first part works fine - the user is added to the ticket as
> AdminCc. However, the second scrip finds no AdminCcs and sends no
> mail (No recipients found. Not sending). The scrips are definitely
> executing in the expected order - the RT log tells me so.
>
> I thought that for a given transaction, each scrip was committed in
> order - so I expected scrip 99 to see the new AdminCc and send mail.
> But apparently not.
>
> Can anyone explain why the newly minted AdminCc does not get a notification?
Notification scrip fetches list of recipients during prepare.

>
> Thanks,
> Steve
>
>
> Stephen Turner
> Senior Programmer/Analyst - Client Support Services
> MIT Information Services and Technology (IS&T)
>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> 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
>



-- 
Best regards, Ruslan.



More information about the rt-users mailing list