tDo not report error in case title is empty. - 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 64daba7be22614e5b71bcf50fdd2d05f1dcc608c
(DIR) parent 394c4788aa1790aa3e8c5eb4ba93fb87b95a7790
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Thu, 16 Jun 2022 19:27:50 +0200
Do not report error in case title is empty.
Diffstat:
sfeed_sendmail | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/sfeed_sendmail b/sfeed_sendmail
t@@ -57,7 +57,7 @@ do
printf "Date: %s\r\n" "${timestamp}"
if [ -z "${title}" ];
then
- printf "Subject: %s\r\n" "$(rputil -e "${title}")"
+ printf "Subject: %s\r\n" "$(rputil -e "${title}" 2>/dev/null)"
fi
printf "Content-Type: text/plain; charset=\"UTF-8\"\r\n"
if [ -n "${link}" ];