commit bb0ad95fd8e3245e88a9ddfe0f1438034713fa4f
parent 64daba7be22614e5b71bcf50fdd2d05f1dcc608c
Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 6 Sep 2025 08:10:09 +0200
Add category support.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/sfeed_sendmail b/sfeed_sendmail
@@ -22,6 +22,7 @@ do
id="$(printf "%s\n" "${line}" | cut -f 6)";
author="$(printf "%s\n" "${line}" | cut -f 7)";
enclosure="$(printf "%s\n" "${line}" | cut -f 8)";
+ category="$(printf "%s\n" "${line}" | cut -f 9)";
[ -z "${timestamp}" ] && timestamp="$(TZ=UTC date +%s)"
timestamp="$(TZ=UTC date -R -d @${timestamp})"
@@ -70,6 +71,10 @@ do
then
printf "X-RSS-ID: %s\r\n" "${id}"
fi
+ if [ -n "${category}" ];
+ then
+ printf "X-RSS-Category: %s\r\n" "${category}"
+ fi
printf "User-Agent: sfeed_sendmail/1.0\r\n"
printf "\r\n"