Re: [rt-users] Lost emails!
Just for the records, the problem was that I copied SendEmail.pm to SendEmail_Local.pm. In the "Local" copy I made my customization. This is not a good idea because at the end of SendEmail.pm you find "RT::Base->_ImportOverlays();" so I gues this triggered an endless loop which most of the time works nevertheless but occasionally fails with "copy freed scalar panic" or "Scrip Prepare died" Now I just have the modified method in "Local" and it seems to work. cheers!
Re: [rt-users] Lost emails!
forgot the attachment - Ursprüngliche Mail - > Von: "Sternberger, Sven" <sven.sternber...@desy.de> > An: "rt-users" <rt-users@lists.bestpractical.com> > Gesendet: Montag, 5. Dezember 2016 09:40:25 > Betreff: Re: [rt-users] Lost emails! > Hello! > > it would be very helpful if somebody could look at my overlay if it is > syntactical correct overlay file. > > I found maybe my problem. I've just copied the original file > to SendEmail_Local.pm and make my changes. But when I looked at the end of > the copied file I found "RT::Base->_ImportOverlays();" > which is maybe not a good idea to have it in SendEmail_Local.pm file? > > Now I have only the header and the method I've changed in SendEmail_Local.pm. > > best regards! > > Sven > > - Ursprüngliche Mail - >> Von: "Sternberger, Sven" <sven.sternber...@desy.de> >> An: "rt-users" <rt-users@lists.bestpractical.com> >> Gesendet: Donnerstag, 1. Dezember 2016 14:42:11 >> Betreff: Re: [rt-users] Lost emails! > >> Hello! >> >> I now changed some things. I switched to perl 5.24 (perlbrew) and I updated >> to >> 4.2.13 >> but the problem is still the same >> >> Dec 1 12:27:40 rt- RT: [5776] Ticket 699881 created in queue 'it-' >> by >> it-x...@desy.de >> Dec 1 12:27:40 rt- RT: [5776] Redundant argument in sprintf at >> /opt/rt4/sbin/../lib/RT/Action/Notify.pm line 130. >> Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with >> known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. >> Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with >> known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. >> Dec 1 12:27:40 rt- RT: [5776] Scrip Prepare 238 died. - Can't locate >> object >> method "" via package "RT::Action::Notify" at >> /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line >> 1043.#012#012Stack:#012 >> [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:1043]#012 >> [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:580]#012 >> [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:152]#012 >> [/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]#012 >> [/opt/rt4/sbin/../lib/RT/ScripAction.pm:223]#012 >> [/opt/rt4/sbin/../lib/RT/Scrip.pm:637]#012 >> [/opt/rt4/sbin/../lib/RT/Scrips.pm:342]#012 >> [/opt/rt4/sbin/../lib/RT/Scrips.pm:275]#012 >> [/opt/rt4/sbin/../lib/RT/Ticket.pm:2607]#012 >> [/opt/rt4/sbin/../lib/RT/Ticket.pm:2578]#012 >> [/opt/rt4/sbin/../lib/RT/Ticket.pm:2648] >> >> I don't have an idea how to track down the problem. My next try would be to >> replace SendEmail.pm with my SendEmail_Local.pm maybe the >> customization mechanism is broken? >> >> Best regards, >> >> Sven >> >> PS the actual diff /opt/rt4/lib/RT/Action/SendEmail.pm >> /opt/rt4/lib/RT/Action/SendEmail_Local.pm >> >> 832,838c832,839 >> < $self->RecipientFilter( >> < Callback => sub { >> < return unless RT::EmailParser->IsRTAddress( $_[0] ); >> < return "$_[0] appears to point to this RT instance. Skipping"; >> < }, >> < All => 1, >> < ); >> --- >>> # removed for q2q >>> #$self->RecipientFilter( >>> #Callback => sub { >>> #return unless RT::EmailParser->IsRTAddress( $_[0] ); >>> #return "$_[0] appears to point to this RT instance. Skipping"; >>> #}, >>> #All => 1, >>> #); >> - >> RT 4.4 and RTIR training sessions, and a new workshop day! >> https://bestpractical.com/training >> * Los Angeles - January 9-11 2017 > - > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Los Angeles - January 9-11 2017 SendEmail_Local.pm Description: Perl program - RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - January 9-11 2017
Re: [rt-users] Lost emails!
Hello! it would be very helpful if somebody could look at my overlay if it is syntactical correct overlay file. I found maybe my problem. I've just copied the original file to SendEmail_Local.pm and make my changes. But when I looked at the end of the copied file I found "RT::Base->_ImportOverlays();" which is maybe not a good idea to have it in SendEmail_Local.pm file? Now I have only the header and the method I've changed in SendEmail_Local.pm. best regards! Sven - Ursprüngliche Mail - > Von: "Sternberger, Sven" <sven.sternber...@desy.de> > An: "rt-users" <rt-users@lists.bestpractical.com> > Gesendet: Donnerstag, 1. Dezember 2016 14:42:11 > Betreff: Re: [rt-users] Lost emails! > Hello! > > I now changed some things. I switched to perl 5.24 (perlbrew) and I updated to > 4.2.13 > but the problem is still the same > > Dec 1 12:27:40 rt- RT: [5776] Ticket 699881 created in queue 'it-' by > it-x...@desy.de > Dec 1 12:27:40 rt- RT: [5776] Redundant argument in sprintf at > /opt/rt4/sbin/../lib/RT/Action/Notify.pm line 130. > Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with > known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. > Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with > known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. > Dec 1 12:27:40 rt- RT: [5776] Scrip Prepare 238 died. - Can't locate > object > method "" via package "RT::Action::Notify" at > /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043.#012#012Stack:#012 > [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:1043]#012 > [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:580]#012 > [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:152]#012 > [/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]#012 > [/opt/rt4/sbin/../lib/RT/ScripAction.pm:223]#012 > [/opt/rt4/sbin/../lib/RT/Scrip.pm:637]#012 > [/opt/rt4/sbin/../lib/RT/Scrips.pm:342]#012 > [/opt/rt4/sbin/../lib/RT/Scrips.pm:275]#012 > [/opt/rt4/sbin/../lib/RT/Ticket.pm:2607]#012 > [/opt/rt4/sbin/../lib/RT/Ticket.pm:2578]#012 > [/opt/rt4/sbin/../lib/RT/Ticket.pm:2648] > > I don't have an idea how to track down the problem. My next try would be to > replace SendEmail.pm with my SendEmail_Local.pm maybe the > customization mechanism is broken? > > Best regards, > > Sven > > PS the actual diff /opt/rt4/lib/RT/Action/SendEmail.pm > /opt/rt4/lib/RT/Action/SendEmail_Local.pm > > 832,838c832,839 > < $self->RecipientFilter( > < Callback => sub { > < return unless RT::EmailParser->IsRTAddress( $_[0] ); > < return "$_[0] appears to point to this RT instance. Skipping"; > < }, > < All => 1, > < ); > --- >> # removed for q2q >> #$self->RecipientFilter( >> #Callback => sub { >> #return unless RT::EmailParser->IsRTAddress( $_[0] ); >> #return "$_[0] appears to point to this RT instance. Skipping"; >> #}, >> #All => 1, >> #); > - > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Los Angeles - January 9-11 2017 - RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - January 9-11 2017
Re: [rt-users] Lost emails!
Hello! I now changed some things. I switched to perl 5.24 (perlbrew) and I updated to 4.2.13 but the problem is still the same Dec 1 12:27:40 rt- RT: [5776] Ticket 699881 created in queue 'it-' by it-x...@desy.de Dec 1 12:27:40 rt- RT: [5776] Redundant argument in sprintf at /opt/rt4/sbin/../lib/RT/Action/Notify.pm line 130. Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. Dec 1 12:27:40 rt- RT: [5776] Use of uninitialized value in method with known name at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043. Dec 1 12:27:40 rt- RT: [5776] Scrip Prepare 238 died. - Can't locate object method "" via package "RT::Action::Notify" at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 1043.#012#012Stack:#012 [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:1043]#012 [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:580]#012 [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:152]#012 [/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]#012 [/opt/rt4/sbin/../lib/RT/ScripAction.pm:223]#012 [/opt/rt4/sbin/../lib/RT/Scrip.pm:637]#012 [/opt/rt4/sbin/../lib/RT/Scrips.pm:342]#012 [/opt/rt4/sbin/../lib/RT/Scrips.pm:275]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2607]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2578]#012 [/opt/rt4/sbin/../lib/RT/Ticket.pm:2648] I don't have an idea how to track down the problem. My next try would be to replace SendEmail.pm with my SendEmail_Local.pm maybe the customization mechanism is broken? Best regards, Sven PS the actual diff /opt/rt4/lib/RT/Action/SendEmail.pm /opt/rt4/lib/RT/Action/SendEmail_Local.pm 832,838c832,839 < $self->RecipientFilter( < Callback => sub { < return unless RT::EmailParser->IsRTAddress( $_[0] ); < return "$_[0] appears to point to this RT instance. Skipping"; < }, < All => 1, < ); --- > # removed for q2q > #$self->RecipientFilter( > #Callback => sub { > #return unless RT::EmailParser->IsRTAddress( $_[0] ); > #return "$_[0] appears to point to this RT instance. Skipping"; > #}, > #All => 1, > #); - RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - January 9-11 2017
Re: [rt-users] Lost emails!
Hello! there are no "secrets" in our customization I disabled the check which prevents to send an email to a queue adress (we process income mails with procmail and automatically send emails which were adressed to an other queue to the staff member of this queue directly) best regards! Sven - Ursprüngliche Mail - > Von: "Shawn M Moore" <sh...@bestpractical.com> > An: "Sternberger, Sven" <sven.sternber...@desy.de> > CC: "rt-users" <rt-users@lists.bestpractical.com> > Gesendet: Montag, 21. November 2016 17:10:01 > Betreff: Re: [rt-users] Lost emails! >> On Nov 21, 2016, at 06:12, Sternberger, Sven <sven.sternber...@desy.de> >> wrote: >> Hello! > > Hi Sven, > >> Nov 17 16:20:48 myrtsys RT: [9992] Scrip Prepare 88 died. - Can't locate >> object >> method "" via package "MIME::Head" at >> /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 180.#012#012Stack:#012 > > The "_Local" in the stack trace indicates a local customization your > organization has made as being the source of the error. Would you be able to > provide your copy of /opt/rt4/lib/RT/Action/SendEmail_Local.pm? > >> best regards! >> >> Sven Sternberger >> System Engineer >> Tel.: 040/8998-4397 >> DESY IT > > Best, > Shawn SendEmail_Local.pm Description: Perl program - RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - January 9-11 2017
Re: [rt-users] Lost emails!
> On Nov 21, 2016, at 06:12, Sternberger, Svenwrote: > Hello! Hi Sven, > Nov 17 16:20:48 myrtsys RT: [9992] Scrip Prepare 88 died. - Can't locate > object method "" via package "MIME::Head" at > /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 180.#012#012Stack:#012 > The "_Local" in the stack trace indicates a local customization your organization has made as being the source of the error. Would you be able to provide your copy of /opt/rt4/lib/RT/Action/SendEmail_Local.pm? > best regards! > > Sven Sternberger > System Engineer > Tel.: 040/8998-4397 > DESY IT Best, Shawn - RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - January 9-11 2017