tMake sure title has some content for rputil. - sfeed_sendmail - sfeed to sendmail command
(HTM) git clone git://r-36.net/sfeed_sendmail
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 02f3a4773a595809599875a48539e0850bda3825
(DIR) parent 6e1e4bbc692bae4f39c7587fe0f036def8dc1552
(HTM) 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:
sfeed_sendmail | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/sfeed_sendmail b/sfeed_sendmail
t@@ -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
*@*)