[PATCH 6/9] xfs_scrub_fail: add content type header to failure emails

Darrick J. Wong
2023-12-31T22:53:54Z

Add content type and encoding metadata so that these emails display
correctly.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
scrub/xfs_scrub_fail.in | 2 ++
1 file changed, 2 insertions(+)

diff --git a/scrub/xfs_scrub_fail.in b/scrub/xfs_scrub_fail.in
index d3275f9897c..baa9d32d94c 100755
--- a/scrub/xfs_scrub_fail.in
+++ b/scrub/xfs_scrub_fail.in
@@ -27,6 +27,8 @@ scrub_svc="$(systemd-escape --template "@scrub_svcname@" --path "${mntpoint}")"
To: $1
From: <xfs_scrub@${hostname}>
Subject: xfs_scrub failure on ${mntpoint}
+Content-Transfer-Encoding: 8bit
+Content-Type: text/plain; charset=UTF-8

So sorry, the automatic xfs_scrub of ${mntpoint} on ${hostname} failed.