Use a real sender for email

See bugzilla 3582
https://bugzilla.ipr.univ-rennes1.fr/show_bug.cgi?id=3582
This commit is contained in:
Jeremy Gardais 2023-06-23 11:14:31 +02:00
parent 85a5648314
commit 0a65d45c63
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 6 additions and 6 deletions

View File

@ -161,14 +161,14 @@ function check_disk_usage()
then then
local to="$dest_email" local to="$dest_email"
local from="disk-watchdog@work.ipr.univ-rennes1.fr" local from="info-ipr@univ-rennes.fr"
local subject="warning: The shared disk ${disk_public_path} is full at $disk_fullness%% !" local subject="warning: The shared disk ${disk_public_path} is full at $disk_fullness%% !"
local html_content='' local html_content=''
local disk_usage_table_as_html="$(cat "${disk_usage_report_file_path}" | sort -r -n | head -${top_size} | awk '{printf("<tr><td>%s</td><td align=\"right\">%d</td><td align=\"center\">%s</td><td>%s</td></tr>\\n", NR, $1, $2, $3)}')" local disk_usage_table_as_html="$(cat "${disk_usage_report_file_path}" | sort -r -n | head -${top_size} | awk '{printf("<tr><td>%s</td><td align=\"right\">%d</td><td align=\"center\">%s</td><td>%s</td></tr>\\n", NR, $1, $2, $3)}')"
local disk_size_in_gb="$((disk_size_in_mb / 1024))" local disk_size_in_gb="$((disk_size_in_mb / 1024))"
local admin_list_as_html='' local admin_list_as_html=''
admin_list_as_html="${admin_list_as_html}<li><a href=\"mailto:jeremy.gardais@univ-rennes1.fr\">jeremy.gardais@univ-rennes1.fr</a>\n</li>\n"
admin_list_as_html="${admin_list_as_html}<li><a href=\"mailto:guillaume.raffy@univ-rennes1.fr\">guillaume.raffy@univ-rennes1.fr</a>\n</li>\n" admin_list_as_html="${admin_list_as_html}<li><a href=\"mailto:guillaume.raffy@univ-rennes1.fr\">guillaume.raffy@univ-rennes1.fr</a>\n</li>\n"
admin_list_as_html="${admin_list_as_html}<li><a href=\"mailto:jeremy.gardais@univ-rennes1.fr\">jeremy.gardais@univ-rennes1.fr</a>\n</li>\n"
local localized_message='' local localized_message=''
for language_id in 'french' 'english' for language_id in 'french' 'english'