Bugzilla – Attachment 98441 Details for
Bug 24588
Set `Mailer-X` and `MessageID` mail headers to reduce the likelihood of Koha mail being marked as spam
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24588: Prevent e-mails from Koha to be flagged as spam
Bug-24588-Prevent-e-mails-from-Koha-to-be-flagged-.patch (text/plain), 1.53 KB, created by
Ulrich Kleiber
on 2020-02-05 10:08:23 UTC
(
hide
)
Description:
Bug 24588: Prevent e-mails from Koha to be flagged as spam
Filename:
MIME Type:
Creator:
Ulrich Kleiber
Created:
2020-02-05 10:08:23 UTC
Size:
1.53 KB
patch
obsolete
>From 8e5a451bbe8bee6bb5c58b371755cc4e6e566c27 Mon Sep 17 00:00:00 2001 >From: Ulrich Kleiber <ulrich.kleiber@bsz-bw.de> >Date: Wed, 5 Feb 2020 11:04:20 +0100 >Subject: [PATCH] Bug 24588: Prevent e-mails from Koha to be flagged as spam > >--- > C4/Installer/PerlDependencies.pm | 5 +++++ > Koha/Email.pm | 3 +++ > 2 files changed, 8 insertions(+) > >diff --git a/C4/Installer/PerlDependencies.pm b/C4/Installer/PerlDependencies.pm >index f7244744d9..be338608eb 100644 >--- a/C4/Installer/PerlDependencies.pm >+++ b/C4/Installer/PerlDependencies.pm >@@ -104,6 +104,11 @@ our $PERL_DEPS = { > 'required' => '1', > 'min_ver' => '1.103' > }, >+ 'Email::MessageID' => { >+ 'usage' => 'Core', >+ 'required' => '1', >+ 'min_ver' => '1.406' >+ }, > 'Exception::Class' => { > 'usage' => 'Core', > 'required' => '1.38', >diff --git a/Koha/Email.pm b/Koha/Email.pm >index 58340756e8..d0c2adea74 100644 >--- a/Koha/Email.pm >+++ b/Koha/Email.pm >@@ -19,6 +19,7 @@ package Koha::Email; > > use Modern::Perl; > use Email::Valid; >+use Email::MessageID; > > use base qw(Class::Accessor); > use C4::Context; >@@ -70,6 +71,8 @@ sub create_message_headers { > $mail{'Message'} = $params->{message} if $params->{message}; > $mail{'Subject'} = $params->{subject} if $params->{subject}; > $mail{'Content-Type'} = $params->{contenttype} if $params->{contenttype}; >+ $mail{'X-Mailer'} = "Koha"; >+ $mail{'Message-ID'} = Email::MessageID->new->in_brackets; > return %mail; > } > 1; >-- >2.11.0
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 24588
:
98430
|
98441
|
98484
|
98489
|
98518
|
99384