From aa092ea8419d876ee9e180c9104d0c0656092999 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 5 Jan 2025 01:15:39 +0100 Subject: [PATCH] install_postfixadmin.sh: orioginal script now has the right charset (utf8). --- install_postfixadmin.sh | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/install_postfixadmin.sh b/install_postfixadmin.sh index e3337f2..65eb521 100755 --- a/install_postfixadmin.sh +++ b/install_postfixadmin.sh @@ -1842,23 +1842,25 @@ fi # - Encoding does not work as exspected. # - +# - Update: Encoding seems to works now +# - # - NOTE: # - this IS NOT a fix, but a workaround # - -echononl "\tWorkaround, because encoding does not work as exspected." -# - Vacation script changed. Since Version 3.2 we need another perl regexp. -# - The old one was: -# - perl -i -n -p -e "s/(\s*\'ctype\'\s* =>\s*)\'text\/plain.*$/\1\'text\/plain; charset=iso-8859-1\',/" \ -# - -perl -i -n -p -e "s/(\s*\'Content-Type\'\s* =>\s*)\"text\/plain.*$/\1\"text\/plain; charset=iso-8859-1\",/" \ - /var/spool/vacation/vacation.pl > "$log_file" 2>&1 -if [[ $? -eq 0 ]];then - echo_ok - info "This IS NOT a fix, but a workaround." -else - echo_failed - error "$(cat $log_file)" -fi +#echononl "\tWorkaround, because encoding does not work as exspected." +## - Vacation script changed. Since Version 3.2 we need another perl regexp. +## - The old one was: +## - perl -i -n -p -e "s/(\s*\'ctype\'\s* =>\s*)\'text\/plain.*$/\1\'text\/plain; charset=iso-8859-1\',/" \ +## - +##perl -i -n -p -e "s/(\s*\'Content-Type\'\s* =>\s*)\"text\/plain.*$/\1\"text\/plain; charset=iso-8859-1\",/" \ +## /var/spool/vacation/vacation.pl > "$log_file" 2>&1 +#if [[ $? -eq 0 ]];then +# echo_ok +# info "This IS NOT a fix, but a workaround." +#else +# echo_failed +# error "$(cat $log_file)" +#fi echononl "\tSet Permission on vacation script" _failed=false