Bugzilla – Attachment 166376 Details for
Bug 31627
Add ability to embed the letter ID in outgoing email notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31627: Send id in an email header
Bug-31627-Send-id-in-an-email-header.patch (text/plain), 1.18 KB, created by
Kyle M Hall (khall)
on 2024-05-08 10:37:15 UTC
(
hide
)
Description:
Bug 31627: Send id in an email header
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2024-05-08 10:37:15 UTC
Size:
1.18 KB
patch
obsolete
>From a0ae3290e1b8634239282d085bf493f1b7d9eaed Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 8 May 2024 06:36:41 -0400 >Subject: [PATCH] Bug 31627: Send id in an email header > >--- > C4/Letters.pm | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index 49c6c42797b..c7c76ce8ebe 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -1464,11 +1464,10 @@ sub _send_message_by_email { > $email->create($params); > } else { > $email = Koha::Email->create($params); >+ $email->header('X-Koha-Message-ID', $message->{id} ) if C4::Context->preference('SendLetterIdInEmailNotices'); > if ($is_html) { >- $content .= "<span id='letter_id' style='display:none'>$message->{letter_id}</span>" if $message->{id} && C4::Context->preference('SendLetterIdInEmailNotices'); > $email->html_body( _wrap_html( $content, $subject ) ); > } else { >- $content .= "\n$message->{letter_id}" if $message->{id} && C4::Context->preference('SendLetterIdInEmailNotices'); > $email->text_body($content); > } > } >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31627
:
140998
|
141025
|
142826
|
143022
|
151536
|
151537
|
155364
|
166374
|
166375
|
166376
|
166377
|
166378
|
166379
|
166399
|
166400
|
166401