From b099f62bfc14ec97d38738307e43331987b5e264 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 10 May 2024 12:04:02 +0000 Subject: [PATCH] Bug 31627: (follow-up) Update -Id to -ID This also makes it match with the Message-ID. Signed-off-by: Katrin Fischer --- Koha/Email.pm | 4 ++-- t/Koha/Email.t | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/Email.pm b/Koha/Email.pm index 7701b9e400..c95cda0108 100644 --- a/Koha/Email.pm +++ b/Koha/Email.pm @@ -179,8 +179,8 @@ sub create { $email->header( 'Message-ID' => Email::MessageID->new->in_brackets ); # Add Koha message headers to aid later message identification - $email->header( 'X-Koha-Template-Id' => $params->{template_id} ) if $params->{template_id}; - $email->header( 'X-Koha-Message-Id' => $params->{message_id} ) if $params->{message_id}; + $email->header( 'X-Koha-Template-ID' => $params->{template_id} ) if $params->{template_id}; + $email->header( 'X-Koha-Message-ID' => $params->{message_id} ) if $params->{message_id}; if ( $params->{text_body} ) { $email->text_body( $params->{text_body}, %{ $params->{body_params} } ); diff --git a/t/Koha/Email.t b/t/Koha/Email.t index 5c487e14ed..69fed9c875 100755 --- a/t/Koha/Email.t +++ b/t/Koha/Email.t @@ -59,8 +59,8 @@ subtest 'create() tests' => sub { is( $email->email->header('Sender'), 'sender@example.com', 'Value set correctly' ); is( $email->email->header('Subject'), 'Some subject', 'Value set correctly' ); is( $email->email->header('X-Mailer'), 'Koha', 'Value set correctly' ); - is( $email->email->header('X-Koha-Template-Id'), 1, 'Value set correctly' ); - is( $email->email->header('X-Koha-Message-Id'), 1, 'Value set correctly' ); + is( $email->email->header('X-Koha-Template-ID'), 1, 'Value set correctly' ); + is( $email->email->header('X-Koha-Message-ID'), 1, 'Value set correctly' ); is( $email->email->body, $html_body, "Body set correctly" ); like( $email->email->content_type, qr|text/html|, "Content type set correctly" ); like( $email->email->content_type, qr|charset="?iso-8859-1"?|, "Charset set correctly" ); -- 2.39.5