Summary: | Properly encode email subjects in mailto: links | ||
---|---|---|---|
Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | Templates | Assignee: | Martin Renvoize (ashimema) <martin.renvoize> |
Status: | Signed Off --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | martin.renvoize, shi-yao.wang |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36595 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 37918: Add email_header template toolkit filter
Bug 37918: Add email_header template toolkit filter |
Description
Katrin Fischer
2024-09-13 14:05:38 UTC
So, on my quick research I reckon we need a new TT filter to make sure subjects are properly RFC2047 encoded. We should be able to add that fairly trivially using Encode::MIME::Header I think. Created attachment 171518 [details] [review] Bug 37918: Add email_header template toolkit filter This patch adds a new email_header TT filter to properly encode strings according to RFC2047 as per the email specification. This allows developers to set default subjects in mailto links with the correct encoding. Created attachment 171994 [details] [review] Bug 37918: Add email_header template toolkit filter This patch adds a new email_header TT filter to properly encode strings according to RFC2047 as per the email specification. This allows developers to set default subjects in mailto links with the correct encoding. Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Assuming I only needed to make sure the test passes for the sign-off. Should we include refactoring of mailto with subject in this bug? |