1 Dec 2003 07:26
SendArticle.pm not using "Precedence"; fix included
Robert L Mathews <lists <at> tigertech.com>
2003-12-01 06:26:10 GMT
2003-12-01 06:26:10 GMT
I noticed that OTRS autoresponses don't include a "Precedence: bulk"
header, even though the code tries to set one.
This is because MIME::Entity doesn't consider "Precedence" a standard
header for some reason (at least not in my vbersion 5.404), so it ignores
it.
This patch fixes it:
*** SendArticle.pm.orig Sun Nov 30 22:09:41 2003
--- SendArticle.pm Sun Nov 30 22:11:50 2003
***************
*** 109,115 ****
Encoding => '8bit',
};
if ($Loop) {
! $$Header{Precedence} = 'bulk';
$$Header{'X-Loop'} = 'bulk';
}
my $Entity = MIME::Entity->build(%{$Header}, Data => $Param{Body});
--- 109,118 ----
Encoding => '8bit',
};
if ($Loop) {
! # the "Precedence" header isn't one of the standard MIME::Entity
! # headers, so it needs a trailing semicolon. See MIME::Entity
! # docs for "build".
! $$Header{'Precedence:'} = 'bulk';
$$Header{'X-Loop'} = 'bulk';
}
(Continue reading)
Are there any rules, how to checkin patches or new development?
Is it nesessary, that somebody of the core team say "Yes", when I want to
implement a new feature?
I've written a new feature, called "Standard Ticket", which can be reached
from AgentPhoneNew.dtl. It opens a new window to select a predefined Standard
Ticket. A standard ticket is a definition of To, Owner, Subject, Body, State
and Priority. If you submit this window, the values of the standard ticket
are transfered to the apropriate fields in the AgentPhoneNew form.
So what must be done, to make my changes public?
CU Dirk Scheer
RSS Feed