Explorar o código

fix charset russian language to send mail

Dmitry Bannik %!s(int64=9) %!d(string=hai) anos
pai
achega
f1c46e9ab8
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      func/main.sh

+ 2 - 0
func/main.sh

@@ -1,3 +1,4 @@
+#!/usr/bin/env bash
 # Internal variables
 HOMEDIR='/home'
 BACKUP='/backup'
@@ -448,6 +449,7 @@ sync_cron_jobs() {
     rm -f $crontab
     if [ "$CRON_REPORTS" = 'yes' ]; then
         echo "MAILTO=$CONTACT" > $crontab
+        echo 'CONTENT_TYPE="text/plain; charset=utf-8"' >> $crontab
     fi
     while read line; do
         eval $line