sfeed_sendmail

sfeed to sendmail command
git clone git://r-36.net/sfeed_sendmail
Log | Files | Refs | LICENSE

commit 394c4788aa1790aa3e8c5eb4ba93fb87b95a7790
parent ae5957b66653962830a6682c97bbfc38d02855b7
Author: Christoph Lohmann <20h@r-36.net>
Date:   Wed,  8 Jun 2022 23:50:56 +0200

If title is empty, do not encode.

Diffstat:
sfeed_sendmail | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sfeed_sendmail b/sfeed_sendmail @@ -55,7 +55,10 @@ do printf "From: %s\r\n" "${fromaddr}" printf "To: %s\r\n" "${toaddr}" printf "Date: %s\r\n" "${timestamp}" - printf "Subject: %s\r\n" "$(rputil -e "${title}")" + if [ -z "${title}" ]; + then + printf "Subject: %s\r\n" "$(rputil -e "${title}")" + fi printf "Content-Type: text/plain; charset=\"UTF-8\"\r\n" if [ -n "${link}" ]; then