sfeed_sendmail

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

commit f67f86e137dfc405b892e6a8a003ff649216a5e8
parent 6c669407bb665554aae33ff83b02d528329ce940
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat, 10 Oct 2020 15:40:07 +0200

Add line inbetween content and metadata.

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

diff --git a/sfeed_sendmail b/sfeed_sendmail @@ -1,5 +1,7 @@ #!/bin/sh +set -x + if [ $# -lt 1 ]; then printf "usage: %s to-addr\n" "$(basename "$0")" >&2 @@ -39,7 +41,7 @@ do printf "To: %s\r\n" "${toaddr}" printf "Date: %s\r\n" "${timestamp}" printf "Subject: %s\r\n" "$(rputil -e "${title}")" - printf "Content-Type: textplain; charset=\"UTF-8\"\r\n" + printf "Content-Type: text/plain; charset=\"UTF-8\"\r\n" if [ -n "${link}" ]; then printf "X-RSS-URL: %s\r\n" "${link}" @@ -65,6 +67,7 @@ do | sed 's,\\n,\n,g; s,\\t,\t,g; s,\\\\,\\,g' fi + printf "\n" [ -n "${link}" ] && printf "URL: %s\n" "${link}" [ -n "${enclosure}" ] && printf "Enclosure: %s\n" "${enclosure}"