Bugzilla – Attachment 154695 Details for
Bug 34583
Overdue notices: wrong encoding in e-mail in 'print' mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
PATCH - Bug 34583: Overdue notice - wrong coding in outlook in czech e-mail in “print” mode
0578-Overdue-notice-wrong-coding-in-outlook-in-czech-e-ma.patch (text/plain), 3.87 KB, created by
Petr Svoboda
on 2023-08-22 13:52:36 UTC
(
hide
)
Description:
PATCH - Bug 34583: Overdue notice - wrong coding in outlook in czech e-mail in “print” mode
Filename:
MIME Type:
Creator:
Petr Svoboda
Created:
2023-08-22 13:52:36 UTC
Size:
3.87 KB
patch
obsolete
>From 49405bff076caa02034aeadb213b908265e6ddf5 Mon Sep 17 00:00:00 2001 >From: svopex1 <svoboda@rbit.cz> >Date: Tue, 22 Aug 2023 15:13:18 +0200 >Subject: [PATCH 578/578] =?UTF-8?q?Overdue=20notice=20-=20wrong=20coding?= > =?UTF-8?q?=20in=20outlook=20in=20czech=20e-mail=20in=20=E2=80=9Cprint?= > =?UTF-8?q?=E2=80=9D=20mode?= >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Subject line: >Bug 34583: Overdue notice - wrong coding in outlook in czech e-mail in âprintâ mode > >Bug/feature description: >Koha overdue notice âprintâ email in Outlook is incorrectly encoded in czech language. >Tested in KohaTestingDocker - https://gitlab.com/koha-community/koha-testing-docker >This patch fixes that error. > > > >Test plan: > >Overdue notice, set print in UI, https://snipboard.io/FLkIxf.jpg. > >Message body: ><table style="padding:0; margin: 0; border-collapse: collapse; font-family: 'Trebuchet MS', Helvetica, sans-serif; width: 100%; "><tr><td style="vertical-align: top; padding: 0"> </td><td style="width: 75mm; vertical-align: top;"><table style="margin-top: 2.5cm; font-size: 11pt;"><tr><td><<borrowers.cardnumber>></td></tr><tr><td><<borrowers.firstname>> <<borrowers.surname>></td></tr><tr><td><<borrowers.address>> <<borrowers.streetnumber>></td></tr><tr><td><<borrowers.city>></td></tr><tr><td><<borrowers.zipcode>></td></tr></table></td></tr><tr><td colspan="2" style="padding: 0;"><table style="width: 100%; margin: 3cm 0 0 0;"><tr><td style="width: 5mm; height: 5mm; border-bottom: 1px dotted #000;"> </td><td style="height: 1mm;"></td><td style="width: 5mm; height: 1mm; border-bottom: 1px dotted #000;"> </td></tr></table></td></tr><tr><td colspan="2"><table><tr><td style="padding: 0.5cm 0.3cm">V Chrudimi dne <<today>></td></tr><tr><td style="padding: 0 0.3cm">UpozorÅujeme Vás, že byla již o 30 dnů pÅekroÄena doba, na kterou jsme Vám půjÄili dokumenty (celkem<<count>>). Žádáme Vás o brzké vrácenà tÄchto výpůjÄek:</td></tr><tr><td style="padding: 0.5cm 0.3cm;"><table><tr><th>Od</th><th>Do</th><th>Název</th><th>Autor</th><th>Äástka</th></tr><item><tr><td><<issues.issuedate>></td><td><strong><<issues.date_due>></strong></td><td><<biblio.title>></td><td><<biblio.author>></td><td><<items.fine>> KÄ</td></tr></item></table></td></tr><tr><td style="padding: 0 0.3cm">Zpozdné je úÄtováno dle cenÃku knihovny.</td></tr><tr><td style="padding: 0 0.3cm">Dokumenty můžete vrátit na jakémkoli oddÄlenà knihovny a poboÄce v jejich provoznà dobÄ.</td></tr><tr><td style="padding: 0 0.3cm">NesplnÃ-li ÄtenáŠsvou povinnost vyrovnat závazky s knihovou, má knihovna právo postupovat podle pÅÃsluÅ¡ných ustanovenà obÄanského zákonÃku.</td></tr></table></td></tr></table> > >Set delay 1 day, https://snipboard.io/boAd3F.jpg. > >Checkout any book. > >Set in database issues->date_due = today() - 1 >for checkouted book, https://snipboard.io/PrylGB.jpg. > >Run this scripts: > >koha-shell kohadev -c "/kohadevbox/koha/misc/cronjobs/overdue_notices.pl -v -t" > >You must have KOHA set up for sending e-mails (SMTP server). Replace xxx@email.cz to your e-mail and run this script: > >koha-shell kohadev -c "/kohadevbox/koha/misc/cronjobs/gather_print_notices.pl /var/spool/koha/kohadev/ --email xxx@email.cz" > > > >Signed-off-by: >Josef Moravec <josef.moravec@gmail.com> >--- > misc/cronjobs/gather_print_notices.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/misc/cronjobs/gather_print_notices.pl b/misc/cronjobs/gather_print_notices.pl >index 7da2e888c9..3126293e25 100755 >--- a/misc/cronjobs/gather_print_notices.pl >+++ b/misc/cronjobs/gather_print_notices.pl >@@ -320,6 +320,7 @@ sub send_files { > $email->attach_file( > $filepath, > content_type => $mimetype, >+ charset => 'UTF-8', > name => $filename, > disposition => 'attachment', > ); >-- >2.39.2 (Apple Git-143) >
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 34583
:
154695
|
154696
|
154704
|
155069