From 7ed15d81eb3e438ed3bf46cb998c2e756c15c1d8 Mon Sep 17 00:00:00 2001 From: croax Date: Fri, 25 Nov 2022 23:35:45 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20ajout=20mail=20mapping=20quand=20redirig?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/add_redirected_member.sh | 2 ++ scripts/sendmail_reset.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/add_redirected_member.sh b/scripts/add_redirected_member.sh index 82c28e5..1d28aa2 100755 --- a/scripts/add_redirected_member.sh +++ b/scripts/add_redirected_member.sh @@ -47,4 +47,6 @@ echo -n "Reloading postfix..." postfix reload > /dev/null 2>&1 echo "[OK]" +echo "$user $email" >> /home/admin666/email_address_backup + $SCRIPTPATH/sendmail_redirect.sh $user $email diff --git a/scripts/sendmail_reset.sh b/scripts/sendmail_reset.sh index 3a1b600..30a6aac 100755 --- a/scripts/sendmail_reset.sh +++ b/scripts/sendmail_reset.sh @@ -10,7 +10,7 @@ password=$2 echo -n "Sending mail to \"$email\" for lost account ..." date=$( date -R ) -title_recode=$( echo "Nouveaux accès courriel" | recode ...UTF-8/QP ) +title_recode=$( echo "Nouvel accès courriel" | recode ...UTF-8/QP ) title=$( echo "=?UTF-8?Q?$title_recode?=" ) headers=$(cat<< EOF