How to get the source of a Condition I want to modify

I’m doing my first customization, so bear with me.
I have a “Postmaster” queue, and would prefer that the “On Create
Autoreply To Requestors” global scrip would not autoreply to
postmaster problems. Ah, ha! That exact problem is described here:

 http://wiki.bestpractical.com/index.cgi?WriteCustomCondition

So I go to Global -> Scripts -> select “On Create Autoreply To
Requestors with template AutoReply with PW assign” and see that the
current condition is “On Create”. I understand that I want to change
that to “User Defined”.

Is there a way to see the “On Create” code so that I can copy it as
the basis for my “User Defined” version?

Thanks!

Tom

Tom Limoncelli wrote:

I’m doing my first customization, so bear with me.
I have a “Postmaster” queue, and would prefer that the “On Create
Autoreply To Requestors” global scrip would not autoreply to postmaster
problems. Ah, ha! That exact problem is described here:

http://wiki.bestpractical.com/index.cgi?WriteCustomCondition

So I go to Global → Scripts → select “On Create Autoreply To
Requestors with template AutoReply with PW assign” and see that the
current condition is “On Create”. I understand that I want to change
that to “User Defined”.

Is there a way to see the “On Create” code so that I can copy it as the
basis for my “User Defined” version?
/path/to/rt/lib/RT/Condition/…
but be aware that execution context of the UserDefined actions and
conditions a little differs from context of the .pm actions and conditions.

See also WriteCustomAction on the wiki.