[rt-devel] RE: [rt-users] Howto build scrips?

Landon Stewart lstewart at superb.net
Fri Apr 11 16:43:13 EDT 2003


Wouldn't it be:
use RT::SiteConfig;

?



At 02:25 PM 4/11/2003 -0500, James L. Harrison wrote:
>Hi,
>
>I am trying to use RTFM and move IncomingEmail to rt3... I haven't changed
>anything in IncomingEmail.pm.  I have adjusted what I believe are the
>necessary variables in the insert script:
>
>use lib "/opt/rt3/lib";
>use lib "/opt/rt3/etc";
>
>#This drags in  RT's config.pm
>use RT_SiteConfig;
>
>Here's where I run into a problem...  When I run the script I get:
>
># perl IncomingEmail.pm.insert.pl
>Undefined subroutine &RT::Set called at /opt/rt3/etc/RT_SiteConfig.pm line
>1.
>Compilation failed in require at IncomingEmail.pm.insert.pl line 15.
>BEGIN failed--compilation aborted at IncomingEmail.pm.insert.pl line 15.
>
>I know why this is happening... The new config files all have a Set(...)
>surronding the values... How can I get by this... should I copy the config
>to a new file and take out the Set(...) stuff?
>
>Any help is appreciated.
>
>-Jamie
>
> > -----Original Message-----
> > From: rt-users-admin at lists.fsck.com
> > [mailto:rt-users-admin at lists.fsck.com]On Behalf Of Jesse Vincent
> > Sent: Friday, April 11, 2003 12:21 PM
> > To: jkaufman at footlocker.com
> > Cc: rt-users at lists.fsck.com
> > Subject: Re: [rt-users] Howto build scrips?
> >
> >
> >
> >
> >
> > On Thu, Apr 10, 2003 at 11:13:36AM -0500, jkaufman at footlocker.com wrote:
> > > What commands/variables can be used in building custom scrips? I have
> > > looked at the Draft rtv3.0 Documentation, and I wasn't certain if the
> > > examples it gives are using perl code (and can I use just any
> > perl code) or
> > > if it's some RT specific "scrips" code....
> > >
> > > Basically is there a guide to writing custom scrips?
> >
> > There's some stuff from RT 2.0 in RTFM. The real "guide" will be the
> > tutorial Robert Spier and I will be presenting at O'Reilly's Open Source
> > Conference this July in Portland, OR.
> >
> >       -j
> > >
> > > Jonathan Kaufman
> > >
> > > Foot Locker Inc.
> > > E-Mail: jkaufman at footlocker.com
> > >
> > >
> > >
> > > _______________________________________________
> > > rt-users mailing list
> > > rt-users at lists.fsck.com
> > > http://lists.fsck.com/mailman/listinfo/rt-users
> > >
> > > Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
> >
> > --
> > http://www.bestpractical.com/rt  -- Trouble Ticketing. Free.
> > _______________________________________________
> > rt-users mailing list
> > rt-users at lists.fsck.com
> > http://lists.fsck.com/mailman/listinfo/rt-users
> >
> > Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
> >
>
>_______________________________________________
>rt-devel mailing list
>rt-devel at lists.fsck.com
>http://lists.fsck.com/mailman/listinfo/rt-devel




More information about the Rt-devel mailing list