urlwatch subject: put each url on its own line

This commit is contained in:
tv 2023-02-02 16:02:01 +01:00
parent 7a2b6a72fa
commit c2b601d123

View File

@ -177,8 +177,8 @@ let
echo Date: $(date -R)
echo From: ${shell.escape cfg.from}
echo Subject: $(
sed -n 's/^\(CHANGED\|ERROR\|NEW\): //p' changes \
| tr '\n' ' '
sed -nr 's/^(CHANGED|ERROR|NEW): //p' changes |
sed '1!s/^ //'
)
echo To: ${shell.escape cfg.mailto}
echo