matrix html

This commit is contained in:
olli 2024-08-19 16:37:27 +02:00
parent b06655f7bd
commit efaeba15c3

View File

@ -769,7 +769,7 @@
then
if [ -p "/usr/local/share/$(hostname).fifo" ]
then
matrix_message=$(echo "${subj}<br>${orig_message}")
matrix_message=$(echo "<h2>${subj}</h2><br><pre>${orig_message}</pre>")
matrix_target="/usr/local/share/$(hostname).fifo"
[ -n "$togroup" ] && [ -p "/usr/local/share/$(hostname)-${togroup}.fifo" ] && matrix_target="/usr/local/share/$(hostname)-${togroup}.fifo"
echo "$matrix_message" | perl -pe 's/\n/<br>/' | perl -pe 's/\<br\>$/\n/; s/^\<br\>//;' >"$matrix_target"