commit 02f3a4773a595809599875a48539e0850bda3825
parent 6e1e4bbc692bae4f39c7587fe0f036def8dc1552
Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 19 Oct 2020 19:14:58 +0200
Make sure title has some content for rputil.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/sfeed_sendmail b/sfeed_sendmail
@@ -39,6 +39,8 @@ do
;;
esac
[ -z "${title}" ] && title="${link}"
+ [ -z "${title}" ] && title="$(printf "%s\n" "${content}" | cut -c 10-)"
+ [ -z "${title}" ] && title="No Title"
case "${author}" in
*@*)