From 9aa3042d986a11367590af802d19ace0fe2445cb Mon Sep 17 00:00:00 2001
From: blagoja <blagojabozinovski@gmail.com>
Date: Tue, 25 Apr 2023 15:41:45 +0200
Subject: [PATCH] Recipent name patch for names containing no utf-8 chars

---
 .../patches/04_patch_smtp_aws_recipient_name.patch    | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 images/ckan/2.9/patches/04_patch_smtp_aws_recipient_name.patch

diff --git a/images/ckan/2.9/patches/04_patch_smtp_aws_recipient_name.patch b/images/ckan/2.9/patches/04_patch_smtp_aws_recipient_name.patch
new file mode 100644
index 0000000..7d51bf1
--- /dev/null
+++ b/images/ckan/2.9/patches/04_patch_smtp_aws_recipient_name.patch
@@ -0,0 +1,11 @@
+--- a/ckan/lib/mailer.py
++++ b/ckan/lib/mailer.py
+@@ -121,7 +121,7 @@ def mail_recipient(recipient_name, recipient_email, subject,
+     '''Sends an email'''
+     site_title = config.get('ckan.site_title')
+     site_url = config.get('ckan.site_url')
+-    return _mail_recipient(recipient_name, recipient_email,
++    return _mail_recipient("", recipient_email,
+                            site_title, site_url, subject, body,
+                            body_html=body_html, headers=headers)
+