Solving my own problem, but not really answering my own question...
Since I'm trying to call the subroutine from a user-defined action in a
scrip, I added package RT::Action::UserDefined; before the subroutine
header so that it's in the same context as the scrip.
My question still stands, however. What package name would code in the
RT_SiteConfig.pm file be referenced as?
Regards,
Gene
Gene LeDuc wrote:
Hi All,
I've put a small subroutine called EmailInMyDomain() into my
RT_SiteConfig.pm file. How do I call it from a scrip? I get an error
when I try calling it like:
if ( EmailInMyDomain($email) ) { }
(Undefined subroutine RT::Action::UserDefined::EmailInMyDomain ...)
Appreciate any help you can give me on this.
Regards,
Gene
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com