From 857d22870aa2c351b53af70ada6d4b18de914350 Mon Sep 17 00:00:00 2001 From: Y Date: Sun, 9 Feb 2020 19:22:58 +0100 Subject: [PATCH] specify UTF-8 encoding for emails --- PKGBUILD | 2 +- epsiEDTtoICS.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 0792fca..735d484 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Yves G. pkgname=epsi2ical -pkgver=0.1 +pkgver=0.2 pkgrel=1 pkgdesc="Create an ICS file based on EPSI’s web calendar" arch=('any') diff --git a/epsiEDTtoICS.sh b/epsiEDTtoICS.sh index 621cc3d..7e2127a 100755 --- a/epsiEDTtoICS.sh +++ b/epsiEDTtoICS.sh @@ -105,7 +105,8 @@ function unwrap_ical_long_lines() { function format_diff_and_send_mail() { { echo "To: $TO" - echo "Subject: Changes in EPSI calendar" + echo 'Subject: Changes in EPSI calendar' + echo 'Content-Type: text/plain; charset=UTF-8' echo diff -u8 \ <(crlf_to_lf <"$1" | unwrap_ical_long_lines | grep -vE '^DTSTAMP:|^UID:') \