specify UTF-8 encoding for emails

master 0.2
Y 2020-02-09 19:22:58 +01:00
parent 3d2cdf5649
commit 857d22870a
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Yves G. <theYinYeti@yalis.fr>
pkgname=epsi2ical
pkgver=0.1
pkgver=0.2
pkgrel=1
pkgdesc="Create an ICS file based on EPSIs web calendar"
arch=('any')

View File

@ -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:') \