Re: [rt-users] Overriding files in lib/RT?

2016-11-01 Thread Martin Wheldon
Hi Alex, You may need to add the following to the end of your Email_Local.pm file: 1; Best Regards Martin On 2016-10-31 20:17, Alex Hall wrote: Hi all, Thanks for the responses, it's partially working. When I use my Email_Local.pm, the server refuses to start, yet I have no errors.

Re: [rt-users] Overriding files in lib/RT?

2016-10-31 Thread Alex Hall
Sorry, but can you clarify "run FCGI by hand"? Currently, I run spawn-fcgi to specify the address, port, and location of the RT FCGI server. All that gives me is a success or error message on initial start, but any subsequent errors don't seem to be logged anywhere. This is the only way I know to

Re: [rt-users] Overriding files in lib/RT?

2016-10-31 Thread Kenneth Marshall
On Mon, Oct 31, 2016 at 04:17:11PM -0400, Alex Hall wrote: > Hi all, > Thanks for the responses, it's partially working. When I use my > Email_Local.pm, the server refuses to start, yet I have no errors. Running > it through Perl's checker reveals only: > > Name "RT::Logger" used only once:

Re: [rt-users] Overriding files in lib/RT?

2016-10-31 Thread Alex Hall
Hi all, Thanks for the responses, it's partially working. When I use my Email_Local.pm, the server refuses to start, yet I have no errors. Running it through Perl's checker reveals only: Name "RT::Logger" used only once: possible typo at Email_Local.pm at line 31 Perl says everything else is

Re: [rt-users] Overriding files in lib/RT?

2016-10-31 Thread Nilesh
To extend you should either add code in Email_Local.pm or Email_Overlay.pm. If you name it as Email.pm then you have to copy all code from existing module and modify it. I'm not sure about differences between Overlay and Local but I think that difference is for OO vs adding some functionality.

Re: [rt-users] Overriding files in lib/RT?

2016-10-31 Thread Matt Zagrabelny
Hi Alex, On Mon, Oct 31, 2016 at 11:09 AM, Alex Hall wrote: > Hey list, > How would I override /opt/rt4/lib/RT/Interface/Email.pm? Overlays. https://docs.bestpractical.com/rt/4.4.1/RT/StyleGuide.html#EXTENDING-RT-CLASSES It looks like there is also an outdated wiki

[rt-users] Overriding files in lib/RT?

2016-10-31 Thread Alex Hall
Hey list, How would I override /opt/rt4/lib/RT/Interface/Email.pm? I created /opt/rt4/local/lib/RT/Interface/Email.pm, but that doesn't seem to be working. After clearing the mason cache, then restarting the server, my new regex didn't work. I'll check that the change is correct, but all I did was