[rt-users] RT 2.0.5
Olafur Osvaldsson
oli at isnic.is
Wed Aug 15 06:04:09 EDT 2001
I upgraded and got into immediate trouble...
These errors came up right after upgrading:
"my" variable $header masks earlier declaration in same statement at /usr/local/rt2/lib/RT/Interface/Email.pm line 439.
syntax error at /usr/local/rt2/lib/RT/Interface/Email.pm line 437, near "$header qw( Errors-To Reply-To From Sender )"
syntax error at /usr/local/rt2/lib/RT/Interface/Email.pm line 446, near "}"
BEGIN failed--compilation aborted at /usr/local/rt2/bin/rt-mailgate line 31.
554 5.3.0 "|/usr/local/rt2/bin/rt-mailgate --queue ticket-prufa --action correspond"... unknown mailer error 255
Here is the fix:
*** /usr/local/src/rt-2-0-5/lib/RT/Interface/Email.pm Mon Jul 30 07:45:50 2001
--- /usr/local/rt2/lib/RT/Interface/Email.pm Wed Aug 15 09:52:27 2001
***************
*** 434,442 ****
my $head = shift;
#Figure out who's sending this message.
! foreach my $header qw( Errors-To Reply-To From Sender ) {
# If there's a header of that name
! my $headerobj = $head->get($header);
if ($headerobj) {
my ($addr, $name ) = ParseAddressFromHeader($headerobj);
# If it's got actual useful content...
--- 434,442 ----
my $head = shift;
#Figure out who's sending this message.
! foreach my $hdr (qw( Errors-To Reply-To From Sender )) {
# If there's a header of that name
! my $headerobj = $head->get($hdr);
if ($headerobj) {
my ($addr, $name ) = ParseAddressFromHeader($headerobj);
# If it's got actual useful content...
--
Olafur Osvaldsson
Systems Administrator
Internet Iceland inc.
Tel: +354 525-5291
Email: oli at isnic.is
More information about the rt-users
mailing list